void Confirm_Closed(object sender, EventArgs e) { ConfirmWindow confirmWindow = sender as ConfirmWindow; if (confirmWindow.DialogResult == true) { IsBusy = true; systemManageDomainContext.SubmitChanges(); } else { systemManageDomainContext.RejectChanges(); } }