private void CloseSelect(Object source, EventArgs e) { if (source == selection) { selection = null; } }
private fSelection ShowGrabberSelection() { if (selection == null) { selection = new fSelection(tGrabbers); //, true, this.DoSelect); selection.GrabberSelected += this.DoSelect; selection.MinimizeBox = false; selection.Closed += new EventHandler(this.CloseSelect); selection.Show(); } else { selection.BringToFront(); } return selection; }
public override void OnSectionDeActivated() { if (selection != null) { selection.Close(); selection = null; } base.OnSectionDeActivated(); }