Ejemplo n.º 1
0
 void client_PensionAlarmSetAddCompleted(object sender, PensionAlarmSetAddCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ADDERROR"), Utility.GetResourceStr(e.Error.Message));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (!string.IsNullOrEmpty(e.strMsg))
         {
             //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.strMsg));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr(e.strMsg),
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
             RefreshUI(RefreshedTypes.ProgressBar);
             return;
         }
         //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         if (closeFormFlag)
         {
             RefreshUI(RefreshedTypes.Close);
         }
         else
         {
             FormType = FormTypes.Edit;
         }
         RefreshUI(RefreshedTypes.All);
     }
     RefreshUI(RefreshedTypes.ProgressBar);
 }
Ejemplo n.º 2
0
 void client_PensionAlarmSetAddCompleted(object sender, PensionAlarmSetAddCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ADDERROR"), Utility.GetResourceStr(e.Error.Message));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (!string.IsNullOrEmpty(e.strMsg))
         {
             //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.strMsg));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr(e.strMsg),
          Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
             RefreshUI(RefreshedTypes.ProgressBar);
             return;
         }
         //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"),
      Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         if (closeFormFlag)
         {
             RefreshUI(RefreshedTypes.Close);
         }
         else
         {
             FormType = FormTypes.Edit;
         }
         RefreshUI(RefreshedTypes.All);
     }
     RefreshUI(RefreshedTypes.ProgressBar);
 }