Beispiel #1
0
 public void CloseForm()
 {
     if (testform != null)
     {
         testform.Close();
         testform.Dispose();
         testform = null;
     }
     if (selfform != null)
     {
         selfform.Close();
         selfform.Dispose();
         selfform = null;
     }
     if (profileform != null)
     {
         profileform.Close();
         profileform.Dispose();
         profileform = null;
     }
     if (logform != null)
     {
         logform.Close();
         logform.Dispose();
         logform = null;
     }
     if (optionform != null)
     {
         optionform.Close();
         optionform.Dispose();
         optionform = null;
     }
 }
Beispiel #2
0
 public void SelfformOpen()
 {
     selfform                 = new SelfForm(this);
     selfform.TopLevel        = false;
     selfform.Parent          = DockingPanel;
     selfform.FormBorderStyle = FormBorderStyle.None;
     selfform.StartPosition   = FormStartPosition.CenterParent;
     STATE = PRESENT.SELF;
     try
     {
         selfform.Show();
     }
     catch
     {
     }
 }