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); }