コード例 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CredentialsM model = new CredentialsM("Alice", "WonderLand");
            Controller   c     = new Controller(model);
            LoginForm    view  = new LoginForm(c.handleEvents);

            c.register(view.DisplayState);
            Application.Run(view);
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="m"></param>
 /// <param name="v"></param>
 public Controller(CredentialsM m)
 {
     model = m;
 }