Esempio n. 1
0
        public int Add(ToolBarItem toolBarItem_0)
        {
            if (this.Contains(toolBarItem_0))
            {
                return(-1);
            }
            int num = this.arrayList_0.Add(toolBarItem_0);

            this.method_0();
            return(num);
        }
Esempio n. 2
0
        public void NodeAdd(string string_0, string string_1, Bitmap bitmap_0)
        {
            ToolBarItem item = new ToolBarItem {
                Text   = string_0,
                Bitmap = bitmap_0
            };

            item.Name   = "ToolBarItem" + ((this.sortedDictionary_0.Count + 1)).ToString();
            item.MenuID = string_1;
            int x = this.int_3;

            if (this.sortedDictionary_0.Count > 0)
            {
                x = (this.sortedDictionary_0[this.sortedDictionary_0.Count - 1].Location.X + this.int_2) + this.int_3;
            }
            int y = (base.Height - item.Height) / 2;

            item.Location = new Point(x, y);
            this.sortedDictionary_0.Add(this.sortedDictionary_0.Count, item);
            base.Controls.Add(item);
        }
Esempio n. 3
0
 public void Remove(ToolBarItem toolBarItem_0)
 {
     this.arrayList_0.Remove(toolBarItem_0);
     this.method_0();
 }
Esempio n. 4
0
 public void Insert(int int_0, ToolBarItem toolBarItem_0)
 {
     this.arrayList_0.Insert(int_0, toolBarItem_0);
     this.method_0();
 }
Esempio n. 5
0
 public int IndexOf(ToolBarItem toolBarItem_0)
 {
     return(this.arrayList_0.IndexOf(toolBarItem_0));
 }
Esempio n. 6
0
 public bool Contains(ToolBarItem toolBarItem_0)
 {
     return(this.arrayList_0.Contains(toolBarItem_0));
 }