private void CreateGroup(QTabItem contextMenuedTab) { NowModalDialogShown = true; QTUtility.RefreshGroupsDic(); using(CreateNewGroupForm form = new CreateNewGroupForm(contextMenuedTab.CurrentPath, tabControl1.TabPages)) { if(NowTopMost) { form.TopMost = true; } if(DialogResult.OK == form.ShowDialog()) { QTUtility.SaveGroupsReg(); SyncButtonBarBroadCast(1); SyncTaskBarMenu(); } } NowModalDialogShown = false; }
private void CreateGroup(QTabItem contextMenuedTab) { NowModalDialogShown = true; using(CreateNewGroupForm form = new CreateNewGroupForm(contextMenuedTab.CurrentPath, tabControl1.TabPages)) { form.TopMost = true; form.ShowDialog(); } NowModalDialogShown = false; }