Example #1
0
        public static void SetStyle(this IContainer container, MetroForm ownerForm, MetroColorStyle formStyle)
        {
            if (container == null)
            {
                container = new Container();
            }
            MetroStyleManager val = new MetroStyleManager(container);

            val.set_Owner((ContainerControl)(object)ownerForm);
            ownerForm.set_Style(formStyle);
            container.SetDefaultStyle(ownerForm, formStyle);
        }
Example #2
0
        public static void SetStyle(this IContainer container, MetroForm ownerForm, MetroColorStyle formStyle)
        {
            //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_Style(formStyle);
            container.SetDefaultStyle(ownerForm, formStyle);
        }