Beispiel #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     using (ATSUI atsui = new ATSUI())
     {
         atsui.init();
         Application.Run(atsui);
     }
 }
Beispiel #2
0
        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);
                    }
                });
            }
        }