Beispiel #1
0
        private void TimerElapsed(object sender, ElapsedEventArgs e)
        {
            string path = @"D:\Programming\University\Coursework\fn181218001\command.txt";

            string[] command = File.ReadAllText(path).Split();

            if (command[0] != string.Empty)
            {
                d1.Core.Engine engine = new d1.Core.Engine();
                engine.Run(command);
            }

            //proc.StandardInput.WriteLine($"{path2} {command}");

            File.WriteAllText(path, String.Empty);
        }
Beispiel #2
0
 static void Main(string[] args)
 {
     // d2.Engine engine = new d2.Engine();
     d1.Core.Engine engine = new d1.Core.Engine();
     engine.Run(args);
 }