private void btnAccept_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.UserName) && string.IsNullOrEmpty(this.Password)) { this.ShowWarning("Username atau Password wajib diisi!"); return; } try { _presenter.ExecuteLogin(); } catch (Exception ex) { MethodBase.GetCurrentMethod().Fatal("An error occured while trying to login", ex); this.ShowError("Proses login gagal!"); } }