Example #1
0
 private void lightbulb_rc_Load(object sender, EventArgs e)
 {
     sim = new simulator();
     initchildren();
     inputtoggler = new d_toggleinput(toggleinput);
     changetext   = new d_settext(settext);
     zgupdater    = new d_updatezg(updategraph);
 }
Example #2
0
 public static void Main(string[] args)
 {
     try
     {
         simulator sim = new simulator(args);
         sim.simulate();
     }
     catch (FileLoadException e)
     {
         Console.Error.Write(e.Message);
     }
     catch (Exception e)
     {
         //System.Threading.Thread t = System.Threading.Thread.CurrentThread;
         //t.SetApartmentState(System.Threading.ApartmentState.STA);
         lightbulb_rc control = new lightbulb_rc();
         Application.Run(control);
     }
 }
Example #3
0
 public static void Main(string[] args)
 {
     try
     {
         simulator sim = new simulator(args);
         sim.simulate();
     }
     catch (FileLoadException e)
     {
         Console.Error.Write(e.Message);
     }
     catch (Exception e)
     {
         //System.Threading.Thread t = System.Threading.Thread.CurrentThread;
         //t.SetApartmentState(System.Threading.ApartmentState.STA);
         lightbulb_rc control = new lightbulb_rc();
         Application.Run(control);
     }
 }
Example #4
0
 private void lightbulb_rc_Load(object sender, EventArgs e)
 {
     sim = new simulator();
     initchildren();
     inputtoggler = new d_toggleinput(toggleinput);
     changetext = new d_settext(settext);
     zgupdater = new d_updatezg(updategraph);
 }