// Decompiled with JetBrains decompiler // Type: System.Windows.Forms.Design.HexFontEditor // Assembly: FiestaShark, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null // MVID: 12469781-3753-4869-9C1A-117F1862B52C // Assembly location: E:\Fiesta\Emus\DragonFiesta\Tools\FiestaShark-Farbod\FiestaShark.exe using System.ComponentModel; using System.Drawing; using System.Drawing.Design; namespace System.Windows.Forms.Design { internal class HexFontEditor : FontEditor { private object value; public override object EditValue( ITypeDescriptorContext context, System.IServiceProvider provider, object value) { this.value = value; if (provider != null && (IWindowsFormsEditorService) provider.GetService(typeof (IWindowsFormsEditorService)) != null) { FontDialog fontDialog = new FontDialog(); fontDialog.ShowApply = false; fontDialog.ShowColor = false; fontDialog.AllowVerticalFonts = false; fontDialog.AllowScriptChange = false; fontDialog.FixedPitchOnly = true; fontDialog.ShowEffects = false; fontDialog.ShowHelp = false; if (value is Font font) fontDialog.Font = font; if (fontDialog.ShowDialog() == DialogResult.OK) this.value = (object) fontDialog.Font; fontDialog.Dispose(); } value = this.value; this.value = (object) null; return value; } public override UITypeEditorEditStyle GetEditStyle( ITypeDescriptorContext context) { return UITypeEditorEditStyle.Modal; } } }