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

            CredentialsMP model      = new CredentialsMP();
            ControllerMP  controller = new ControllerMP(model);
            LoginMP       view       = new LoginMP(controller.handleEvents);

            controller.registerObs(view.DisplayState);

            Application.Run(view);
        }
Example #2
0
 public ControllerMP(CredentialsMP m)
 {
     this.model = m;
 }