public RegisterFormPresenter(object obj)
        {
            _model = new User();
            RegisterForm form = new RegisterForm();

            form.Show();
            _view = form;
            login = (LoginForm)obj;
            _view.OnRegFormClosed   += LoginOpen;
            _view.OnRegisterClicked += Register;
        }
Ejemplo n.º 2
0
        public AppPresenter(ILoginForm viewLogin, IRegisterForm viewRegister, IForgotForm viewForgot, IMainForm viewMain, IUserRepository database, IMessageService messageService)
        {
            _viewLogin      = viewLogin;
            _viewMain       = viewMain;
            _viewForgot     = viewForgot;
            _viewRegister   = viewRegister;
            _database       = database;
            _messageService = messageService;

            viewLogin.EntryClick += new EventHandler(_view_EntryClick);
        }
Ejemplo n.º 3
0
 public RegisterFormController(IRegisterForm form)
 {
     _form   = form;
     user    = new User();
     userDAO = new UserDAO();
 }
Ejemplo n.º 4
0
 public RegisterFormController(IRegisterForm form)
 {
     _form = form;
     user = new User();
     userDAO = new UserDAO();
 }
 public AuthenPresenter(IRegisterForm registerFormView)
 {
     this.registerFormView = registerFormView;
 }
Ejemplo n.º 6
0
 public RegisterController(IShopModel shopModel, IRegisterForm registerForm)
 {
     this.shopModel    = shopModel;
     this.registerForm = registerForm;
     Initialize();
 }