Beispiel #1
0
 public ConsoleViewModel()
 {
     serverProcess = new ServerProcess();
     //serverProcess.OnConsoleNotifyOut += InstallProcess_OnConsoleNotifyOut;
     serverProcess.OnConsoleOut      += InstallProcess_OnConsoleOut;
     serverProcess.OnConsoleErrorOut += InstallProcess_OnConsoleOut;
     serverProcess.StartProcess();
 }
        private void ProcessWorker_DoWork(object sender, DoWorkEventArgs passValue)
        {
            object[] argument = (object[])passValue.Argument;

            ServerProcess process   = argument[0] as ServerProcess;
            string        serverExe = argument[1] as string;
            string        parameter = argument[2] as string;

            process.StartProcess(serverExe, parameter);
            m_ServerProcess.Add(process);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            ServerProcess Process = new ServerProcess();

            Process.StartProcess();

            Console.WriteLine("Press any key to exit the program...");
            Console.ReadLine();

            Process.StopProcess();
        }
Beispiel #4
0
        protected override void OnStart(string[] args)
        {
            Process.StartProcess();

            base.OnStart(args);
        }