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 InfiniumNotifyList_ItemClicked(object sender, string FormName) { if (FormName == "MessagesForm") { MessagesButton_Click(null, null); if (NotifyForm != null) { NotifyForm.Close(); NotifyForm.Dispose(); NotifyForm = null; } ActiveNotifySystem.FillUpdates(); InfiniumNotifyList.ItemsDataTable = ActiveNotifySystem.ModulesUpdatesDataTable; InfiniumNotifyList.InitializeItems(); return; } Thread T = new Thread(delegate() { SplashWindow.CreateSplash(); }); T.Start(); while (!SplashForm.bCreated) { ; } if (NotifyForm != null) { NotifyForm.Close(); NotifyForm.Dispose(); NotifyForm = null; } Form ModuleForm = null; //check if running Form Form = InfiniumMinimizeList.GetForm(FormName); if (Form != null) { TopForm = Form; Form.ShowDialog(); } else { Type CAType = Type.GetType("Infinium." + FormName); ModuleForm = (Form)Activator.CreateInstance(CAType, this); TopForm = ModuleForm; ModuleForm.ShowDialog(); } ActiveNotifySystem.FillUpdates(); InfiniumNotifyList.ItemsDataTable = ActiveNotifySystem.ModulesUpdatesDataTable; InfiniumNotifyList.InitializeItems(); }
public void StartModuleFromNotify(int ModuleID) { if (TopForm != null) { if (TopForm.Name == InfiniumStart.FullModulesDataTable.Select("ModuleID = " + ModuleID)[0]["FormName"].ToString()) { return; } } if (ModuleID != 80) { Thread T = new Thread(delegate() { SplashWindow.CreateSplash(); }); T.Start(); while (!SplashForm.bCreated) { ; } } if (TopForm != null) { if (TopForm.Name != InfiniumStart.FullModulesDataTable.Select("ModuleID = " + ModuleID)[0]["FormName"].ToString()) { HideForm(TopForm); } } Form ModuleForm = null; if (ModuleID == 80)//messages { MessagesButton_Click(null, null); } else { //check if running Form Form = InfiniumMinimizeList.GetForm(InfiniumStart.FullModulesDataTable.Select("ModuleID = " + ModuleID)[0]["FormName"].ToString()); if (Form != null) { TopForm = Form; Form.Show(); } else { Type CAType = Type.GetType("Infinium." + InfiniumStart.FullModulesDataTable.Select("ModuleID = " + ModuleID)[0]["FormName"].ToString()); ModuleForm = (Form)Activator.CreateInstance(CAType, this); TopForm = ModuleForm; ModuleForm.ShowDialog(); } } ActiveNotifySystem.FillUpdates(); InfiniumNotifyList.ItemsDataTable = ActiveNotifySystem.ModulesUpdatesDataTable; InfiniumNotifyList.InitializeItems(); }
private void InfiniumMinimizeList_CloseClicked(object sender, string FormName) { Form ModuleForm = InfiniumMinimizeList.GetForm(FormName); InfiniumMinimizeList.RemoveModule(FormName); Security.ExitFromModule(FormName); ModuleForm.Dispose(); GC.Collect(); }
public void HideForm(Form Form) { Activate(); TopMost = true; Form.Hide(); LoginForm.Activate(); TopMost = false; Activate(); TopForm = null; InfiniumMinimizeList.AddModule(ref Form); }
private void PhotoBox_Click(object sender, EventArgs e) { Thread T = new Thread(delegate() { SplashWindow.CreateSplash(); }); T.Start(); while (!SplashForm.bCreated) { ; } Form ModuleForm = null; //check if running Form Form = InfiniumMinimizeList.GetForm("PersonalSettingsForm"); if (Form != null) { TopForm = Form; Form.ShowDialog(); } else { Type CAType = Type.GetType("Infinium." + "PersonalSettingsForm"); ModuleForm = (Form)Activator.CreateInstance(CAType, this); TopForm = ModuleForm; Security.EnterInModule("PersonalSettingsForm"); ModuleForm.ShowDialog(); } if (InfiniumNotifyList.Items != null) { if (InfiniumNotifyList.Items.Count() > 0) { ActiveNotifySystem.FillUpdates(); InfiniumNotifyList.ItemsDataTable = ActiveNotifySystem.ModulesUpdatesDataTable; InfiniumNotifyList.InitializeItems(); } } }