Exemplo n.º 1
0
        public void Stop()
        {
            Worker.CancelAsync();

            if (StartedProcess != null)
            {
                StartedProcess.Kill();
            }
        }
Exemplo n.º 2
0
   static void Main(string[] args)
   {
 Console.Title = "Started Process";
 StartedProcess sp = new StartedProcess();
 sp.showCommandLine(args);
 sp.makeSound();
     
 for(int i=0; i<10; ++i)
 {
   Console.Write("\n  running");
   Thread.Sleep(500);
 }
 Console.Write("\n  -- press key to exit: ");
 Console.ReadKey();
   }