Исправлены цвета панелей

This commit is contained in:
2024-10-10 14:40:22 +03:00
parent 61db7beb4c
commit 309b57a787
36 changed files with 43 additions and 26 deletions

View File

@@ -60,5 +60,25 @@ namespace GtaVUsersInfo.Sources
return null;
}
}
public static void ChangeFontInControls(Control parent, Color color)
{
foreach (Control control in parent.Controls)
{
if (control is TextBox ||
control is Button ||
control is ComboBox ||
control is Label ||
control is MenuStrip)
{
control.BackColor = color;
}
if (control.HasChildren)
{
ChangeFontInControls(control, color);
}
}
}
}
}