示例#1
0
 public void SettingFormOpen()
 {
     set                 = new SettingForm();
     set.TopLevel        = false;
     set.Parent          = dockingPannel;
     set.FormBorderStyle = FormBorderStyle.None;
     set.Show();
     BTN_SettingForm.Enabled = false;
 }
示例#2
0
        public void CloseEveryForm()
        {
            BTN_AutoForm.Enabled    = true;
            BTN_SelfForm.Enabled    = true;
            BTN_LogForm.Enabled     = true;
            BTN_SettingForm.Enabled = true;
            BTN_OptionForm.Enabled  = true;

            if (auto != null)
            {
                auto.Close();
                auto.Dispose();
                auto = null;
            }
            if (self != null)
            {
                self.Close();
                self.Dispose();
                self = null;
            }
            if (log != null)
            {
                log.Close();
                log.Dispose();
                log = null;
            }
            if (set != null)
            {
                set.Close();
                set.Dispose();
                set = null;
            }
            if (opt != null)
            {
                opt.Close();
                opt.Dispose();
                opt = null;
            }
        }