/*#--------------------------------------------------------------------------#*/ /* Description: FiddleYardIOHandle * Constructor * * * * Input(s) : * * Output(s) : * * Returns : * * Pre.Cond. : * * Post.Cond. : * * Notes : */ /*#--------------------------------------------------------------------------#*/ public FiddleYardIOHandle(string instance, iFiddleYardController iFYCtrl) { m_instance = instance; m_iFYCtrl = iFYCtrl; // connect to FYController interface, save interface in variable FYIOHandleVar = new FiddleYardIOHandleVariables(); FYSimulator = new FiddleYardSimulator(m_instance, FYIOHandleVar); FYApp = new FiddleYardApplication(m_instance, FYIOHandleVar, this); }
public FiddleYardController(byte[,] macAddr, byte[,] ipAddr, int FYReceivingPort) { m_FYReceivingPort = FYReceivingPort; m_macAddr = macAddr; m_ipAddr = ipAddr; FYIOHandle = new FiddleYardIOHandle(m_FYReceivingPort, FYSimulatorActive, this); FYAppTop = new FiddleYardApplication("FiddleYardTOP", this); FYAppBot = new FiddleYardApplication("FiddleYardBOT", this); FYSimulatorTop = new FiddleYardSimulator("FiddleYardTOP", this); FYSimulatorBot = new FiddleYardSimulator("FiddleYardBOT", this); FYAppTop.Start(); FYAppBot.Start(); FYTOP.Name = "FiddleYardTOP"; FYBOT.Name = "FiddleYardBOT"; FYTOP.Show(); FYTOP.Hide(); FYBOT.Show(); FYBOT.Hide(); FYTOP.Connect(this); // connect the TOP Form to the FYController interface FYBOT.Connect(this); // connect the BOTTOM Form to the FYController interface }