private void InitializeComponent() { this.Title = new OutlookItem(); this.Body = new OutlookBounds(); base.SuspendLayout(); this.Title.BackColor = Color.Transparent; this.Title.Dock = DockStyle.Top; this.Title.Font = new Font("微软雅黑", 18f, FontStyle.Regular, GraphicsUnit.Point, 0x86); this.Title.IconDirection = MenuDirection.down; this.Title.IconIdent = 0; this.Title.Location = new Point(0, 0); this.Title.MenuDirection = MenuDirection.down; this.Title.Name = "Title"; this.Title.ShowIcon = false; this.Title.ShowImage = false; this.Title.Size = new Size(150, 0x23); this.Title.TabIndex = 0; this.Title.Text = "Title"; this.Body.BackColor = Color.Transparent; this.Body.Dock = DockStyle.Fill; this.Body.Font = new Font("微软雅黑", 10f); this.Body.Location = new Point(0, 0x23); this.Body.Name = "Body"; this.Body.Size = new Size(150, 0x73); this.Body.TabIndex = 1; this.Body.Text = "Body"; base.AutoScaleDimensions = new SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.Body); base.Controls.Add(this.Title); base.Name = "OutlookBarNode"; base.ResumeLayout(false); }
public void NodeAdd(string string_0, string string_1, string string_2, TreeNodeCommand treeNodeCommand_0) { OutlookItem item = new OutlookItem(); if ((string_0 != null) && !(string_0 == "")) { item.Name = string_0; } else { item.Name = "NewNodeName" + ((this.outlookItemCollection_0.Count + 1)).ToString(); } if ((string_1 != null) && !(string_1 == "")) { item.Text = string_1; } else { item.Text = item.Name; } if ((string_2 != null) && (string_2 != "")) { item.MenuID = string_2; } item.NodeCommand = treeNodeCommand_0; this.NodeAdd(item); }
public int Add(OutlookItem outlookItem_0) { if (this.Contains(outlookItem_0)) { return(-1); } int num = this.arrayList_0.Add(outlookItem_0); this.method_0(); return(num); }
public void NodeAdd(OutlookItem outlookItem_0) { this.outlookItemCollection_0.Add(outlookItem_0); this.int_2 = this.int_0 + this.method_2(); outlookItem_0.Height = this.int_1; outlookItem_0.Font = this.font_1; outlookItem_0.IconIdent = this.int_3; outlookItem_0.ShowIcon = false; outlookItem_0.ShowImage = false; outlookItem_0.Dock = DockStyle.Top; outlookItem_0.ForeColor = this.color_0; this.Body.Controls.Add(outlookItem_0); this.ResetControlHeight(); }
public void Remove(OutlookItem outlookItem_0) { this.arrayList_0.Remove(outlookItem_0); this.method_0(); }
public void Insert(int int_0, OutlookItem outlookItem_0) { this.arrayList_0.Insert(int_0, outlookItem_0); this.method_0(); }
public int IndexOf(OutlookItem outlookItem_0) { return(this.arrayList_0.IndexOf(outlookItem_0)); }
public bool Contains(OutlookItem outlookItem_0) { return(this.arrayList_0.Contains(outlookItem_0)); }