Esempio n. 1
0
 public static WifiBridge getInstance()
 {
     if (_instance == null)
     {
         _instance = new WifiBridge();
     }
     return(_instance);
 }
Esempio n. 2
0
        public MainForm()
        {
            InitializeComponent();
            wifiBridge   = WifiBridge.getInstance();
            joystickList = MyJoystick.GetJoysticks();
            List <String> joystickStirngs = new List <String>();

            FormClosing    += MainForm_FormClosing;
            timer           = new System.Timers.Timer(60);
            timer.Elapsed  += Timer_Elapsed;
            timer.AutoReset = true;
            timer.Start();
            foreach (var j in joystickList)
            {
                joystickStirngs.Add(j.InstanceName);
                JoystickCombo.Items.Add(j.InstanceName);
                ThrottleCombo.Items.Add(j.InstanceName);
            }
        }