Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
0a428af63This file is pinned to the selected release. Download the original to open it in your design tool.
using ScanMaster.Database.Objects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ScanMaster.Comms
{
public class TestObject
{
TXItem testTx;
Function testFunc;
public TestObject(TXItem txItem, List<TXItem> children)
{
testTx = txItem;
ChildTXItems = children;
}
public TestObject(Function func, List<TXItem> children)
{
testFunc = func;
ChildTXItems = children;
}
public List<TXItem> ChildTXItems { get; private set; }
public override string ToString()
{
if (testFunc != null && testFunc.Name != null) return testFunc.Name.ResourceString;
if (testTx != null && testTx.Name != null) return testTx.Name.ResourceString;
return "(BARF)";
}
}
}