private void Record(object sender, EventArgs args) { if (mViewModel.ValidateModel()) { mModel.Record(); UpdateView_PaymentDetails(); MessageBox.Show("Customer Record Saved!"); } }
private void btnUpdate_Click(object sender, EventArgs e) { ReviseModel(); OpResult result = mModel.Record(); if (!result.IsValid) { DialogResult = DialogResult.None; MessageBox.Show(result.Error); } }