예제 #1
0
 public static MdiChildFoRunGame GetForm()
 {
     if (_frmForRunGame == null)
     {
         _frmForRunGame = new MdiChildFoRunGame();
     }
     return(_frmForRunGame);
 }
예제 #2
0
        private void runGameRToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MdiChildFoRunGame frmChidChildForRunGame = MdiChildFoRunGame.GetForm();

            frmChidChildForRunGame.MdiParent   = this;
            frmChidChildForRunGame.WindowState = FormWindowState.Maximized;
            frmChidChildForRunGame.Show();
        }
예제 #3
0
 private void Dispose()
 {
     Console.WriteLine("Form For Run Game Dispose!");
     Dispose(true);
     _frmForRunGame = null;
 }
예제 #4
0
 private void MdiChildFoRunGame_FormClosing(Object sender, FormClosingEventArgs e)
 {
     _frmForRunGame.Close();
     _frmForRunGame = null;
 }