protected void RaiseSaveComplete(SaveCompleteEventArgs e) { SaveCompleteEventHander saveComplete = this.SaveComplete; if (saveComplete != null) { saveComplete(this, e); } }
protected void SaveCompleteSuccess(object sender, SaveCompleteEventArgs args) { if (args.Result) { this.ClearModel(); this.DisabledLayout(true); this.SaveComplete(sender, args); } else { XtraMessageBox.Show(args.Message, "Thông báo"); } }
void ActionSaveComplete(object sender, SaveCompleteEventArgs e) { if (e.Result) { this.ReLoad(); if (e.Action == Actions.AddNew || e.Action == Actions.Add) { toastNotificationsManager.ShowNotification(toastNotificationsManager.Notifications[0]); } else if (e.Action == Actions.Update) { toastNotificationsManager.ShowNotification(toastNotificationsManager.Notifications[1]); } else { toastNotificationsManager.ShowNotification(toastNotificationsManager.Notifications[1]); } } else { toastNotificationsManager.ShowNotification(toastNotificationsManager.Notifications[3]); } }