Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private void SaveWeightConfiguration()
 {
     XMLWriterReader.SerialiseAndWriteObject(CurrentDirectory.GetAssetsDirectoryFolder(@"XMLFiles\PIWeightConfiguration.xml"),
                                             WeightConfiguration, typeof(Collection <PerformanceIndicatorEntity>));
 }