Пример #1
0
 private void client_GetHouseInfoTreeCompleted(object sender, GetHouseInfoTreeCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             treeViewItemList = e.Result.ToList();
             MyTree.Items.Clear();
             AddRoot();
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }
Пример #2
0
 private void client_GetHouseInfoTreeCompleted(object sender, GetHouseInfoTreeCompletedEventArgs e)
 {
     try
     {
         if (e.Error == null)
         {
             if (e.Result != null)
             {
                 treeViewItemList = e.Result.ToList();
                 MyTree.Items.Clear();
                 AddRoot();
             }
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }