public bool UpdateResource(Configuration config) { if (myCommMainCtrl.IsOpen) { return(false); } myPassNumber = config.PassNumber; myCommInstructions = new CommInstructions(config.RmRange); myCommMainCtrl = new CommMainCtrl(config); return(true); }
public BusinessLogic() { var config = new Configuration(); myPassNumber = config.PassNumber; myCommInstructions = new CommInstructions(config.RmRange); myCommMainCtrl = new CommMainCtrl(config); myTaskQueue = new ConcurrentQueue <CommunicationTasks>(); LogConfigParameter = new List <DataParameter>(); DumpConfigParameter = new DataParameter(); mylogData = new ConcurrentQueue <LogData>(); TaskState = CommunicationTasks.Nothing; BypassRequest = new ConcurrentQueue <string>(); BypassResponse = new ConcurrentQueue <string>(); }