コード例 #1
0
ファイル: MainForm.cs プロジェクト: ParkGY94/Project_Cs
 public void selfformOpen()
 {
     selfform                 = new SelfForm();
     selfform.TopLevel        = false;
     selfform.Parent          = dockingPannel;
     selfform.FormBorderStyle = FormBorderStyle.None;
     selfform.StartPosition   = FormStartPosition.CenterParent;
     selfform.Show();
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: ParkGY94/Project_Cs
 public void CloseForm()
 {
     if (testform != null)
     {
         testform.Close();
         testform.Dispose();
         testform = null;
     }
     if (passwordform != null)
     {
         passwordform.Close();
         passwordform.Dispose();
         passwordform = null;
     }
     if (logform != null)
     {
         logform.Close();
         logform.Dispose();
         logform = null;
     }
     if (optionform != null)
     {
         optionform.Close();
         optionform.Dispose();
         optionform = null;
     }
     if (selfform != null)
     {
         selfform.Close();
         selfform.Dispose();
         selfform = null;
     }
     if (specform != null)
     {
         specform.Close();
         specform.Dispose();
         specform = null;
     }
 }