public static void Apply(MetroForm form, MetroStyleExtender extender) { form.Theme = AppStyle; form.Style = AppTheme; MetroStyleManager mgr = new MetroStyleManager(form.Container); mgr.Owner = form; mgr.Style = form.Style; mgr.Theme = form.Theme; if (extender != null) { extender.StyleManager = mgr; extender.Style = mgr.Style; extender.Theme = mgr.Theme; } form.ShadowType = MetroFormShadowType.DropShadow; mgr.Update(); }
public static void RefreshStyles() { MANAGER.Update(); GetExtender(); EXTENDER.StyleManager = MANAGER; }