Exemplo n.º 1
0
 void client_AreaCategoryADDCompleted(object sender, AreaCategoryADDCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result == "SUCCESSED")
         {
             FormType = FormTypes.Edit;
             EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>();
             entBrowser.FormType = FormTypes.Edit;
             client.AreaCityCheckAsync(citys, "Add");
             //client.AreaCityLotsofAddAsync(citys,"Add");
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result));
         }
     }
     RefreshUI(RefreshedTypes.All);
     RefreshUI(RefreshedTypes.HideProgressBar);
 }