예제 #1
0
 protected static void ActivateConsole()
 {
     if (form == null)
     {
         hideTimer          = new Timer();
         hideTimer.Interval = 1000;
         hideTimer.Tick    += new EventHandler(hideTimer_Tick);
         form             = new DebugConsoleForm();
         form.FormClosed += new FormClosedEventHandler(form_FormClosed);
         form.Show();
         // form.SendToBack();
     }
     else
     {
         hideTimer.Start();
     }
 }
예제 #2
0
 static void form_FormClosed(object sender, FormClosedEventArgs e)
 {
     form = null;
 }