void ConnectClicked() { if (flightBoardModel.IsConnect()) { flightBoardModel.Stop(); Commands.Instance.Init(); System.Threading.Thread.Sleep(1000); } new Thread(delegate() { Commands.Instance.ServerConnect(ApplicationSettingsModel.Instance.FlightServerIP, ApplicationSettingsModel.Instance.FlightCommandPort); }).Start(); flightBoardModel.Connect(ApplicationSettingsModel.Instance.FlightServerIP, ApplicationSettingsModel.Instance.FlightInfoPort); }
private void OnConnect() { model.Connect(); }