static void Main(string[] args) { CommandReceiver server = new CommandReceiver(); server.Open(); Console.WriteLine($"Started: port {server.Port}"); Console.ReadKey(); server.Close(); Console.WriteLine("Closed."); }
/// System Menu /// Close the Window. private void OnCloseButton(object sender, RoutedEventArgs e) { this.dataProvider.Quit = true; commandReceiver.Close(); this.Close(); }