public LoginPresenter(ILoginView view, Constants.UserRole role) { User user = new User(); _business = new UserBusiness(Singleton <PosEngine> .Instance.Resolve <IRepository <User> >()); _view = view; _model = new LoginModel(user); _model.Role = role.ToString(); _view.InitView(_model); //_model.UserName = "******"; //_model.Password = "******"; }
public Login(Constants.UserRole currentRole) { InitializeComponent(); lblErrorMessage.Text = string.Empty; _currentRole = currentRole.ToString(); }
public LoginView(Constants.UserRole currentRole) : this() { _presenter = new LoginPresenter(this, currentRole); }
public LoginClient(Constants.UserRole currentRole) : base(currentRole) { }