Example #1
0
 public static WifiBridge getInstance()
 {
     if (_instance == null)
     {
         _instance = new WifiBridge();
     }
     return(_instance);
 }
Example #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);
            }
        }