public CommandThread( ThreadSupervisor InSupervisor, TelnetConnection InConn, TelnetCommandRoute InCommandRoute, RunLogListBox InRunLog) { mShutdownFlag = new ExtendedManualResetEvent(false); mConn = InConn; mCommandRoute = InCommandRoute; mRunLog = InRunLog; Supervisor = InSupervisor; }
// ----------------------------- RunCommand ------------------------------------ public static void RunCommand( ThreadSupervisor InSupervisor, TelnetConnection InConn, TelnetCommandRoute InCommandRoute, RunLogListBox InRunLog, string InCmdText) { { RunLogListBox runLog = new RunLogListBox(InRunLog, "RunCommand"); CommandThread ct = new CommandThread( InSupervisor, InConn, InCommandRoute, InRunLog); ct.CommandText = InCmdText; // run the logout thread. CommandThread.ThreadStart(ct); } }