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); }
/// <summary> /// /// </summary> /// <param name="m"></param> /// <param name="v"></param> public Controller(CredentialsM m) { model = m; }