Beispiel #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;
 }
 public SatNavController(SatNavModel model, SatNavView view)
 {
     this.model = model;
     this.view = view;
     this.view.ViewControlActivated += HandleViewControlActivated;
 }
Beispiel #4
0
 public SatNavView(SatNavModel model)
 {
     InitializeComponent();
     this.model = model;
     this.model.ModelChanged += HandleModelChanged;
 }
Beispiel #5
0
 public SatNavView(SatNavModel model)
 {
     InitializeComponent();
     this.model = model;
     this.model.ModelChanged += HandleModelChanged;
 }