Beispiel #1
0
 void client_GetCompanyHistoryCompleted(object sender, GetCompanyHistoryCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result != null)
         {
             allCompanys = e.Result.ToList();
         }
     }
     BindCompany();
     client.GetDepartmentHistoryAsync(currentDate);
 }
Beispiel #2
0
 void client_GetCompanyHistoryCompleted(object sender, GetCompanyHistoryCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result != null)
         {
             allCompanys = e.Result.ToList();
         }
     }
     BindCompany();
     client.GetDepartmentHistoryAsync(currentDate);
 }