Beispiel #1
0
        public void LogIn(LoginView view)
        {
            _orderDataModel.Login(UserName, view.PasswordB.Password);

            if (_orderDataModel.IsLogged())
            {
                _mainWindow.LogIn();
            }
        }
        public void Register(RegisterView view)
        {
            _orderDataModel.AddClient(FirstName, LastName, UserName, view.PasswordB.Password);
            _orderDataModel.Login(UserName, view.PasswordB.Password);

            if (_orderDataModel.IsLogged())
            {
                _mainWindow.LogIn();
            }
        }
 public void LogIn(LoginView view)
 {
     _waiterDataModel.LogIn(UserName, view.PasswordB.Password);
     _mainWindow.LogIn();
 }