Update ResourceHelper.cs
Simplify applying font for English
This commit is contained in:
parent
54cb35355d
commit
7babb08ac4
1 changed files with 3 additions and 15 deletions
|
@ -153,6 +153,9 @@ namespace Mesen.GUI.Forms
|
||||||
|
|
||||||
public static void ApplyResources(Form form)
|
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);
|
ApplyResources(form, form.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,21 +205,6 @@ namespace Mesen.GUI.Forms
|
||||||
name = ((DataGridViewColumn)ctrl).Name;
|
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 + "']");
|
var controlNode = baseNode.SelectSingleNode("Control[@ID='" + name + "']");
|
||||||
if(controlNode != null) {
|
if(controlNode != null) {
|
||||||
if(ctrl is Control) {
|
if(ctrl is Control) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue