private void Login(bool isExist) { if (isExist) { //Open MainForm view.ShowMainForm(); view.CloseView(); } else { //show error view.SetError("Username/Password does not match"); view.ClearFields(); } }