|
|
@ -26,16 +26,6 @@ namespace eCompanies |
|
|
|
{ |
|
|
|
if (updatingCompany == null) return; |
|
|
|
updatingCompany.needUpdate = true; |
|
|
|
var context = ((ObservableCollection<Company>)companyGrid.DataContext).ToList<Company>(); |
|
|
|
for (int i = 0; i < context.Count; i++) |
|
|
|
{ |
|
|
|
if (context[i].CompanyId.Equals(updatingCompany.CompanyId)) |
|
|
|
{ |
|
|
|
context[i] = updatingCompany; |
|
|
|
companyGrid.DataContext = new ObservableCollection<Company>(context); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|