public void SelfFormOpen() { self = new SelfForm(analog); self.TopLevel = false; self.Parent = dockingPannel; self.FormBorderStyle = FormBorderStyle.None; self.Show(); BTN_SelfForm.Enabled = false; }
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; } }