public LoginPresenter(Models.ILoginModel model, Views.ILoginView view) { this.model = model; this.view = view; this.view.LoginClick += this.model.Login; }
public LoginPresenter(Views.ILoginView view, Model.SchoolDBEntities data) { this.view = view; view.Presenter = this; this.data = data; LoadData(); // Shows the user what types of accounts are available so they can choose accordingly. //view.FillInTypesOfUsers(new string[]{ "Учител", "Родител", "Администратор"}); }
/// <summary> /// 登录的构造方法 /// </summary> /// <param name="view"></param> public LoginPresenter(Views.ILoginView view) : base(view) { this.View.OnLogin += View_OnLogin; }