Example #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();
        }
 protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
 {
     base.OnClosing(e);
     theInstance = null;
 }
 public void ShowControllerForm()
 {
     MultiSelectorController.create();
 }