public Server(Class1 owner) { Owner = owner; settings = ServerSettings.Instance; tcpListener = new TcpListener(IPAddress.Any, settings.Port); tcpListener.Start(); listenThread = new Thread(Listen); listenThread.Name = "GRC Server"; listenThread.IsBackground = true; running = true; listenThread.Start(); }
private void SettingsForm_Load(object sender, EventArgs e) { serverSettings = (ServerSettings)ServerSettings.Instance.Clone(); propertyGrid.SelectedObject = serverSettings; }