Beispiel #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (!SettingsMan.GetSetting("hue_ip").Equals("null"))
     {
         Application.Run(new Main());
     }
     else
     {
         Application.Run(new Setup());
     }
 }
Beispiel #2
0
        private async void Setup()
        {
            string appKey = await _controller.SetupHue(SettingsMan.GetSetting("hue_ip"), SettingsMan.GetSetting("hue_app_key"));

            SettingsMan.SaveSetting("hue_app_key", appKey);
        }
Beispiel #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     SettingsMan.SaveSetting("hue_ip", textBox1.Text);
     new Main().Show();
     this.Close();
 }