Exemplo n.º 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();
        }
Exemplo n.º 2
0
 public ControllerMP(CredentialsMP m)
 {
     this.model = m;
 }