Beispiel #1
0
        private void categoryTree_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
        {
            MultiSelectorController.create(); //will show if created, create and show if not.
            StructCategory cat = StructCategoryTree.theInstance[(int)categoryTree.SelectedNode.Tag];

            OnNodeSelected(cat, 0);
        }
        //		private KeyEventHandler keyHandler;

        /// <summary>
        /// Creates a new controller window, or active the existing one.
        /// </summary>
        public static void create()
        {
            if (theInstance == null)
            {
                theInstance = new MultiSelectorController();
            }
            theInstance.Show();
            theInstance.Activate();
        }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 public void ShowControllerForm()
 {
     MultiSelectorController.create();
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
 {
     base.OnClosing(e);
     theInstance = null;
 }