in DiagManager/fmDiagManager.cs [382:427]
private void SetFont(Control parent)
{
foreach (Control ctrl in parent.Controls)
{
Type type = ctrl.GetType();
Font EffectiveFont = new Font("Arial", 10, FontStyle.Regular);
Font Font1 = new Font("Arial", 12, FontStyle.Regular);
Font Font2 = new Font("Times New Roman", 10, FontStyle.Regular);
if (type == typeof(GroupBox) || type == typeof(TabControl) )
{
object tag = ctrl.Tag;
if (tag !=null && tag.ToString() == "20")
{
//do nothing for now;
}
else
{
EffectiveFont = Font1;
}
}
else if (type == typeof(RadioButton) || type == typeof (CheckedListBox))
{
EffectiveFont = Font2;
}
else if (type == typeof (TextBox))
{
ctrl.Width = 120;
ctrl.Height = 75;
}
else if (type == typeof(CheckBox))
{
}
ctrl.Font = EffectiveFont;
if (ctrl.Controls.Count > 0)
{
SetFont(ctrl);
}
}
}