Esempio n. 1
0
        private void ApplyFontColor()
        {
            int colorIndex = AvailableColors.GetFontColorIndex(this.Font.Color);

            this.FontControl.colorPicker.colorComboBox.SelectedIndex = colorIndex;
            this.FontControl.colorPicker.colorComboBox.BringIntoView();
        }
Esempio n. 2
0
        private void SyncBackground()
        {
            int colorIdx = AvailableColors.GetFontColorIndex(this.Font.Background);

            this.colorFontChooser.backgroundPicker.superCombo.SelectedIndex = colorIdx;
            this.colorFontChooser.txtSampleText.Background = this.Font.Background.Brush;
            this.colorFontChooser.backgroundPicker.superCombo.BringIntoView();
        }