private void refreshTheme() { /* uc_advancedWarfare.Invalidate(); uc_blackOps.Invalidate(); uc_blackOps2.Invalidate(); uc_blackOps3.Invalidate(); uc_ghosts.Invalidate(); uc_modernWarfare2.Invalidate(); uc_modernWarfare3.Invalidate(); uc_mw.Invalidate(); uc_waw.Invalidate(); */ /* uc_advancedWarfare.Refresh(); uc_blackOps.Refresh(); uc_blackOps2.Refresh(); uc_blackOps3.Refresh(); uc_ghosts.Refresh(); uc_modernWarfare2.Refresh(); uc_modernWarfare3.Refresh(); uc_mw.Refresh(); uc_waw.Refresh(); */ //this.Refresh(); var controls = new UserControl[] { this.uc_advancedWarfare, this.uc_blackOps, this.uc_blackOps2, this.uc_blackOps3, this.uc_ghosts, this.uc_modernWarfare2, this.uc_modernWarfare3, this.uc_mw, this.uc_waw }; foreach (var uc in controls) { if (uc == null) continue; uc.BackColor = this.BackColor; } }
MyUserControl.Invalidate();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)