Esempio n. 1
0
 private void client_DeleteArchivesCompleted(object sender, DeleteArchivesCompletedEventArgs e)
 {
     //try
     //{
     //    if (!string.IsNullOrEmpty(e.Result))
     //    {
     //        HtmlPage.Window.Alert(e.Result.ToString());
     //    }
     //    LoadData();
     //}
     //catch (Exception ex)
     //{
     //    HtmlPage.Window.Alert(ex.ToString());
     //}
     if (e.Error == null)
     {
         if (!string.IsNullOrEmpty(e.errorMsg))
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.errorMsg));
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "ARCHIVE"));
         }
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
     }
     LoadData();
 }
Esempio n. 2
0
 private void client_DeleteArchivesCompleted(object sender, DeleteArchivesCompletedEventArgs e)
 {
     //try
     //{
     //    if (!string.IsNullOrEmpty(e.Result))
     //    {
     //        HtmlPage.Window.Alert(e.Result.ToString());
     //    }
     //    LoadData();
     //}
     //catch (Exception ex)
     //{
     //    HtmlPage.Window.Alert(ex.ToString());
     //}
     if (e.Error == null)
     {
         if (!string.IsNullOrEmpty(e.errorMsg))
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.errorMsg));
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "ARCHIVE"));
         }
     }
     else                
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
     }
     LoadData();
 }