Beispiel #1
0
        public void method_6()
        {
            List <GClass6.GClass10> .Enumerator enumerator;

            if (InvokeRequired)
            {
                base.Invoke(new Login.GDelegate2(method_6));
                return;
            }
            ButtonItem buttonItem        = null;
            List <GClass6.GClass10> list = GClass6.list_0;

            try
            {
                enumerator = list.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    GClass6.GClass10 gclass10 = enumerator.get_Current();
                    if (gclass10.method_2().Visible)
                    {
                        gclass10.method_2().Visible = false;
                    }
                    else
                    {
                        if (Operators.CompareString(gclass10.method_2().Name, "buttonGrinder", false) == 0)
                        {
                            buttonItem = gclass10.method_2();
                        }
                        gclass10.method_2().Visible = true;
                        gclass10.method_0().RecalcLayout();
                    }
                }
            }
            finally
            {
                enumerator.Dispose();
            }
            buttonItem.RaiseClick();
        }
Beispiel #2
0
        public void method_0()
        {
            Color color;

            Bar bar = new Bar("Menu Bar");

            bar.MenuBar                = true;
            bar.Stretch                = true;
            bar.AccessibleRole         = AccessibleRole.MenuBar;
            bar.AntiAlias              = true;
            bar.MenuBar                = true;
            bar.Name                   = "Bar4";
            bar.Font                   = new Font(bar.Font.FontFamily, 9.0F, FontStyle.Bold);
            bar.ColorScheme.MenuBorder = Color.FromArgb(0, 0, 255);
            bar.RoundCorners           = false;
            bar.Stretch                = true;
            bar.TabStop                = false;
            bar.Style                  = eDotNetBarStyle.StyleManagerControlled;
            Class1.Class2_0.method_7().vmethod_20().Bars.Add(bar);
            bar.DockSide = eDockSide.Top;
            ButtonItem buttonItem1 = new ButtonItem("buttonLogin", "LOGIN");

            buttonItem1.Visible = true;
            buttonItem1.Click  += new EventHandler(Main.smethod_2);
            GClass6.GClass10 gclass10_1 = new GClass6.GClass10();
            gclass10_1.method_3(buttonItem1);
            gclass10_1.method_1(bar);
            GClass6.list_0.Add(gclass10_1);
            bar.Items.Add(buttonItem1);
            ButtonItem buttonItem2 = new ButtonItem("buttonGrinder", "GRINDER");

            buttonItem2.Click += new EventHandler(Main.smethod_2);
            GClass6.GClass10 gclass10_2 = new GClass6.GClass10();
            gclass10_2.method_3(buttonItem2);
            gclass10_2.method_1(bar);
            GClass6.list_0.Add(gclass10_2);
            bar.Items.Add(buttonItem2);
            buttonItem2.Visible = false;
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Main));
            ColorPickerDropDown      colorPickerDropDown      = new ColorPickerDropDown();

            colorPickerDropDown.AccessibleRole = AccessibleRole.PushButton;
            colorPickerDropDown.ColorTable     = eButtonColor.OrangeWithBackground;
            colorPickerDropDown.Name           = "ColorPicker";
            componentResourceManager.ApplyResources(colorPickerDropDown, "ColorPicker");
            colorPickerDropDown.Image = (Image)componentResourceManager.GetObject("ColorPickerButton1.Image");
            Rectangle rectangle = new Rectangle(2, 2, 12, 12);

            colorPickerDropDown.SelectedColorImageRectangle = rectangle;
            colorPickerDropDown.Style = eDotNetBarStyle.StyleManagerControlled;
            MetroColorGeneratorParameters metroColorGeneratorParameters = Class1.Class2_0.method_7().vmethod_18().MetroColorParameters;

            colorPickerDropDown.SelectedColor         = metroColorGeneratorParameters.BaseColor;
            colorPickerDropDown.SelectedColorChanged += new EventHandler(Class1.Class2_0.method_7().method_0);
            ButtonItem buttonItem3 = new ButtonItem("buttonTheme", "THEME");

            buttonItem3.SubItems.Add(colorPickerDropDown);
            buttonItem3.ItemAlignment = eItemAlignment.Far;
            bar.Items.Add(buttonItem3);
            bar.RecalcLayout();
        }