Пример #1
0
 private void client_DeleteLicenseBorrowCompleted(object sender, DeleteLicenseBorrowCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null)
         {
             //HtmlPage.Window.Alert(e.Error.ToString());
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "ARCHIVELENDING"));
             LoadData();
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }
Пример #2
0
 private void client_DeleteLicenseBorrowCompleted(object sender, DeleteLicenseBorrowCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null)
         {
             //HtmlPage.Window.Alert(e.Error.ToString());
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "ARCHIVELENDING"));
             LoadData();
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }