예제 #1
0
        public LoginPresenter(Models.ILoginModel model, Views.ILoginView view)
        {
            this.model = model;
            this.view  = view;

            this.view.LoginClick += this.model.Login;
        }
예제 #2
0
        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[]{ "Учител", "Родител", "Администратор"});
        }
예제 #3
0
 /// <summary>
 /// 登录的构造方法
 /// </summary>
 /// <param name="view"></param>
 public LoginPresenter(Views.ILoginView view)
     : base(view)
 {
     this.View.OnLogin += View_OnLogin;
 }