Пример #1
0
        protected void RaiseSaveComplete(SaveCompleteEventArgs e)
        {
            SaveCompleteEventHander saveComplete = this.SaveComplete;

            if (saveComplete != null)
            {
                saveComplete(this, e);
            }
        }
Пример #2
0
 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");
     }
 }
Пример #3
0
 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]);
     }
 }