Bug fixes : 1. TestProfileDlg.addButton_Click, 2. TestProfileSelection - conversion to float avoided.
This commit is contained in:
parent
e413b55c6a
commit
2476ed7681
@ -1182,6 +1182,7 @@ namespace TBF.UI.Bench.TestProfiles
|
||||
LoadedProfile.Tests.Add(ptest);
|
||||
AddToMetrologyTab(ptest);
|
||||
AddToErrorFlagsTab(ptest);
|
||||
AddToErrorFlags2Tab(ptest);
|
||||
|
||||
if (listViewEx != null)
|
||||
{
|
||||
|
||||
@ -178,9 +178,9 @@ namespace TBF.UI.Procedures.TestWizard
|
||||
Test test = new Test(ptest.Name, itemNr++, null); /// Procedure reference to be added later
|
||||
test.Part = ptest.Part;
|
||||
test.Profile = (profile.ProfileType == ProfileType.QpQi) ? TestProfile.ProtectedHeatMeter : TestProfile.Protected;
|
||||
test.Qtg = Convert.ToSingle(Qtg);
|
||||
test.Qfrom = Convert.ToSingle(Qtg * ptest.CoefQfrom);
|
||||
test.Qto = Convert.ToSingle(Qtg * ptest.CoefQto);
|
||||
test.Qtg = Qtg;
|
||||
test.Qfrom = Qtg * ptest.CoefQfrom;
|
||||
test.Qto = Qtg * ptest.CoefQto;
|
||||
test.TempLimLo = Convert.ToSingle(ptest.TempLimLo);
|
||||
test.TempLimHi = Convert.ToSingle(ptest.TempLimHi);
|
||||
test.Publish = ptest.Publish;
|
||||
@ -423,8 +423,6 @@ namespace TBF.UI.Procedures.TestWizard
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user