public HotZone Add(HotZone value) { // Use base class to process actual collection operation base.List.Add(value as object); return value; }
protected void InternalConstruct(Control callingControl, Source source, Content c, WindowContent wc, FloatingForm ff, DockingManager dm, Point offset) { // Store the starting state _callingControl = callingControl; _source = source; _content = c; _windowContent = wc; _dockingManager = dm; _container = _dockingManager.Container; _floatingForm = ff; _hotZones = null; _currentHotZone = null; _insideRect = new Rectangle(); _outsideRect = new Rectangle(); _offset = offset; // Begin tracking straight away EnterTrackingMode(); }
public int IndexOf(HotZone value) { // Find the 0 based index of the requested entry return base.List.IndexOf(value); }
public bool Contains(HotZone value) { // Use base class to process actual collection operation return base.List.Contains(value as object); }
public void Insert(int index, HotZone value) { // Use base class to process actual collection operation base.List.Insert(index, value as object); }
public void Remove(HotZone value) { // Use base class to process actual collection operation base.List.Remove(value as object); }
public void AddRange(HotZone[] values) { // Use existing method to add each array entry foreach(HotZone page in values) Add(page); }
public override void OnMouseMove(MouseEventArgs e) { if (_callingControl.Handle != IntPtr.Zero) { // Convert from Control coordinates to screen coordinates Point mousePos = _callingControl.PointToScreen(new Point(e.X, e.Y)); // Find HotZone this position is inside HotZone hz = _hotZones.Contains(mousePos); if (hz != _currentHotZone) { if (_currentHotZone != null) _currentHotZone.RemoveIndicator(mousePos); _currentHotZone = hz; if (_currentHotZone != null) _currentHotZone.DrawIndicator(mousePos); } else { if (_currentHotZone != null) _currentHotZone.UpdateForMousePosition(mousePos, this); } } base.OnMouseMove(e); }