Пример #1
0
        private void LogInWithPassword()
        {
            _writer.Writer(Properties.Resources.EnterLogin);
            int login = _reader.NumberReader();

            _writer.Writer(Properties.Resources.EnterPassword);
            string password = _reader.PasswordReader();

            if (_logicSystem.CheckLogin(login, password))
            {
                MonthOverviewConsole monthOverview = new MonthOverviewConsole(login, _reader, _writer, _logicSystem);
                monthOverview.GetMonthOverview();
                MenuChooseSystem();
            }
            else
            {
                _writer.Clear();
                _writer.Writer(Properties.Resources.WrongLoginPassError);
                MenuChooseSystem();
            }
        }
Пример #2
0
 public bool CheckLogin(int id, string password)
 {
     return(_logic.CheckLogin(id, password));
 }