public PerformanceIndicatorViewModel(ExceptionLogDataAccess exceptionLogging) { _exceptionLogDataAccess = exceptionLogging; ConfigureHeaderControl(true, true, Properties.PerformanceIndicatorResource.Title, true, Properties.PerformanceIndicatorResource.Description); var configuration = XMLWriterReader.DeserialiseObject(CurrentDirectory.GetAssetsDirectoryFolder(@"XMLFiles\PIWeightConfiguration.xml"), typeof(List <PerformanceIndicatorEntity>)); if (configuration != null) { WeightConfiguration = new ObservableCollection <PerformanceIndicatorEntity>((ICollection <PerformanceIndicatorEntity>)configuration); } GetSavedExperimentResults(); }
private void SaveWeightConfiguration() { XMLWriterReader.SerialiseAndWriteObject(CurrentDirectory.GetAssetsDirectoryFolder(@"XMLFiles\PIWeightConfiguration.xml"), WeightConfiguration, typeof(Collection <PerformanceIndicatorEntity>)); }