Пример #1
0
 // Constructor.
 public MySimulatorModel()
 {
     mutex        = new Mutex();
     telnetClient = new MyTelnetClient();
     Location     = "32.0055,34.8854";
     Error        = "                                          <------   Flight Simulator    ------->\n";
     Reset();
 }
        // Constructor.
        public MySimulatorModel(IConfiguration config)
        {
            mutex        = new Mutex();
            telnetClient = new MyTelnetClient();
            string ip          = config.GetConnectionString("IP");
            string socket_port = config.GetConnectionString("socket_port");

            this.Connect(ip, socket_port);
            telnetClient.Write("data\n");
        }