public unsafe NUnitEditor(ArrayList toolwindows, string punit_name, NPropertyClipboard *clipboard) { this.PUnitChanged = null; this.InitializeComponent(); if (punit_name != null && punit_name.Length > 0) { this.PUnitNameToLoad = punit_name; } else { this.PUnitNameToLoad = null; } Toolbar toolbar = new Toolbar((GToolbarItem *)(& < Module >.?items@?4 ???0NUnitEditor@NWorkshop@@Q$AAM@P$AAVArrayList@Collections@System@@P$AAVString@5@PAUNPropertyClipboard@NControls@@@Z@4PAUGToolbarItem@8@A), 24); this.tbMain = toolbar; toolbar.Dock = DockStyle.Top; this.tbMain.ButtonClick += new Toolbar.__Delegate_ButtonClick(this.tbUnitEditor_ButtonClick); base.Controls.Add(this.tbMain); PropertyTree propertyTree = new PropertyTree(2, NewAssetPicker.ObjectType.UnitEditor, clipboard); this.UnitPropTree = propertyTree; this.panel1.Controls.Add(propertyTree); this.UnitPropTree.Dock = DockStyle.Fill; Point location = new Point(0, 0); this.UnitPropTree.Location = location; this.UnitPropTree.Name = "UnitPropTree"; Size size = new Size(250, 435); this.UnitPropTree.Size = size; this.UnitPropTree.TabIndex = 0; this.UnitPropTree.Text = "UnitPropTree"; this.UnitPropTree.ItemChanged += new PropertyTree.__Delegate_ItemChanged(this.UnitPropTree_ItemChanged); this.ToolWindows = toolwindows; toolwindows.Add(this); GPUnitContainer *ptr = < Module >.@new(12u); GPUnitContainer *ptr2; try { if (ptr != null) { *(int *)ptr = 0; *(int *)(ptr + 4 / sizeof(GPUnitContainer)) = 0; try { *(int *)(ptr + 8 / sizeof(GPUnitContainer)) = 0; } catch { < Module >.___CxxCallUnwindDtor(ldftn(GBaseString <char> .{ dtor }), (void *)ptr);
public unsafe PropertyTree(int descriptionlines, NewAssetPicker.ObjectType objecttype, NPropertyClipboard *clipboard) { this.ItemChanged = null; this.SelectedIndexChanged = null; this.TrackSelected = null; Color backColor = Color.FromKnownColor(KnownColor.Window); this.BackColor = backColor; this.PropTreeDescription = new Label(); Color backColor2 = Color.FromKnownColor(KnownColor.Control); this.PropTreeDescription.BackColor = backColor2; Color foreColor = Color.FromKnownColor(KnownColor.ControlText); this.PropTreeDescription.ForeColor = foreColor; this.PropTreeDescription.BorderStyle = BorderStyle.Fixed3D; this.PropTreeDescription.Width = base.Width; this.PropTreeDescription.Height = (this.Font.Height + 2) * descriptionlines; this.PropTreeDescription.Dock = DockStyle.Bottom; this.PropTreeCore = new PropertyTreeCore(base.Width, base.Height, base.Height, 2, this.PropTreeDescription, objecttype, clipboard); Point location = new Point(0, 20); this.PropTreeCore.Location = location; ArrayList arrayList = new ArrayList(); arrayList.Add(new ColumnItem(new string((sbyte *)(& < Module >.?? _C@_07CKMABNOK@Setting?$AA@)), 90)); arrayList.Add(new ColumnItem(new string((sbyte *)(& < Module >.?? _C@_05LPIJGKJ@Value?$AA@)), 70)); IEnumerator enumerator = arrayList.GetEnumerator(); float proportion = 1f / (float)arrayList.Count; if (enumerator.MoveNext()) { do { ColumnItem columnItem = enumerator.Current as ColumnItem; ColumnData columnData = new ColumnData(columnItem.Name, (int)((double)columnItem.MinWidth)); columnData.Proportion = proportion; this.ColumnDatas.Add(columnData); }while (enumerator.MoveNext()); } this.PropTreeHeader = new HeaderControl(this.PropTreeCore); this.PropTreeHeader.Width = this.PropTreeCore.GetViewControlWidth(); this.PropTreeHeader.Height = 20; this.PropTreeCorner = new Control(); Point location2 = new Point(this.PropTreeHeader.Width, 0); this.PropTreeCorner.Location = location2; this.PropTreeCorner.Width = base.Width - this.PropTreeHeader.Width; this.PropTreeCorner.Height = 20; Color backColor3 = Color.FromKnownColor(KnownColor.Control); this.PropTreeCorner.BackColor = backColor3; int num = base.Height - this.PropTreeHeader.Height; this.PropTreeCore.Height = num - this.PropTreeDescription.Height; this.PropTreeHeader.RecalcColumnDatas(); this.PropTreeHeader.Refresh(); this.PropTreeCore.Refresh(); this.OwnControls.Add(this.PropTreeHeader); this.OwnControls.Add(this.PropTreeCorner); this.OwnControls.Add(this.PropTreeCore); this.OwnControls.Add(this.PropTreeDescription); this.PropTreeCore.ItemChanged += new PropertyTreeCore.__Delegate_ItemChanged(this.PropTreeCore_ItemChanged); this.PropTreeCore.SelectedIndexChanged += new PropertyTreeCore.__Delegate_SelectedIndexChanged(this.PropTreeCore_SelectedIndexChanged); this.PropTreeCore.TrackSelected += new PropertyTreeCore.TrackSelectedHandler(this.PropTreeCore_TrackSelected); }