static unsafe void Main(string[] args) { try { Thread.CurrentThread.Name = "MainThread"; LOG.Info("Strating..."); IApplicationContext ctx = ContextRegistry.GetContext(); using (ITestController mainTestController = new TestController(ctx)) { if (args.Contains("-nogui")) { LOG.Info("Console mode on"); } else { using (Form form = new DebugView(mainTestController)) { mainTestController.ControllerView = form as IControllerView; form.ShowDialog(); } } } LOG.Info("... end"); Console.ReadLine(); } catch (Exception e) { Console.WriteLine(e.StackTrace); Console.WriteLine(e.Message); Console.ReadLine(); } }
public void SetTestController(TestController testControlle) { this._testController = testControlle; }
public TestWorker(TestController testController) { _testController = testController; _finish = false; }