コード例 #1
0
        private void configurarLâmpadasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FConfigBridge oConfigBridge = new FConfigBridge();

            oConfigBridge.ShowDialog();

            if (oConfigBridge.IP != "")
            {
                string sIP = oConfigBridge.IP;

                HueLogic.FindBridgeIP(sIP);
                MessageBox.Show("Aperte o botão da Philips Bridge.");
                HueLogic.ConnectBridge("Philips hue");
                HueLogic.GetBridge();
            }
        }