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); }
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)); }
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(); }