ValveCategory.All removed, RegValve-s are never in ValveCategory.Bench.
This commit is contained in:
@@ -77,7 +77,7 @@ namespace TBF.UI.Bench.Paths
|
||||
|
||||
foreach (var vlv in parent.Valves)
|
||||
{
|
||||
if (vlv.Category == TBF.BenchControl.ValveCategory.All || vlv.Category == TBF.BenchControl.ValveCategory.Feeding)
|
||||
if (vlv.Category == TBF.BenchControl.ValveCategory.Feeding)
|
||||
{
|
||||
Columns.Add(vlv.Cfg.Name, (ls.FeedingColumnCount > clmn) ? ls.FeedingColumnWidths[clmn] : 50 * parent.Dpi / Constants.Dpi100pct);
|
||||
clmn++;
|
||||
@@ -197,7 +197,7 @@ namespace TBF.UI.Bench.Paths
|
||||
|
||||
foreach (var valve in parent.Valves)
|
||||
{
|
||||
if (valve.Category == TBF.BenchControl.ValveCategory.All || valve.Category == TBF.BenchControl.ValveCategory.Feeding)
|
||||
if (valve.Category == TBF.BenchControl.ValveCategory.Feeding)
|
||||
{
|
||||
if (path.ValvesOpen != null && path.ValvesOpen.Contains(valve))
|
||||
{
|
||||
@@ -266,7 +266,7 @@ namespace TBF.UI.Bench.Paths
|
||||
int k = 0;
|
||||
for (int j = 0; j < parent.Valves.Count; j++)
|
||||
{
|
||||
if (parent.Valves[j].Category == TBF.BenchControl.ValveCategory.All || parent.Valves[j].Category == TBF.BenchControl.ValveCategory.Feeding)
|
||||
if (parent.Valves[j].Category == TBF.BenchControl.ValveCategory.Feeding)
|
||||
{
|
||||
string text = lvi.SubItems[fixedColumnsCount + regvCount + k].Text;
|
||||
if (text.Equals(Strings.open))
|
||||
|
||||
Reference in New Issue
Block a user