public void Reload() { MaterialListNotificator.Clear(); _materialsData = null; NotifyPropertyChanged("MaterialsData"); _materialOrdersData = null; NotifyPropertyChanged("MaterialOrdersData"); _productOrdersData = null; NotifyPropertyChanged("ProductOrdersData"); _externStorageMaterialsData = null; NotifyPropertyChanged("ExternStorageMaterialsData"); }
public void Reload(ILongOperationResult result) { try { if (result == null) { return; } if (result.CustomAction != null) { result.CustomAction(); } if (result.RefreshAll) { Reload(); return; } if (result.DataPublished) { UIApplication.MessageDialogs.Info("DataSaved".Localize()); Reload(); return; } if (result.RefreshProductOrders) { _productOrdersData = null; NotifyPropertyChanged("ProductOrdersData"); } if (result.RefreshMaterialOrders) { _materialOrdersData = null; NotifyPropertyChanged("MaterialOrdersData"); } if (result.RefreshExternStorageStats) { _externStorageMaterialsData = null; NotifyPropertyChanged("ExternStorageMaterialsData"); } if (result.RefreshAllMaterial) { _materialsData = null; NotifyPropertyChanged("MaterialsData"); } if (result.MaterialRefreshList != null) { foreach (ObjectId materialId in result.MaterialRefreshList) { MaterialListNotificator.Notify(materialId); } } } catch (Exception ex) { ApplicationContext.Log.Error(GetType(), ex); } }