UniCB DrShp, AltStrings, double Press, new Cfg style, Lbl,Setp,Msrd pos != 0, arrow keys, refactorization, ver. 3.1.1597

This commit is contained in:
Milan Hanajik
2021-03-01 15:22:37 +01:00
parent b5f8d06e5b
commit 35815fe78a
147 changed files with 2901 additions and 5315 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
public int SetpY { get; set; }
public Orient SetpOrient { get; set; }
public string SetpFormat { get; set; }
public Config.Unit SetpUnits { get; set; }
public Config.Unit SetpUnit { get; set; }
[XmlIgnore]
public IList<GNode> GNodes { get; set; }
@@ -65,7 +65,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
Shape = Shape.PumpFM;
Sz = Sz.M;
SetpFormat = "{0:F0} %";
SetpUnits = Config.Unit.Pct;
SetpUnit = Config.Unit.Pct;
Name = "Pump-Danfoss";
Factory = factory;
@@ -121,7 +121,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
dataBitsTextBox.Text = config.DataBits.ToString();
stopBitsComboBox.Text = config.StopBits.ToString();
formatTextBox.Text = config.SetpFormat;
unitsComboBox.Text = config.SetpUnits.ToString();
unitsComboBox.Text = config.SetpUnit.ToString();
}
public void Unlock()
@@ -158,12 +158,12 @@ namespace TBF.BenchControl.Danfoss.VLT2800
config.StopBits = GetStopBits(stopBitsComboBox.SelectedItem.ToString());
config.SetpFormat = formatTextBox.Text;
config.SetpUnits = global::Config.Unit.None;
config.SetpUnit = global::Config.Unit.None;
for (Config.Unit units = 0; units < global::Config.Unit.Count; units++)
{
if (unitsComboBox.Text == units.ToString())
{
config.SetpUnits = units;
config.SetpUnit = units;
break;
}
}