コード例 #1
0
 private void CloseSelect(Object source, EventArgs e)
 {
   if (source == selection)
   {
     selection = null;
   }
 }
コード例 #2
0
 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;
 }
コード例 #3
0
    public override void OnSectionDeActivated()
    {
      if (selection != null)
      {
        selection.Close();
        selection = null;
      }

      base.OnSectionDeActivated();
    }