コード例 #1
0
        public LightApplicationContext() {
            CurrentContext = this;

            // Set up tray icon
            _notifyIcon = new NotifyIcon {
                Icon = Resources.lightbulb,
                Visible = true,
                Text = "Milight Control"
            };

            Reload();

            // If this is the first time, show the configuration window immediately
            if ((bool) Settings.Default["FirstStart"]) {
                _configForm.ShowDialog();

                Settings.Default["FirstStart"] = false;
                Settings.Default.Save();
            }
        }
コード例 #2
0
        public LightApplicationContext()
        {
            CurrentContext = this;

            // Set up tray icon
            _notifyIcon = new NotifyIcon {
                Icon    = Resources.lightbulb,
                Visible = true,
                Text    = "Milight Control"
            };

            Reload();

            // If this is the first time, show the configuration window immediately
            if ((bool)Settings.Default["FirstStart"])
            {
                _configForm.ShowDialog();

                Settings.Default["FirstStart"] = false;
                Settings.Default.Save();
            }
        }