public NavigatePage() { this.int_0 = 0x20; this.InitializeComponent(); this.int_1 = base.Width; this.navigateMenuNode_0 = new NavigateMenuNode(); this.navigateMenu1.Event_0 += new Delegate34(this.method_2); this.navigateMenuTree1.Event_0 += new Delegate37(this.method_1); this.navigateMenuTree1.Event_1 += new Delegate34(this.method_0); }
public int Add(NavigateMenuNode navigateMenuNode_0) { if (this.Contains(navigateMenuNode_0)) { return(-1); } int num = this.arrayList_0.Add(navigateMenuNode_0); this.method_0(); return(num); }
public void Load(string string_0, NavigateMenuNode navigateMenuNode_0) { if (File.Exists(string_0)) { this.navigateToolScripBody1.Items.Clear(); try { XmlDocument document = new XmlDocument(); document.Load(string_0); if ((document == null) || !document.HasChildNodes) { throw new Exception("XML文件格式不正确!"); } this.list_0.Clear(); this.method_5(navigateMenuNode_0.Node); XmlNodeList list = document.SelectNodes("root/ToolBarItemCollection/ToolBarItem"); if ((list == null) || (list.Count <= 0)) { throw new Exception("XML文件格式不正确!"); } foreach (XmlNode node in list) { XmlAttributeCollection attributes = node.Attributes; string str = attributes["text"].Value; string str2 = attributes["image"].Value; string item = attributes["menuID"].Value; string str4 = attributes["tooltip"].Value; Bitmap bitmap = ResourceUtil.GetBitmap(str2); if (bitmap == null) { bitmap = Class131.smethod_38(); } if (this.list_0.Contains(item)) { this.navigateToolScripBody1.Items.Add(new NavigateMenuNode(str, item, bitmap, str4)); } } return; } catch (Exception exception) { throw exception; } } throw new Exception("文件不存在!"); }
public NavigateMenuNodeRect(NavigateMenuNode navigateMenuNode_1, Rectangle rectangle_1) { this.navigateMenuNode_0 = navigateMenuNode_1; this.rectangle_0 = rectangle_1; }
public void Remove(NavigateMenuNode navigateMenuNode_0) { this.arrayList_0.Remove(navigateMenuNode_0); this.method_0(); }
public void Insert(int int_0, NavigateMenuNode navigateMenuNode_0) { this.arrayList_0.Insert(int_0, navigateMenuNode_0); this.method_0(); }
public int IndexOf(NavigateMenuNode navigateMenuNode_0) { return(this.arrayList_0.IndexOf(navigateMenuNode_0)); }
public bool Contains(NavigateMenuNode navigateMenuNode_0) { return(this.arrayList_0.Contains(navigateMenuNode_0)); }