Example #1
0
 public void method_3(NavigateMenuNode navigateMenuNode_1)
 {
     if (this.navigateMenuNode_0 != navigateMenuNode_1)
     {
         this.navigateMenuNode_0 = navigateMenuNode_1;
         base.Invalidate();
     }
 }
Example #2
0
 public void method_2(NavigateMenuNode navigateMenuNode_1)
 {
     if (this.navigateMenuNode_0 != navigateMenuNode_1)
     {
         this.navigateMenuNode_0 = navigateMenuNode_1;
         this.int_5 = 0x2c;
         base.Invalidate();
     }
 }
Example #3
0
        public static void Load(NavigatePage navigatePage_0, object object_0, string string_0, bool bool_0)
        {
            Class120 class2 = PlugInTree.smethod_5(string_0);

            if (class2 != null)
            {
                NavigateMenuNode node = smethod_0(class2.method_2(object_0, bool_0));
                if (((node != null) && (node.Node != null)) && (node.Node.Count > 0))
                {
                    navigatePage_0.Nodes = node;
                }
            }
        }
Example #4
0
 private void method_10(NavigateMenuNode navigateMenuNode_1)
 {
     if (((navigateMenuNode_1 != null) && (navigateMenuNode_1.Node != null)) && (navigateMenuNode_1.Node.Count > 0))
     {
         foreach (NavigateMenuNode node in navigateMenuNode_1.Node)
         {
             node.IsExpand = false;
             if ((node.Node != null) && (node.Node.Count > 0))
             {
                 this.method_10(node);
             }
         }
     }
 }
Example #5
0
 private static void smethod_1(NavigateMenuNode navigateMenuNode_0, TreeNode treeNode_0)
 {
     foreach (TreeNodeCommand command in treeNode_0.Nodes)
     {
         Bitmap bitmap = ResourceUtil.GetBitmap(command.ImageKey);
         if (bitmap == null)
         {
             bitmap = Class131.smethod_38();
         }
         NavigateMenuNode node = new NavigateMenuNode(command.Text, command.function_0.Id, bitmap, command)
         {
             ImageKey = command.ImageKey
         };
         if (command.Nodes.Count > 0)
         {
             smethod_1(node, command);
         }
         navigateMenuNode_0.Node.Add(node);
     }
 }
Example #6
0
 private void method_5(PaintEventArgs paintEventArgs_0, int int_6, ref int int_7, NavigateMenuNode navigateMenuNode_1, List <NavigateMenuNodeRect> nodeList)
 {
     for (int i = 0; i < navigateMenuNode_1.Node.Count; i++)
     {
         Rectangle rectangle = new Rectangle(this.int_0 + 1, int_7, (base.Width - this.int_0) - 3, this.int_3 - 1);
         nodeList.Add(new NavigateMenuNodeRect(navigateMenuNode_1.Node[i], rectangle));
         Color menuBackColor = this.menuColorTable_0.MenuBackColor;
         if (rectangle.Contains(this.point_0))
         {
             menuBackColor = this.menuColorTable_0.MenuMouseHover;
             if (this.bool_1 && this.rectangle_2.Contains(this.point_0))
             {
                 menuBackColor = this.menuColorTable_0.MenuBackColor;
             }
             if (this.bool_2 && this.rectangle_3.Contains(this.point_0))
             {
                 menuBackColor = this.menuColorTable_0.MenuBackColor;
             }
         }
         paintEventArgs_0.Graphics.FillRectangle(new SolidBrush(menuBackColor), rectangle);
         string text = this.method_6(paintEventArgs_0, navigateMenuNode_1.Node[i].SimpleText, base.Width - int_6);
         SizeF  ef   = paintEventArgs_0.Graphics.MeasureString(text, this.font_1);
         paintEventArgs_0.Graphics.DrawString(text, this.font_1, new SolidBrush(this.menuColorTable_0.MenuFont), new PointF((float)int_6, (((float)int_7) + ((this.int_3 - ef.Height) / 2f)) + 2f));
         if ((navigateMenuNode_1.Node[i].Node != null) && (navigateMenuNode_1.Node[i].Node.Count > 0))
         {
             Image image;
             int   num2 = int_6 + ((int)ef.Width);
             if (navigateMenuNode_1.Node[i].IsExpand)
             {
                 image = Class131.smethod_27();
             }
             else
             {
                 image = Class131.smethod_26();
             }
             paintEventArgs_0.Graphics.DrawImage(image, new Point(num2 + ((this.int_3 - image.Width) / 2), int_7 + ((this.int_3 - image.Width) / 2)));
         }
         int_7 += this.int_3;
         if (navigateMenuNode_1.Node[i].IsExpand)
         {
             this.method_5(paintEventArgs_0, int_6 + this.int_2, ref int_7, navigateMenuNode_1.Node[i], nodeList);
         }
     }
 }
Example #7
0
        private void method_7(PaintEventArgs paintEventArgs_0, int int_8, int int_9, bool bool_2, bool bool_3, NavigateMenuNode navigateMenuNode_1)
        {
            Color     menuBackColor = this.menuColorTable_0.MenuBackColor;
            Rectangle rect          = new Rectangle(int_8, int_9, base.Width, this.int_0);

            if (!this.bool_1)
            {
                if (bool_3)
                {
                    paintEventArgs_0.Graphics.DrawImage(Class131.smethod_30(), rect);
                }
                else if (bool_2)
                {
                    paintEventArgs_0.Graphics.DrawImage(Class131.smethod_29(), rect);
                }
                else
                {
                    paintEventArgs_0.Graphics.FillRectangle(new SolidBrush(menuBackColor), rect);
                }
            }
            else
            {
                paintEventArgs_0.Graphics.FillRectangle(new SolidBrush(menuBackColor), rect);
            }
            if (!bool_2 || this.bool_1)
            {
                paintEventArgs_0.Graphics.FillRectangle(new SolidBrush(this.menuColorTable_0.MenuDarkBackColor), new Rectangle(int_8, int_9, this.int_2, this.int_0));
            }
            this.method_8(int_8, int_9, paintEventArgs_0);
            Bitmap icon = navigateMenuNode_1.Icon;

            icon = this.method_13(icon, 0x18, 0x18);
            paintEventArgs_0.Graphics.DrawImage(icon, (int)(((int_8 + this.int_2) - icon.Width) / 2), (int)(int_9 + ((this.int_0 - icon.Height) / 2)));
            if (base.Width > this.int_2)
            {
                paintEventArgs_0.Graphics.DrawString(navigateMenuNode_1.SimpleText, this.font_0, new SolidBrush(this.menuColorTable_0.MenuFont), new Rectangle((int_8 + this.int_2) + this.int_3, int_9 + 7, (base.Width - this.int_2) - this.int_3, (this.int_0 - 2) - 14));
            }
        }