Пример #1
0
        private void button5_MouseClick(Object obj, EventArgs e)
        {
            display.gameLockingUtility();
            LevelCharacter LCharacter = new LevelCharacter(display);

            LCharacter.ShowDialog();
            LCharacter.Dispose();
            display.fause = false;
            display.PScreen.HideScreen();
            if (display.gameover == false)
            {
                display.time.Start();
            }
            if (display.full == true)
            {
                display.TopMost = true;
            }
            try
            {
                GC.SuppressFinalize(LCharacter);
                GC.Collect();
            }
            catch { }
        }
Пример #2
0
 private void button5_MouseClick(Object obj, EventArgs e)
 {
     display.gameLockingUtility();
     LevelCharacter LCharacter = new LevelCharacter(display);
     LCharacter.ShowDialog();
     LCharacter.Dispose();
     display.fause = false;
     display.PScreen.HideScreen();
     if (display.gameover == false)
         display.time.Start();
     if (display.full == true)
         display.TopMost = true;
     try
     {
         GC.SuppressFinalize(LCharacter);
         GC.Collect();
     }
     catch { }
 }