static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); alarmGUI view = new alarmGUI(); Alarm model = new Alarm(); Controller controller = new Controller(model, State.Start); controller.SetView(view); view.SetController(controller.handleEvents); Application.Run(view); }
public void SetView(alarmGUI v) { view = v; view.AlarmListUpdater(Alarms); statusDel = v.StateViewer; }