private void OnEditColorEscapeSequence(object sender, EventArgs args) { EditEscapeSequenceColor dlg = new EditEscapeSequenceColor(_fontSample.BackColor, _fontSample.ForeColor, _profile.ESColorSet); if (dlg.ShowDialog(this) == DialogResult.OK) { _profile.ESColorSet = dlg.Result; _profile.ForeColor = dlg.GForeColor; _profile.BackColor = dlg.GBackColor; _bgColorBox.SelectedColor = dlg.GBackColor; _textColorBox.SelectedColor = dlg.GForeColor; _fontSample.ForeColor = dlg.GForeColor; _fontSample.BackColor = dlg.GBackColor; _fontSample.Invalidate(); _bgColorBox.Invalidate(); _textColorBox.Invalidate(); } }
private void UpdateFontSample(object sender, EventArgs args) { if (_ignoreEvent) { return; } _lASCIISample.ClearType = _checkClearType.Checked; _lCJKSample.ClearType = _checkClearType.Checked; OnCJKFontChange(sender, args); OnASCIIFontChange(sender, args); _lASCIISample.Invalidate(); _lCJKSample.Invalidate(); }