private void UCSystrayIconEditor_Load(object sender, EventArgs e)
 {
     btnSystrayIconFast.Image    = IconGenerator.GetImage(SIZE_ICON, Settings.Default.SystrayIconFast);
     btnSystrayIconGood.Image    = IconGenerator.GetImage(SIZE_ICON, Settings.Default.SystrayIconGood);
     btnSystrayIconSlow.Image    = IconGenerator.GetImage(SIZE_ICON, Settings.Default.SystrayIconSlow);
     btnSystrayIconBad.Image     = IconGenerator.GetImage(SIZE_ICON, Settings.Default.SystrayIconBad);
     btnSystrayIconDefault.Image = IconGenerator.GetImage(SIZE_ICON, Settings.Default.SystrayIconDefault);
 }
        public FrmBootstrap()
        {
            this.BackColor       = Color.LightGray;
            this.TransparencyKey = Color.LightGray;

            InitializeComponent();

            this.BackgroundImageLayout = ImageLayout.Zoom;
            this.BackgroundImage       = IconGenerator.GetImage(Settings.Default.SystrayIconDefault);

            this.notifyIcon.Icon = IconCache.Default;
        }
        private void btnSystrayIcon_Click(object sender, EventArgs e)
        {
            Button btn  = sender as Button;
            var    name = btn.Tag.ToString();

            colorDialog1.Color = (Color)Settings.Default.PropertyValues[name].PropertyValue;
            if (DialogResult.OK == colorDialog1.ShowDialog())
            {
                Color newColor = colorDialog1.Color;

                btn.Image = IconGenerator.GetImage(SIZE_ICON, newColor);

                Settings.Default.PropertyValues[name].PropertyValue = newColor;
                //Settings.Default.Save();
                IconCache.Reload();
            }
        }