public void LogIn(object sender, EventArgs e) { if (_view.GetLogin().Replace(" ", "").Length == 0 || _view.GetPassword().Replace(" ", "").Length == 0) { _view.ShowEmpty(); return; } if (_model.Authorization(_view.GetLogin(), _view.GetPassword())) { Global.Login = _view.GetLogin(); _view.Close(); } else { _view.ShowError(); } }