using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Explorer { public class Internal_SliderState { public float dragStartPos; public float dragStartValue; public bool isDragging; public static Dictionary Dict = new Dictionary(); public static Internal_SliderState FromPointer(IntPtr ptr) { if (!Dict.ContainsKey(ptr)) { Dict.Add(ptr, new Internal_SliderState()); } return Dict[ptr]; } } }