Пример #1
0
 void client_PostDictionaryDeleteCompleted(object sender, PostDictionaryDeleteCompletedEventArgs e)
 {
     if (e.Error != null && 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);
             return;
         }
         //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "POSTDICTIONARY"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESS"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         dataPager.PageIndex = 1;
         LoadData();
     }
 }
Пример #2
0
 void client_PostDictionaryDeleteCompleted(object sender, PostDictionaryDeleteCompletedEventArgs e)
 {
     if (e.Error != null && 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);
             return;
         }
         //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "POSTDICTIONARY"));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESS"),
    Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         dataPager.PageIndex = 1;
         LoadData();
     }
 }