Esempio n. 1
0
 public myCompareString()
 {
     _myConfig      = new MobileConfiguration();
     orderedStrings = new List <string>();
     orderedStrings.Add(_myConfig._profile1);
     orderedStrings.Add(_myConfig._profile2);
 }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();

            //we have to wait for the Windows APIs being loaded...
            WinAPIReady winReady = new WinAPIReady();
            int         maxWait  = 20;

            do
            {
                System.Threading.Thread.Sleep(1000);
                maxWait--;
            } while (winReady.ApiIsReay == false && maxWait > 0);
            winReady.Dispose();

            try
            {
                _wifi = new wifi();
                isRAC = true;
                MobileConfiguration myConfig = new MobileConfiguration();
                button1.Text = myConfig._profile1;
                button2.Text = myConfig._profile2;
            }
            catch (NotSupportedException ex)
            {
                MessageBox.Show(ex.Message);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            if (isRAC)
            {
                btnStart.Enabled = true;
            }

            _network = new network();

            addLog("Network start: " + (network._getConnected()?"connected":"disconnected"));

            timerMinimize.Interval = 5000;
            timerMinimize.Tick    += new EventHandler(timerMinimize_Tick);
            timerMinimize.Enabled  = true;

            startConnector();
            updateButtons();

            //_network.networkChangedEvent += new network.networkChangeEventHandler(_network_networkChangedEvent);
        }