我有一个创建用户控件的应用程序,为此我定义了一个类来重用一些看起来像这样的字体:
public sealed class MyFonts
{
private static Font Tahoma7Regular = new Font("Tahoma", 7, FontStyle.Regular);
private static Font Tahoma9Regular = new Font("Tahoma", 9, FontStyle.Regular);
private static Font Tahoma9Bold = new Font("Tahoma", 9, FontStyle.Bold);
public static Font ChannelText = new Font("Tahoma", 12, FontStyle.Bold);
public static Font ClockText = Tahoma7Regular;
public static Font HelpText = Tahoma9Regular;
public static Font RollFieldText = Tahoma9Bold;
}
有什么方法可以改进它,我Brushes
在反编译器工具中看到了类,他们使用了ThreadData
我不知道的东西,但为了简单起见,我也可以改进这段代码吗?