public SocketListener(NetworkManager o, GUI gui, int p) { port = p; owner = o; ownerGUI = gui; t = new Thread(new ParameterizedThreadStart(threadmain)); t.Name = "NETListenThread:" + port; t.Start(); }
private void Form1_Load(object sender, EventArgs e) { GeneralDebugLog = "LOG START"; NetworkDebugLog = "LOG START"; ApplicationDebugLog = "LOG START"; ThreadDebugLog = "LOG START"; CommandDebugLog = "LOG START"; ServiceDebugLog = "LOG START"; Debug.WriteLine("GUI started on Thread : " + AppDomain.GetCurrentThreadId()); Thread thread = Thread.CurrentThread; thread.Name = "GUI Thread"; //SetBlockerVisiable(true); debugConsole = new DebugConsole(this); debugConsole.Show(); commandQue = new CommandQue(this); //Worker workerObject = new Worker(); // Thread workerThread = new Thread(workerObject.DoWork); //workerThread.Start(); //TODO: Move object declarations out of method so they can be accessed outside this method commandParser = new CommandParser(this); commandThread = new Thread(commandParser.ParserMain); commandThread.Name = "CommandThread"; commandThread.Start(); applicationManager = new ApplicationManager(this); applicationThread = new Thread(applicationManager.ApplicationMain); applicationThread.Name = "AppManagerThread"; //applicationThread.Start(); networkManager= new NetworkManager(this); networkThread = new Thread(networkManager.NetworkMain); networkThread.Name = "netManager"; //networkThread.Start(); serviceManager = new ServiceManager(this); serviceThread = new Thread(serviceManager.ServiceMain); serviceThread.Name = "ServiceThread"; serviceThread.Start(); keyBlockForm = new KeyBlockForm(); }