예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Create the MVC classes
            SatNavModel      model      = new SatNavModel();
            SatNavView       view       = new SatNavView(model);
            SatNavController controller = new SatNavController(model, view);

            Application.Run(view);
        }
 public SatNavController(SatNavModel model, SatNavView view)
 {
     this.model = model;
     this.view  = view;
     this.view.ViewControlActivated += HandleViewControlActivated;
 }
예제 #3
0
 public SatNavController(SatNavModel model, SatNavView view)
 {
     this.model = model;
     this.view = view;
     this.view.ViewControlActivated += HandleViewControlActivated;
 }