Exemplo n.º 1
0
        private void FindAvailableNetworks_Load(object sender, EventArgs e)
        {
            this.Show();
            pair = new TstatPairing();

            try
            {
                List<Network> networks = pair.GetAvailableThermostats().FindAll(StartsWithThermostat);

                if (networks.Count == 0)
                {
                    Debug.Write("Could not find any thermostats.");
                }

                //lbAvailableTstats.Items.Clear();
                lbAvailableTstats.DataSource = networks;
                lbAvailableTstats.DisplayMember = "NetworkSSID";
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }
Exemplo n.º 2
0
        private void getThermostats()
        {
            if(pair == null)
                pair = new TstatPairing();

            try
            {
                List<Network> networks = pair.GetAvailableThermostats().FindAll(StartsWithThermostat);

                if (networks.Count == 0)
                {
                    Debug.Write("Could not find any thermostats.");
                }

                //lbAvailableTstats.Items.Clear();
                lbAvailableTstats.DataSource = networks;
                lbAvailableTstats.DisplayMember = "NetworkSSID";
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }
Exemplo n.º 3
0
 public ShowVisibleNetworks()
 {
     this.pair = new TstatPairing();
     InitializeComponent();
 }
Exemplo n.º 4
0
 public ShowVisibleNetworks(TstatPairing pair)
 {
     this.pair = pair;
     InitializeComponent();
 }
Exemplo n.º 5
0
 public CurrentNetwork(TstatPairing obj)
 {
     InitializeComponent();
     pair = obj;
 }
Exemplo n.º 6
0
 public ConnectToHomeNetwork(JsonNetwork net, TstatPairing pair)
 {
     InitializeComponent();
     this.pair = pair;
     this.currentNetwork = net;
 }
Exemplo n.º 7
0
 public ConnectToHomeNetwork()
 {
     InitializeComponent();
     this.pair = new TstatPairing();
 }