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

            CredentialsD model      = new CredentialsD("Alice", "Wonderland");
            ControllerD  controller = new ControllerD(model);
            Form1        view       = new Form1(controller.handleEvents);

            controller.registerObs(view.DisplayState);

            Application.Run();
        }
Beispiel #2
0
        static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CredentialsD model      = new CredentialsD("Alice", "Wonderland");
            ControllerD  controller = new ControllerD(model);
            LoginD       view       = new LoginD(controller.handleEvents);

            controller.registerObs(view.DisplayState);

            Application.Run(view);
        }
Beispiel #3
0
 //in class
 public ControllerD(CredentialsD m)
 {
     this.model = m;
 }
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="m"></param>
 /// <param name="v"></param>
 public ControllerD(CredentialsD m, LoginD v)
 {
     model = m;
     view  = v;
 }