private void ButtonTextFaceBackgroundColor_OnClick(object sender, RoutedEventArgs e) { try { var color = Color.Transparent; if (StreamDeckUICommon.SetBackgroundColor(ref color) == System.Windows.Forms.DialogResult.OK) { _dcsbiosDecoder.BackgroundColor = color; TextBoxFontInfo.TargetBackgroundColor = color; SetIsDirty(); SetFormState(); } } catch (Exception ex) { Common.ShowErrorMessageBox(ex); } }
private void ButtonTextFaceFont_OnClick(object sender, RoutedEventArgs e) { try { var font = SettingsManager.DefaultFont; if (StreamDeckUICommon.SetFontStyle(ref font) == System.Windows.Forms.DialogResult.OK) { _dcsbiosDecoder.TextFont = font; SettingsManager.DefaultFont = font; TextBoxFontInfo.TargetFont = font; SetIsDirty(); SetFormState(); } } catch (Exception ex) { Common.ShowErrorMessageBox(ex); } }