Qfrom, Qto, Volume, TestTime : float -> double, config DB change.
This commit is contained in:
@@ -188,7 +188,7 @@ namespace TBF.UI.Bench.Paths
|
||||
void listViewEx_SubItemEndEditing(object sender, SubItemEndEditingEventArgs e)
|
||||
{
|
||||
var entity = e.Item.Tag as Config.Entities.FeedingPath;
|
||||
float fdummy;
|
||||
double ddummy;
|
||||
|
||||
if (e.SubItem >= fixedColumnsCount + regvCount)
|
||||
{
|
||||
@@ -196,7 +196,7 @@ namespace TBF.UI.Bench.Paths
|
||||
}
|
||||
else if (e.SubItem == (int)Column.Qfrom)
|
||||
{
|
||||
if (Utils.TryParseUFloat(e.DisplayText, out fdummy))
|
||||
if (Utils.TryParseUDouble(e.DisplayText, out ddummy))
|
||||
{
|
||||
entity.QfromTextChngd = true;
|
||||
}
|
||||
@@ -208,7 +208,7 @@ namespace TBF.UI.Bench.Paths
|
||||
}
|
||||
else if (e.SubItem == (int)Column.Qto)
|
||||
{
|
||||
if (Utils.TryParseUFloat(e.DisplayText, out fdummy))
|
||||
if (Utils.TryParseUDouble(e.DisplayText, out ddummy))
|
||||
{
|
||||
entity.QtoTextChngd = true;
|
||||
}
|
||||
@@ -303,12 +303,12 @@ namespace TBF.UI.Bench.Paths
|
||||
|
||||
entity.Name = lvi.Text;
|
||||
|
||||
float Qfrom;
|
||||
bool allOk = Utils.TryParseUFloat(lvi.SubItems[(int)Column.Qfrom].Text, out Qfrom);
|
||||
double Qfrom;
|
||||
bool allOk = Utils.TryParseUDouble(lvi.SubItems[(int)Column.Qfrom].Text, out Qfrom);
|
||||
entity.Qfrom = Units.ConvertFrom(entity.FlowUnit, Qfrom);
|
||||
|
||||
float Qto;
|
||||
allOk &= Utils.TryParseUFloat(lvi.SubItems[(int)Column.Qto].Text, out Qto);
|
||||
double Qto;
|
||||
allOk &= Utils.TryParseUDouble(lvi.SubItems[(int)Column.Qto].Text, out Qto);
|
||||
entity.Qto = Units.ConvertFrom(entity.FlowUnit, Qto);
|
||||
|
||||
entity.Selector = lvi.SubItems[(int)Column.Selector].Text;
|
||||
|
||||
Reference in New Issue
Block a user