Update ResourceHelper.cs

Simplify applying font for English
This commit is contained in:
mkwong98 2021-05-06 00:12:59 +08:00
parent 54cb35355d
commit 7babb08ac4

View file

@ -153,6 +153,9 @@ namespace Mesen.GUI.Forms
public static void ApplyResources(Form form)
{
if (GetCurrentLanguage() == Language.English){
form.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f);
}
ApplyResources(form, form.Name);
}
@ -202,21 +205,6 @@ namespace Mesen.GUI.Forms
name = ((DataGridViewColumn)ctrl).Name;
}
if (ctrl is Debugger.ctrlTextbox) {
}
else if (ctrl is Control){
if (GetCurrentLanguage() == Language.English){
((Control)ctrl).Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f);
}
}
else if (ctrl is ToolStripItem){
if (GetCurrentLanguage() == Language.English){
((ToolStripItem)ctrl).Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f);
}
}
var controlNode = baseNode.SelectSingleNode("Control[@ID='" + name + "']");
if(controlNode != null) {
if(ctrl is Control) {