示例#1
0
        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();
                }
            }
        }
示例#2
0
        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();
        }
示例#3
0
        private void InfiniumMinimizeList_CloseClicked(object sender, string FormName)
        {
            Form ModuleForm = InfiniumMinimizeList.GetForm(FormName);

            InfiniumMinimizeList.RemoveModule(FormName);
            Security.ExitFromModule(FormName);
            ModuleForm.Dispose();

            GC.Collect();
        }