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); }
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); } }