//--------------------------------------------------------------------------- private void toolBar_Designer_ButtonClick( object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e){ if (e.Button == toolBarButton_REFRESH){ SkinRefresh(); MyTreeRefresh(); SelectionRefresh(); return; } if (e.Button == toolBarButton_DEL_CMP){ DialogResult result = Lextm.Windows.Forms.MessageBoxFactory.Confirm(Text, "Do you want to delete it?", "Selected components will be deleted"); if (result == DialogResult.Yes) { this.Activate(); BlockSelectionRefresh = true; try{ DelSelCmp(TreeView_Controls.Nodes); DelSelCmp(TreeView_Components.Nodes); }catch{} BlockSelectionRefresh = false; MyTreeRefresh(); SelectionRefresh(); return; } } if (e.Button == toolBarButton_VIEW_TYPE){ switch (toolBarButton_VIEW_TYPE.Pushed){ case true: ViewBaseClass = true; break; case false: ViewBaseClass = false; break; } MyTreeRefresh(); SelectionRefresh(); return; } if (e.Button == toolBarButton_OPTIONS){ /*TODO : Add options later*/ // WinForm_Options dlgOpt = // new WinForm_Options(OptionsKind.Designer); // if (this.TopMost) {dlgOpt.TopMost = true;} // if (dlgOpt.ShowDialog() == DialogResult.OK){ // SkinRefresh(); // } // dlgOpt.Dispose(); return; } if (e.Button == toolBarButton_ABOUT){ WinForm_About dlgAbt = new WinForm_About(); if (this.TopMost) {dlgAbt.TopMost = true;} dlgAbt.ShowDialog(); dlgAbt.Dispose(); return; } }
private void button_About_Click(object sender, System.EventArgs e) { WinForm_About dlgAbt = new WinForm_About(); if (this.TopMost) {dlgAbt.TopMost = true;} dlgAbt.ShowDialog(); dlgAbt.Dispose(); }