Ejemplo n.º 1
0
        static public void ActivateConsole(string text)
        {
            if (secondThreadFormHandle == IntPtr.Zero)
            {
                RotateWait form = new RotateWait();

                form.HandleCreated   += SecondFormHandleCreated;
                form.HandleDestroyed += SecondFormHandleDestroyed;
                form.RunInNewThread(true);
                System.Threading.Thread.Sleep(500);
            }

            SendText(text);
        }
Ejemplo n.º 2
0
 static public void ActivateConsole(string text)
 {
     if (form == null)
     {
         hideTimer          = new Timer();
         hideTimer.Interval = 3000;
         hideTimer.Tick    += new EventHandler(hideTimer_Tick);
         form          = new RotateWait();
         form.WaitText = text;
         form.Show();
         // form.SendToBack();
     }
     else
     {
         hideTimer.Start();
     }
 }
Ejemplo n.º 3
0
 public MyNativeWindowListener(RotateWait parent)
 {
     parent.HandleCreated   += new EventHandler(this.OnHandleCreated);
     parent.HandleDestroyed += new EventHandler(this.OnHandleDestroyed);
     this.parent             = parent;
 }
Ejemplo n.º 4
0
 static void hideTimer_Tick(object sender, EventArgs e)
 {
     hideTimer.Stop();
     form.Close();
     form = null;
 }