static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); using (ATSUI atsui = new ATSUI()) { atsui.init(); Application.Run(atsui); } }
private void GetTests(Object stateInfo) { ATSUI ui = (ATSUI)stateInfo; var tests = Remote.RemoteTestDAL.GetTests(); if (tests != null) { this.Invoke((MethodInvoker) delegate { foreach (Test t in tests) { listBox1.Items.Add(t); } }); } }