private void InfiniumMinimizeList_ItemClicked(object sender, string FormName) { if (FormName == "MessagesForm") { MessagesButton_Click(null, null); InfiniumMinimizeList.RemoveModule(FormName); } else { Thread T = new Thread(delegate() { SplashWindow.CreateSplash(); }); T.Start(); while (!SplashForm.bCreated) { ; } Form ModuleForm = InfiniumMinimizeList.GetForm(FormName); TopForm = ModuleForm; ModuleForm.ShowDialog(); } if (InfiniumNotifyList.Items != null) { if (InfiniumNotifyList.Items.Count() > 0) { ActiveNotifySystem.FillUpdates(); InfiniumNotifyList.ItemsDataTable = ActiveNotifySystem.ModulesUpdatesDataTable; InfiniumNotifyList.InitializeItems(); } } }
public void CloseForm(Form Form) { Activate(); TopMost = true; Form.Hide(); LoginForm.Activate(); TopMost = false; Activate(); TopForm = null; string FormName = Form.Name; InfiniumMinimizeList.RemoveModule(Form.Name); Thread T = new Thread(delegate() { Security.ExitFromModule(FormName); }); T.Start(); Form.Dispose(); GC.Collect(); }
private void InfiniumMinimizeList_CloseClicked(object sender, string FormName) { Form ModuleForm = InfiniumMinimizeList.GetForm(FormName); InfiniumMinimizeList.RemoveModule(FormName); Security.ExitFromModule(FormName); ModuleForm.Dispose(); GC.Collect(); }