protected override void btnSave_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(ValidateInput())) { string result = string.Empty; if (_isUpdating) { var date = CreateUpdateTicketSaleDate(); result = _business.Update(date); } else { var date = CreateNewTicketSaleDate(); result = _business.Insert(date); } if (string.IsNullOrEmpty(result)) { ChangeViewStatus(false); DataBind(); } else { MessageBox.Show(result, Constants.Messages.ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show(ValidateInput(), Constants.Messages.ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error); } }