public SimPanel(Simulator sim) : base(Gtk.WindowType.Toplevel) { this.simulator = sim; this.clock = sim.getClock(); this.Build(); this.period = 1000; this.refresher = new Timer(new TimerCallback(Refresh), null, 0, this.period); }
public Startup(Simulator sim) : base(Gtk.WindowType.Toplevel) { this.Build (); this.reactor = sim.getReactor(); this.turbine = sim.getTurbine(); this.rods = sim.getRods(); this.spinbutton1.Value = this.reactor.Burnup; this.spinbutton2.Value = this.reactor.Boron; this.spinbutton8.Value = this.reactor.Flux; this.spinbutton6.Value = this.turbine.Power; }
public Simulator NewSimulator(string name, string description) { Simulator sim = new Simulator(this.servInterface, name, description); this.simulators.Add(sim); return sim; }
public SimEntry(Simulator sim) { this.simId = sim.simId; this.name = sim.name; this.description = sim.description; this.owner = sim.owner; }