Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            CredentialD model      = new CredentialD("Alice", "Wonderland");
            ControllerD controller = new ControllerD(model);
            Login200D   view       = new Login200D(controller.handleEvents);

            controller.registerObs(view.DisplayState);

            Application.Run(view);
        }
 /// <summary>
 /// Links the View to the controller.
 /// </summary>
 /// <param name="c">The App's main controller object. Later
 /// this shold be a delegate.</param>
 public void SetController(ControllerD c)
 {
     controller = c;
 }