Ejemplo n.º 1
0
        public static void SetTheme(this IContainer container, MetroForm ownerForm, MetroThemeStyle formTheme)
        {
            if (container == null)
            {
                container = new Container();
            }
            MetroStyleManager val = new MetroStyleManager(container);

            val.set_Owner((ContainerControl)(object)ownerForm);
            ownerForm.set_Theme(formTheme);
            container.SetDefaultTheme(ownerForm, formTheme);
        }
Ejemplo n.º 2
0
        public static void SetTheme(this IContainer container, MetroForm ownerForm, MetroThemeStyle formTheme)
        {
            //IL_000b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0011: Expected O, but got Unknown
            //IL_0019: Unknown result type (might be due to invalid IL or missing references)
            //IL_0021: Unknown result type (might be due to invalid IL or missing references)
            if (container == null)
            {
                container = new Container();
            }
            MetroStyleManager val = new MetroStyleManager(container);

            val.set_Owner((ContainerControl)(object)ownerForm);
            ownerForm.set_Theme(formTheme);
            container.SetDefaultTheme(ownerForm, formTheme);
        }