Refactorization : BenchControl -> Rig
This commit is contained in:
@@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
using log4net;
|
||||
using Config.Entities;
|
||||
using Results.Forms;
|
||||
using TBF.BenchControl.GenericDevices;
|
||||
using TBF.Rig.GenericDevices;
|
||||
using TBF.Resources;
|
||||
using TBF.UI.Shared;
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace TBF.UI.Bench.Paths
|
||||
|
||||
foreach (var vlv in parent.Valves)
|
||||
{
|
||||
if (vlv.Category == TBF.BenchControl.ValveCategory.Feeding)
|
||||
if (vlv.Category == TBF.Rig.ValveCategory.Feeding)
|
||||
{
|
||||
Columns.Add(vlv.Cfg.Name, (ls.FeedingColumnCount > clmn) ? ls.FeedingColumnWidths[clmn] : 50 * parent.Dpi / Constants.Dpi100pct);
|
||||
clmn++;
|
||||
@@ -179,7 +179,7 @@ namespace TBF.UI.Bench.Paths
|
||||
public override void DrawOne(object myItem)
|
||||
{
|
||||
Config.Entities.FeedingPath entity = (Config.Entities.FeedingPath)myItem;
|
||||
BenchControl.FeedingPath path = new BenchControl.FeedingPath(entity, parent.TbfComponents);
|
||||
Rig.FeedingPath path = new Rig.FeedingPath(entity, parent.TbfComponents);
|
||||
|
||||
ListViewItem lvi = new ListViewItem(entity.Name);
|
||||
lvi.UseItemStyleForSubItems = false;
|
||||
@@ -197,7 +197,7 @@ namespace TBF.UI.Bench.Paths
|
||||
|
||||
foreach (var valve in parent.Valves)
|
||||
{
|
||||
if (valve.Category == TBF.BenchControl.ValveCategory.Feeding)
|
||||
if (valve.Category == TBF.Rig.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.Feeding)
|
||||
if (parent.Valves[j].Category == TBF.Rig.ValveCategory.Feeding)
|
||||
{
|
||||
string text = lvi.SubItems[fixedColumnsCount + regvCount + k].Text;
|
||||
if (text.Equals(Strings.open))
|
||||
|
||||
Reference in New Issue
Block a user