ReSharper: -CLR types introduced on GTB
This commit is contained in:
@@ -25,8 +25,8 @@ namespace CordonelAssemblyLine.Data
|
||||
Remark = baseData.Remark;
|
||||
Rev = baseData.Rev;
|
||||
TesterName = baseData.TesterName;
|
||||
Testpoints = new ObservableCollection<PressureTestPoints>();
|
||||
baseData.TestPoints.ForEach(o => Testpoints.Add(o));
|
||||
TestPoints = new ObservableCollection<PressureTestPoints>();
|
||||
baseData.TestPoints.ForEach(o => TestPoints.Add(o));
|
||||
TestPressure = baseData.TestPressure;
|
||||
}
|
||||
public PressureResultDataNotifyable()
|
||||
@@ -39,108 +39,107 @@ namespace CordonelAssemblyLine.Data
|
||||
}
|
||||
|
||||
|
||||
public string PcbId;
|
||||
public String PcbId;
|
||||
|
||||
|
||||
private int rev = 0;
|
||||
private Int32 _rev;
|
||||
|
||||
public int Rev
|
||||
public Int32 Rev
|
||||
{
|
||||
get { return rev; }
|
||||
get => _rev;
|
||||
set
|
||||
{
|
||||
rev = value;
|
||||
_rev = value;
|
||||
InternalPropertyChanged(nameof(Rev));
|
||||
}
|
||||
}
|
||||
private bool? passed = false;
|
||||
public bool? Passed
|
||||
private Boolean? _passed = false;
|
||||
public Boolean? Passed
|
||||
{
|
||||
get { return passed; }
|
||||
get => _passed;
|
||||
set
|
||||
{
|
||||
passed = value;
|
||||
_passed = value;
|
||||
InternalPropertyChanged(nameof(Passed));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private string testerName = "";
|
||||
private String _testerName = "";
|
||||
public String TesterName
|
||||
{
|
||||
get { return testerName; }
|
||||
get => _testerName;
|
||||
set
|
||||
{
|
||||
testerName = value;
|
||||
_testerName = value;
|
||||
InternalPropertyChanged(nameof(TesterName));
|
||||
}
|
||||
}
|
||||
|
||||
private string testPressure = "6";
|
||||
private String _testPressure = "6";
|
||||
public String TestPressure
|
||||
{
|
||||
get { return testPressure; }
|
||||
get => _testPressure;
|
||||
set
|
||||
{
|
||||
testPressure = value;
|
||||
_testPressure = value;
|
||||
InternalPropertyChanged(nameof(TestPressure));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private string leakRate = " 0,00001";
|
||||
private String _leakRate = " 0,00001";
|
||||
public String LeakRate
|
||||
{
|
||||
get { return leakRate; }
|
||||
get => _leakRate;
|
||||
set
|
||||
{
|
||||
leakRate = value;
|
||||
_leakRate = value;
|
||||
InternalPropertyChanged(nameof(LeakRate));
|
||||
}
|
||||
}
|
||||
|
||||
private string remark = "";
|
||||
private String _remark = "";
|
||||
public String Remark
|
||||
{
|
||||
get { return remark; }
|
||||
get => _remark;
|
||||
set
|
||||
{
|
||||
remark = value;
|
||||
_remark = value;
|
||||
InternalPropertyChanged(nameof(Remark));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ObservableCollection<PressureTestPoints> testpoints = new ObservableCollection<PressureTestPoints>() {
|
||||
new PressureTestPoints() { Ident = 1, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 2, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 3, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 4, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 5, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 6, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 7, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 8, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 9, Input = "0,000000200000" },
|
||||
new PressureTestPoints() { Ident = 10, Input = "0,000000200000" }
|
||||
};
|
||||
public ObservableCollection<PressureTestPoints> Testpoints
|
||||
private ObservableCollection<PressureTestPoints> _testPoints = new ObservableCollection<PressureTestPoints>
|
||||
{
|
||||
get { return testpoints; }
|
||||
new PressureTestPoints { Ident = 1, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 2, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 3, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 4, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 5, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 6, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 7, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 8, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 9, Input = "0,000000200000" },
|
||||
new PressureTestPoints { Ident = 10, Input = "0,000000200000" }
|
||||
};
|
||||
public ObservableCollection<PressureTestPoints> TestPoints
|
||||
{
|
||||
get => _testPoints;
|
||||
set
|
||||
{
|
||||
testpoints = value;
|
||||
InternalPropertyChanged(nameof(Testpoints));
|
||||
_testPoints = value;
|
||||
InternalPropertyChanged(nameof(TestPoints));
|
||||
}
|
||||
}
|
||||
|
||||
internal void SetAllTestPoints(string input)
|
||||
internal void SetAllTestPoints(String input)
|
||||
{
|
||||
foreach (var item in Testpoints)
|
||||
foreach (var item in TestPoints)
|
||||
{
|
||||
item.Input = input;
|
||||
}
|
||||
InternalPropertyChanged(nameof(Testpoints));
|
||||
InternalPropertyChanged(nameof(TestPoints));
|
||||
}
|
||||
public PressureResultData ToBase()
|
||||
{
|
||||
@@ -151,7 +150,7 @@ namespace CordonelAssemblyLine.Data
|
||||
baseData.Remark = Remark;
|
||||
baseData.Rev = Rev;
|
||||
baseData.TesterName = TesterName;
|
||||
baseData.TestPoints = Testpoints.ToList();
|
||||
baseData.TestPoints = TestPoints.ToList();
|
||||
baseData.TestPressure = TestPressure;
|
||||
return baseData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user