58 lines
1.5 KiB
C#
58 lines
1.5 KiB
C#
namespace OMNIPruefung.ViewModels.Features
|
|
{
|
|
using OmniPlus.Features;
|
|
using OMNIPruefung.ViewModels.Base;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
public class OMNIPlusVM : VM<OMNIPlusVM>
|
|
{
|
|
private OMNISysParameters sysParameters;
|
|
public OMNISysParameters SystemParameters
|
|
{
|
|
get => this.sysParameters;
|
|
set
|
|
{
|
|
this.sysParameters = value;
|
|
|
|
this.NotifyPropertyChanged(nameof(this.SystemParameters));
|
|
}
|
|
}
|
|
|
|
public double CorrectionFactor { get; set; }
|
|
|
|
public ChamberCalibrationResponse CalibrationResult { get; set; }
|
|
= new ChamberCalibrationResponse();
|
|
|
|
public Dictionary<string, Dictionary<string, string>> Properties
|
|
{
|
|
get
|
|
{
|
|
var dictionary = new Dictionary<string, Dictionary<string, string>>();
|
|
|
|
dictionary["System parameters:"] = this.SystemParameters
|
|
?.ToDictionary() ?? new Dictionary<string, string>();
|
|
|
|
dictionary["Test results:"] = new Dictionary<string, string>
|
|
{
|
|
{ nameof(this.CorrectionFactor), $"{this.CorrectionFactor:0.0000}" }
|
|
};
|
|
|
|
return dictionary;
|
|
}
|
|
}
|
|
|
|
private string error;
|
|
public string Error
|
|
{
|
|
get => this.error;
|
|
set
|
|
{
|
|
this.error = value;
|
|
|
|
this.NotifyPropertyChanged(nameof(this.Error));
|
|
}
|
|
}
|
|
}
|
|
}
|