public FormGame() { var args = Environment.GetCommandLineArgs(); if (args.Length >= 2) { _host = args[1]; } if (args.Length >= 3) { _port = int.Parse(args[2]); } InitializeComponent(); _dispatcher.RegisterHandler(this); }