Exemple #1
0
        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);
        }
Exemple #2
0
 public void SetView(alarmGUI v)
 {
     view = v;
     view.AlarmListUpdater(Alarms);
     statusDel = v.StateViewer;
 }