private void btnDecline_Click(object sender, EventArgs e) { btnClose.Visible = true; if (ValidateForm()) { current = (Client)bind1.Current; if (start != null) { end = DateTime.UtcNow; callTime.Stop(); CallOperators co = frmMain.loggedIn.GetMatchingCallOperator(); CallLog call = new CallLog(co, current, start, end, rtxtRemarks.Text); if (call.InsertCall()) { MessageBoxShower.ShowInfo("This called has been logged. Thank you.", "Call Log"); } else { CustomExceptions error = new CustomExceptions("This call could not be logged. Please try again", "Logging Error!"); } } } else { CustomExceptions error = new CustomExceptions("Please complete all fields!", "Validation Error!"); } }