Example #1
0
        private void CircularMenuItem_MouseEnter(object sender, EventArgs e)
        {
            if (_userSettings == null)
            {
                _userSettings = Bootstrapper.Container.GetExportedValue <IUserSettings>();
            }

            var color = (sender as CircularMenuItem).Color;

            CentralItem.ContentText = ColorFormatHelper.ColorToString(color, _userSettings.SelectedColorFormat.Value);
        }
Example #2
0
 private void Mouse_ColorChanged(object sender, System.Drawing.Color color)
 {
     _currentColor       = color;
     ColorString         = ColorFormatHelper.ColorToString(color, _userSettings.SelectedColorFormat.Value);
     DisplayedColorBrush = new SolidColorBrush(Color.FromArgb(color.A, color.R, color.G, color.B));
 }
Example #3
0
 public void AddColorIntoHistory(Color color)
 {
     if (ColorsHistory.Count > ColorsHistoryLimit - 1)
     {
         ColorsHistory.RemoveAt(ColorsHistoryLimit - 1);
     }
     ColorsHistory.Insert(0, color);
     Properties.Settings.Default.ColorsHistory = string.Join(ColorsSeparator, ColorsHistory.ConvertAll(c => ColorFormatHelper.ColorToString(c, ColorFormat.hex)));
     SaveSettings();
 }