コード例 #1
0
 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);
 }