Example #1
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProjectViewer));
            this.projViewer           = new TreeViewAdv();
            this.icon                 = new Aga.Controls.Tree.NodeControls.NodeStateIcon();
            this.name                 = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            this.folderContextMenu    = new System.Windows.Forms.ContextMenu();
            this.addContextItem       = new System.Windows.Forms.MenuItem();
            this.newFileContextItem   = new System.Windows.Forms.MenuItem();
            this.existingFileMenuItem = new System.Windows.Forms.MenuItem();
            this.newFolderContextItem = new System.Windows.Forms.MenuItem();
            this.renFMenuItem         = new System.Windows.Forms.MenuItem();
            this.delFMenuItem         = new System.Windows.Forms.MenuItem();
            this.openExplorerMenuItem = new System.Windows.Forms.MenuItem();
            this.menuItem6            = new System.Windows.Forms.MenuItem();
            this.cutFMenuItem         = new System.Windows.Forms.MenuItem();
            this.copyFMenuItem        = new System.Windows.Forms.MenuItem();
            this.pasteFMenuItem       = new System.Windows.Forms.MenuItem();
            this.fileContextMenu      = new System.Windows.Forms.ContextMenu();
            this.openMenuItem         = new System.Windows.Forms.MenuItem();
            this.openWithMenuItem     = new System.Windows.Forms.MenuItem();
            this.renMenuItem          = new System.Windows.Forms.MenuItem();
            this.delMenuItem          = new System.Windows.Forms.MenuItem();
            this.menuItem1            = new System.Windows.Forms.MenuItem();
            this.excFromProj          = new System.Windows.Forms.MenuItem();
            this.menuItem5            = new System.Windows.Forms.MenuItem();
            this.cutMenuItem          = new System.Windows.Forms.MenuItem();
            this.copyMenuItem         = new System.Windows.Forms.MenuItem();
            this.pasteMenuItem        = new System.Windows.Forms.MenuItem();
            this.SuspendLayout();

            // projViewer

            this.projViewer.AllowDrop     = true;
            this.projViewer.Dock          = System.Windows.Forms.DockStyle.Fill;
            this.projViewer.Location      = new System.Drawing.Point(0, 2);
            this.projViewer.Name          = "projViewer";
            this.projViewer.Size          = new System.Drawing.Size(234, 393);
            this.projViewer.TabIndex      = 0;
            this.projViewer.SelectionMode = Aga.Controls.Tree.TreeSelectionMode.MultiSameParent;
            this.projViewer.BorderStyle   = BorderStyle.FixedSingle;
            this.projViewer.NodeControls.Add(this.icon);
            this.projViewer.NodeControls.Add(this.name);
            this.projViewer.ItemDrag       += new System.Windows.Forms.ItemDragEventHandler(this.projViewer_ItemDrag);
            this.projViewer.NodeMouseClick += new System.EventHandler <TreeNodeAdvMouseEventArgs>(this.projViewer_NodeMouseClick);
            this.projViewer.DragDrop       += new System.Windows.Forms.DragEventHandler(this.projViewer_DragDrop);
            this.projViewer.DragOver       += new System.Windows.Forms.DragEventHandler(this.projViewer_DragOver);
            this.projViewer.DoubleClick    += new System.EventHandler(this.projectViewer_DoubleClick);
            this.projViewer.KeyDown        += new System.Windows.Forms.KeyEventHandler(projectViewer_KeyDown);

            // name

            this.name.DataPropertyName         = "Name";
            this.name.EditEnabled              = true;
            this.name.IncrementalSearchEnabled = true;
            this.name.LeftMargin     = 3;
            this.name.ParentColumn   = null;
            this.name.EditorShowing += NodeEditorShowing;
            this.name.LabelChanged  += projViewer_AfterLabelEdit;

            // icon

            this.icon.DataPropertyName = "Icon";
            this.icon.LeftMargin       = 1;
            this.icon.ParentColumn     = null;

            // folderContextMenu

            this.folderContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[]
            {
                this.addContextItem,
                this.renFMenuItem,
                this.delFMenuItem,
                this.openExplorerMenuItem,
                this.menuItem6,
                this.cutFMenuItem,
                this.copyFMenuItem,
                this.pasteFMenuItem
            });

            // addContextItem

            this.addContextItem.Index = 0;
            this.addContextItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[]
            {
                this.newFileContextItem,
                this.existingFileMenuItem,
                this.newFolderContextItem
            });
            this.addContextItem.Text = "Add";

            // newFileContextItem

            this.newFileContextItem.Index  = 0;
            this.newFileContextItem.Text   = "New File";
            this.newFileContextItem.Click += new System.EventHandler(newFileContextItem_Click);

            // existingFileMenuItem

            this.existingFileMenuItem.Index  = 1;
            this.existingFileMenuItem.Text   = "Existing File";
            this.existingFileMenuItem.Click += new System.EventHandler(this.existingFileMenuItem_Click);

            // newFolderContextItem

            this.newFolderContextItem.Index  = 2;
            this.newFolderContextItem.Text   = "New Folder";
            this.newFolderContextItem.Click += new System.EventHandler(this.newFolderContextItem_Click);

            // renFMenuItem

            this.renFMenuItem.Index  = 1;
            this.renFMenuItem.Text   = "Rename";
            this.renFMenuItem.Click += new System.EventHandler(this.renFMenuItem_Click);

            // delFMenuItem

            this.delFMenuItem.Index  = 2;
            this.delFMenuItem.Text   = "Delete";
            this.delFMenuItem.Click += new System.EventHandler(this.delFMenuItem_Click);

            // openExplorerMenuItem

            this.openExplorerMenuItem.Index  = 3;
            this.openExplorerMenuItem.Text   = "Open in Explorer";
            this.openExplorerMenuItem.Click += new System.EventHandler(this.openExplorerMenuItem_Click);

            // menuItem6

            this.menuItem6.Index = 4;
            this.menuItem6.Text  = "-";

            // cutFMenuItem

            this.cutFMenuItem.Index = 5;
            this.cutFMenuItem.Text  = "Cut";

            // copyFMenuItem

            this.copyFMenuItem.Index = 6;
            this.copyFMenuItem.Text  = "Copy";

            // pasteFMenuItem

            this.pasteFMenuItem.Index = 7;
            this.pasteFMenuItem.Text  = "Paste";

            // fileContextMenu

            this.fileContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[]
            {
                this.openMenuItem,
                this.openWithMenuItem,
                this.renMenuItem,
                this.delMenuItem,
                this.menuItem1,
                this.excFromProj,
                this.menuItem5,
                this.cutMenuItem,
                this.copyMenuItem,
                this.pasteMenuItem
            });

            // openMenuItem

            this.openMenuItem.Index  = 0;
            this.openMenuItem.Text   = "Open";
            this.openMenuItem.Click += new System.EventHandler(this.openMenuItem_Click);

            // openWithMenuItem

            this.openWithMenuItem.Index  = 1;
            this.openWithMenuItem.Text   = "Open With...";
            this.openWithMenuItem.Click += new System.EventHandler(this.openWithMenuItem_Click);

            // renMenuItem

            this.renMenuItem.Index  = 2;
            this.renMenuItem.Text   = "Rename";
            this.renMenuItem.Click += new System.EventHandler(this.renMenuItem_Click);

            // delMenuItem

            this.delMenuItem.Index  = 3;
            this.delMenuItem.Text   = "Delete";
            this.delMenuItem.Click += new System.EventHandler(this.delMenuItem_Click);

            // menuItem1

            this.menuItem1.Index = 4;
            this.menuItem1.Text  = "-";

            // excFromProj

            this.excFromProj.Index  = 5;
            this.excFromProj.Text   = "Exclude From Project";
            this.excFromProj.Click += new System.EventHandler(this.excFromProj_Click);

            // menuItem5

            this.menuItem5.Index = 6;
            this.menuItem5.Text  = "-";

            // cutMenuItem

            this.cutMenuItem.Index  = 7;
            this.cutMenuItem.Text   = "Cut";
            this.cutMenuItem.Click += new System.EventHandler(this.cutMenuItem_Click);

            // copyMenuItem

            this.copyMenuItem.Index  = 8;
            this.copyMenuItem.Text   = "Copy";
            this.copyMenuItem.Click += new System.EventHandler(this.copyMenuItem_Click);

            // pasteMenuItem

            this.pasteMenuItem.Index  = 9;
            this.pasteMenuItem.Text   = "Paste";
            this.pasteMenuItem.Click += new System.EventHandler(this.pasteMenuItem_Click);

            // ProjectViewer

            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.ClientSize          = new System.Drawing.Size(234, 397);
            this.Controls.Add(this.projViewer);
            this.Icon     = (System.Drawing.Icon)resources.GetObject("$this.Icon");
            this.Name     = "ProjectViewer";
            this.Padding  = new System.Windows.Forms.Padding(0, 2, 0, 2);
            this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockRightAutoHide;
            this.TabText  = "Project Viewer";
            this.Text     = "Project Viewer";
            this.ResumeLayout(false);
        }
        public ShaderFragmentArchiveControl(
            NodeEditorCore.ShaderFragmentArchiveModel archiveModel)
        {
            DoubleBuffered = false;

            Margin = new System.Windows.Forms.Padding(0);

            var fragmentTree    = new Aga.Controls.Tree.TreeViewAdv();
            var treeColumn1     = new Aga.Controls.Tree.TreeColumn();
            var treeColumn3     = new Aga.Controls.Tree.TreeColumn();
            var treeColumn4     = new Aga.Controls.Tree.TreeColumn();
            var treeColumn5     = new Aga.Controls.Tree.TreeColumn();
            var icon            = new Aga.Controls.Tree.NodeControls.NodeStateIcon();
            var visibleName     = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            var returnType      = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            var parameters      = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            var exceptionString = new Aga.Controls.Tree.NodeControls.NodeTextBox();

            // treeColumn1
            treeColumn1.Header      = "Name";
            treeColumn1.SortOrder   = System.Windows.Forms.SortOrder.None;
            treeColumn1.TooltipText = null;
            treeColumn1.Width       = 300;
            // treeColumn3
            treeColumn3.Header      = "ReturnType";
            treeColumn3.SortOrder   = System.Windows.Forms.SortOrder.None;
            treeColumn3.TooltipText = null;
            treeColumn3.Width       = 75;
            // treeColumn4
            treeColumn4.Header      = "Parameters";
            treeColumn4.SortOrder   = System.Windows.Forms.SortOrder.None;
            treeColumn4.TooltipText = null;
            treeColumn4.Width       = 400;
            // treeColumn5
            treeColumn5.Header      = "Exception";
            treeColumn5.SortOrder   = System.Windows.Forms.SortOrder.None;
            treeColumn5.TooltipText = null;
            treeColumn5.Width       = 200;
            // _icon
            icon.DataPropertyName = "Icon";
            icon.LeftMargin       = 1;
            icon.ParentColumn     = treeColumn1;
            icon.ScaleMode        = Aga.Controls.Tree.ImageScaleMode.Clip;
            // _visibleName
            visibleName.DataPropertyName         = "Name";
            visibleName.IncrementalSearchEnabled = true;
            visibleName.LeftMargin   = 8;
            visibleName.ParentColumn = treeColumn1;
            visibleName.Trimming     = System.Drawing.StringTrimming.EllipsisCharacter;
            // visibleName.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            visibleName.UseCompatibleTextRendering = true;
            // _returnType
            returnType.DataPropertyName         = "ReturnType";
            returnType.IncrementalSearchEnabled = true;
            returnType.LeftMargin   = 3;
            returnType.ParentColumn = treeColumn3;
            returnType.UseCompatibleTextRendering = true;
            // _parameters
            parameters.DataPropertyName         = "Parameters";
            parameters.IncrementalSearchEnabled = true;
            parameters.LeftMargin   = 3;
            parameters.ParentColumn = treeColumn4;
            parameters.UseCompatibleTextRendering = true;
            // _exceptionString
            exceptionString.DataPropertyName         = "ExceptionString";
            exceptionString.IncrementalSearchEnabled = true;
            exceptionString.LeftMargin   = 3;
            exceptionString.ParentColumn = treeColumn5;
            exceptionString.UseCompatibleTextRendering = true;
            // fragment tree
            fragmentTree.BackColor   = System.Drawing.Color.Silver;
            fragmentTree.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            fragmentTree.ColumnFont  = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            fragmentTree.Columns.Add(treeColumn1);
            fragmentTree.Columns.Add(treeColumn3);
            fragmentTree.Columns.Add(treeColumn4);
            fragmentTree.Columns.Add(treeColumn5);
            fragmentTree.DefaultToolTipProvider = null;
            fragmentTree.Dock = System.Windows.Forms.DockStyle.Fill;
            fragmentTree.DragDropMarkColor = System.Drawing.Color.Black;
            fragmentTree.Font = System.Drawing.SystemFonts.MenuFont;
            // new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            fragmentTree.ForeColor     = System.Drawing.Color.Gray;
            fragmentTree.FullRowSelect = true;
            fragmentTree.GridLineStyle = ((Aga.Controls.Tree.GridLineStyle)((Aga.Controls.Tree.GridLineStyle.Horizontal | Aga.Controls.Tree.GridLineStyle.Vertical)));
            fragmentTree.LineColor     = System.Drawing.Color.White;
            fragmentTree.LoadOnDemand  = true;
            fragmentTree.Location      = new System.Drawing.Point(0, 0);
            fragmentTree.Model         = null;
            fragmentTree.Name          = "_fragmentTree";
            fragmentTree.NodeControls.Add(icon);
            fragmentTree.NodeControls.Add(visibleName);
            fragmentTree.NodeControls.Add(returnType);
            fragmentTree.NodeControls.Add(parameters);
            fragmentTree.NodeControls.Add(exceptionString);
            fragmentTree.RowHeight    = 32;
            fragmentTree.SelectedNode = null;
            fragmentTree.Size         = new System.Drawing.Size(288, 311);
            fragmentTree.TabIndex     = 3;
            fragmentTree.UseColumns   = true;
            // fragmentTree.MouseEnter += new System.EventHandler(this.OnFragmentsMouseEnter);
            // fragmentTree.MouseLeave += new System.EventHandler(this.OnFragmentsMouseLeave);

            fragmentTree.Padding = new System.Windows.Forms.Padding(0);
            fragmentTree.Dock    = System.Windows.Forms.DockStyle.Fill;

            fragmentTree.Model     = new Aga.Controls.Tree.SortedTreeModel(archiveModel);
            fragmentTree.ItemDrag += new ItemDragEventHandler(OnFragmentTreeItemDrag);

            Controls.Add(fragmentTree);
        }
Example #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DicomDumpForm));
     this.treeDump = new Aga.Controls.Tree.TreeViewAdv();
     this.ElementColumn = new Aga.Controls.Tree.TreeColumn();
     this.VrColumn = new Aga.Controls.Tree.TreeColumn();
     this.LengthColumn = new Aga.Controls.Tree.TreeColumn();
     this.ValueColumn = new Aga.Controls.Tree.TreeColumn();
     this.nvIcon = new Aga.Controls.Tree.NodeControls.NodeIcon();
     this.ncTag = new Aga.Controls.Tree.NodeControls.NodeTextBox();
     this.ncName = new Aga.Controls.Tree.NodeControls.NodeTextBox();
     this.nvVR = new Aga.Controls.Tree.NodeControls.NodeTextBox();
     this.nvLength = new Aga.Controls.Tree.NodeControls.NodeTextBox();
     this.nvValue = new Aga.Controls.Tree.NodeControls.NodeTextBox();
     this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer();
     this.toolStrip1 = new System.Windows.Forms.ToolStrip();
     this.tsbOpenFile = new System.Windows.Forms.ToolStripButton();
     this.tsbClose = new System.Windows.Forms.ToolStripButton();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.tsbDictionary = new System.Windows.Forms.ToolStripButton();
     this.tsbViewImage = new System.Windows.Forms.ToolStripButton();
     this.tsbAdvanced = new System.Windows.Forms.ToolStripDropDownButton();
     this.tsbExtractPixels = new System.Windows.Forms.ToolStripMenuItem();
     this.tsbSaveTS = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
     this.tsbPrev = new System.Windows.Forms.ToolStripButton();
     this.tsbNext = new System.Windows.Forms.ToolStripButton();
     this.lblCount = new System.Windows.Forms.ToolStripLabel();
     this.tsbPixelDataMD5 = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripContainer1.ContentPanel.SuspendLayout();
     this.toolStripContainer1.TopToolStripPanel.SuspendLayout();
     this.toolStripContainer1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // treeDump
     //
     this.treeDump.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.treeDump.BackColor = System.Drawing.SystemColors.Window;
     this.treeDump.Columns.Add(this.ElementColumn);
     this.treeDump.Columns.Add(this.VrColumn);
     this.treeDump.Columns.Add(this.LengthColumn);
     this.treeDump.Columns.Add(this.ValueColumn);
     this.treeDump.Cursor = System.Windows.Forms.Cursors.Default;
     this.treeDump.DefaultToolTipProvider = null;
     this.treeDump.DragDropMarkColor = System.Drawing.Color.Black;
     this.treeDump.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.treeDump.FullRowSelect = true;
     this.treeDump.LineColor = System.Drawing.SystemColors.ControlDark;
     this.treeDump.Location = new System.Drawing.Point(12, 12);
     this.treeDump.Model = null;
     this.treeDump.Name = "treeDump";
     this.treeDump.NodeControls.Add(this.nvIcon);
     this.treeDump.NodeControls.Add(this.ncTag);
     this.treeDump.NodeControls.Add(this.ncName);
     this.treeDump.NodeControls.Add(this.nvVR);
     this.treeDump.NodeControls.Add(this.nvLength);
     this.treeDump.NodeControls.Add(this.nvValue);
     this.treeDump.RowHeight = 18;
     this.treeDump.SelectedNode = null;
     this.treeDump.Size = new System.Drawing.Size(711, 367);
     this.treeDump.TabIndex = 0;
     this.treeDump.UseColumns = true;
     this.treeDump.NodeMouseDoubleClick += new System.EventHandler<Aga.Controls.Tree.TreeNodeAdvMouseEventArgs>(this.treeDump_NodeMouseDoubleClick);
     this.treeDump.SizeChanged += new System.EventHandler(this.treeDump_SizeChanged);
     //
     // ElementColumn
     //
     this.ElementColumn.Header = "Element";
     this.ElementColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     this.ElementColumn.TooltipText = null;
     this.ElementColumn.Width = 300;
     //
     // VrColumn
     //
     this.VrColumn.Header = "VR";
     this.VrColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     this.VrColumn.TooltipText = null;
     //
     // LengthColumn
     //
     this.LengthColumn.Header = "Length";
     this.LengthColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     this.LengthColumn.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.LengthColumn.TooltipText = null;
     this.LengthColumn.Width = 80;
     //
     // ValueColumn
     //
     this.ValueColumn.Header = "Value";
     this.ValueColumn.SortOrder = System.Windows.Forms.SortOrder.None;
     this.ValueColumn.TooltipText = null;
     this.ValueColumn.Width = 250;
     //
     // nvIcon
     //
     this.nvIcon.DataPropertyName = "Icon";
     this.nvIcon.LeftMargin = 1;
     this.nvIcon.ParentColumn = this.ElementColumn;
     this.nvIcon.ScaleMode = Aga.Controls.Tree.ImageScaleMode.Clip;
     //
     // ncTag
     //
     this.ncTag.DataPropertyName = "ElementTag";
     this.ncTag.IncrementalSearchEnabled = true;
     this.ncTag.LeftMargin = 3;
     this.ncTag.ParentColumn = this.ElementColumn;
     //
     // ncName
     //
     this.ncName.DataPropertyName = "Name";
     this.ncName.IncrementalSearchEnabled = true;
     this.ncName.LeftMargin = 3;
     this.ncName.ParentColumn = this.ElementColumn;
     this.ncName.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
     //
     // nvVR
     //
     this.nvVR.DataPropertyName = "VR";
     this.nvVR.IncrementalSearchEnabled = true;
     this.nvVR.LeftMargin = 3;
     this.nvVR.ParentColumn = this.VrColumn;
     //
     // nvLength
     //
     this.nvLength.DataPropertyName = "Length";
     this.nvLength.IncrementalSearchEnabled = true;
     this.nvLength.LeftMargin = 3;
     this.nvLength.ParentColumn = this.LengthColumn;
     this.nvLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     //
     // nvValue
     //
     this.nvValue.DataPropertyName = "Value";
     this.nvValue.IncrementalSearchEnabled = true;
     this.nvValue.LeftMargin = 3;
     this.nvValue.ParentColumn = this.ValueColumn;
     this.nvValue.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
     //
     // toolStripContainer1
     //
     //
     // toolStripContainer1.ContentPanel
     //
     this.toolStripContainer1.ContentPanel.Controls.Add(this.treeDump);
     this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(735, 391);
     this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.toolStripContainer1.Location = new System.Drawing.Point(0, 0);
     this.toolStripContainer1.Name = "toolStripContainer1";
     this.toolStripContainer1.Size = new System.Drawing.Size(735, 416);
     this.toolStripContainer1.TabIndex = 1;
     this.toolStripContainer1.Text = "toolStripContainer1";
     //
     // toolStripContainer1.TopToolStripPanel
     //
     this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.toolStrip1);
     //
     // toolStrip1
     //
     this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.tsbOpenFile,
     this.tsbClose,
     this.toolStripSeparator1,
     this.tsbDictionary,
     this.tsbViewImage,
     this.tsbAdvanced,
     this.toolStripSeparator2,
     this.tsbPrev,
     this.tsbNext,
     this.lblCount});
     this.toolStrip1.Location = new System.Drawing.Point(3, 0);
     this.toolStrip1.Name = "toolStrip1";
     this.toolStrip1.Size = new System.Drawing.Size(571, 25);
     this.toolStrip1.TabIndex = 0;
     //
     // tsbOpenFile
     //
     this.tsbOpenFile.Image = ((System.Drawing.Image)(resources.GetObject("tsbOpenFile.Image")));
     this.tsbOpenFile.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbOpenFile.Name = "tsbOpenFile";
     this.tsbOpenFile.Size = new System.Drawing.Size(77, 22);
     this.tsbOpenFile.Text = "&Open File";
     this.tsbOpenFile.Click += new System.EventHandler(this.tsbOpenFile_Click);
     //
     // tsbClose
     //
     this.tsbClose.Image = ((System.Drawing.Image)(resources.GetObject("tsbClose.Image")));
     this.tsbClose.ImageTransparentColor = System.Drawing.Color.Black;
     this.tsbClose.Name = "tsbClose";
     this.tsbClose.Size = new System.Drawing.Size(56, 22);
     this.tsbClose.Text = "Close";
     this.tsbClose.Click += new System.EventHandler(this.OnClickClose);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // tsbDictionary
     //
     this.tsbDictionary.Image = ((System.Drawing.Image)(resources.GetObject("tsbDictionary.Image")));
     this.tsbDictionary.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbDictionary.Name = "tsbDictionary";
     this.tsbDictionary.Size = new System.Drawing.Size(81, 22);
     this.tsbDictionary.Text = "Dictionary";
     this.tsbDictionary.Click += new System.EventHandler(this.tsbDictionary_Click);
     //
     // tsbViewImage
     //
     this.tsbViewImage.Enabled = false;
     this.tsbViewImage.Image = ((System.Drawing.Image)(resources.GetObject("tsbViewImage.Image")));
     this.tsbViewImage.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbViewImage.Name = "tsbViewImage";
     this.tsbViewImage.Size = new System.Drawing.Size(88, 22);
     this.tsbViewImage.Text = "View Image";
     this.tsbViewImage.Click += new System.EventHandler(this.OnViewImage);
     //
     // tsbAdvanced
     //
     this.tsbAdvanced.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.tsbExtractPixels,
     this.tsbPixelDataMD5,
     this.tsbSaveTS});
     this.tsbAdvanced.Image = ((System.Drawing.Image)(resources.GetObject("tsbAdvanced.Image")));
     this.tsbAdvanced.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbAdvanced.Name = "tsbAdvanced";
     this.tsbAdvanced.Size = new System.Drawing.Size(89, 22);
     this.tsbAdvanced.Text = "Advanced";
     //
     // tsbExtractPixels
     //
     this.tsbExtractPixels.Enabled = false;
     this.tsbExtractPixels.Name = "tsbExtractPixels";
     this.tsbExtractPixels.Size = new System.Drawing.Size(198, 22);
     this.tsbExtractPixels.Text = "Extract Pixel Data";
     this.tsbExtractPixels.Click += new System.EventHandler(this.OnClickExtractPixels);
     //
     // tsbSaveTS
     //
     this.tsbSaveTS.Enabled = false;
     this.tsbSaveTS.Name = "tsbSaveTS";
     this.tsbSaveTS.Size = new System.Drawing.Size(198, 22);
     this.tsbSaveTS.Text = "Save /w Transfer Syntax";
     this.tsbSaveTS.Click += new System.EventHandler(this.OnClickSaveWithTransferSyntax);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
     //
     // tsbPrev
     //
     this.tsbPrev.Enabled = false;
     this.tsbPrev.Image = ((System.Drawing.Image)(resources.GetObject("tsbPrev.Image")));
     this.tsbPrev.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbPrev.Name = "tsbPrev";
     this.tsbPrev.Size = new System.Drawing.Size(50, 22);
     this.tsbPrev.Text = "Prev";
     this.tsbPrev.Click += new System.EventHandler(this.OnClickPrev);
     //
     // tsbNext
     //
     this.tsbNext.Enabled = false;
     this.tsbNext.Image = ((System.Drawing.Image)(resources.GetObject("tsbNext.Image")));
     this.tsbNext.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbNext.Name = "tsbNext";
     this.tsbNext.Size = new System.Drawing.Size(51, 22);
     this.tsbNext.Text = "Next";
     this.tsbNext.TextImageRelation = System.Windows.Forms.TextImageRelation.TextBeforeImage;
     this.tsbNext.Click += new System.EventHandler(this.OnClickNext);
     //
     // lblCount
     //
     this.lblCount.Name = "lblCount";
     this.lblCount.Size = new System.Drawing.Size(24, 22);
     this.lblCount.Text = "0/0";
     //
     // tsbPixelDataMD5
     //
     this.tsbPixelDataMD5.Enabled = false;
     this.tsbPixelDataMD5.Name = "tsbPixelDataMD5";
     this.tsbPixelDataMD5.Size = new System.Drawing.Size(198, 22);
     this.tsbPixelDataMD5.Text = "Pixel Data MD5";
     this.tsbPixelDataMD5.Click += new System.EventHandler(this.OnClickPixelDataMD5);
     //
     // DicomDumpForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(735, 416);
     this.Controls.Add(this.toolStripContainer1);
     this.Name = "DicomDumpForm";
     this.Text = "DICOM Dump";
     this.Shown += new System.EventHandler(this.OnFormShown);
     this.Click += new System.EventHandler(this.OnClickSaveWithTransferSyntax);
     this.toolStripContainer1.ContentPanel.ResumeLayout(false);
     this.toolStripContainer1.TopToolStripPanel.ResumeLayout(false);
     this.toolStripContainer1.TopToolStripPanel.PerformLayout();
     this.toolStripContainer1.ResumeLayout(false);
     this.toolStripContainer1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.ResumeLayout(false);
 }
Example #4
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.Windows.Forms.Panel panel1;
            System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
            Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBox2;
            Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBox3;
            Aga.Controls.Tree.NodeControls.NodeTextBox nodeTextBox1;
            Aga.Controls.Tree.NodeControls.NodeDecimalTextBox nodeDecimalTextBox1;
            Aga.Controls.Tree.NodeControls.NodeDecimalTextBox nodeDecimalTextBox2;
            Aga.Controls.Tree.NodeControls.NodeDecimalTextBox nodeDecimalTextBox5;
            Aga.Controls.Tree.NodeControls.NodeDecimalTextBox nodeDecimalTextBox6;
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.findButton = new System.Windows.Forms.Button();
            this.button1 = new System.Windows.Forms.Button();
            this.button2 = new System.Windows.Forms.Button();
            this.treeColumn4 = new Aga.Controls.Tree.TreeColumn();
            this.treeColumn5 = new Aga.Controls.Tree.TreeColumn();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
            this.treeViewAdv1 = new Aga.Controls.Tree.TreeViewAdv();
            this.treeColumn1 = new Aga.Controls.Tree.TreeColumn();
            this.treeColumn2 = new Aga.Controls.Tree.TreeColumn();
            this.treeColumn3 = new Aga.Controls.Tree.TreeColumn();
            this.treeColumn6 = new Aga.Controls.Tree.TreeColumn();
            this.treeColumn7 = new Aga.Controls.Tree.TreeColumn();
            panel1 = new System.Windows.Forms.Panel();
            flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
            nodeTextBox2 = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            nodeTextBox3 = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            nodeTextBox1 = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            nodeDecimalTextBox1 = new Aga.Controls.Tree.NodeControls.NodeDecimalTextBox();
            nodeDecimalTextBox2 = new Aga.Controls.Tree.NodeControls.NodeDecimalTextBox();
            nodeDecimalTextBox5 = new Aga.Controls.Tree.NodeControls.NodeDecimalTextBox();
            nodeDecimalTextBox6 = new Aga.Controls.Tree.NodeControls.NodeDecimalTextBox();
            panel1.SuspendLayout();
            flowLayoutPanel1.SuspendLayout();
            this.SuspendLayout();
            // 
            // panel1
            // 
            panel1.Controls.Add(this.textBox1);
            panel1.Controls.Add(flowLayoutPanel1);
            panel1.Dock = System.Windows.Forms.DockStyle.Top;
            panel1.Location = new System.Drawing.Point(0, 0);
            panel1.Name = "panel1";
            panel1.Size = new System.Drawing.Size(669, 23);
            panel1.TabIndex = 3;
            // 
            // textBox1
            // 
            this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.textBox1.Location = new System.Drawing.Point(0, 0);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(519, 21);
            this.textBox1.TabIndex = 1;
            this.textBox1.Text = "localhost:5000";
            this.textBox1.WordWrap = false;
            // 
            // flowLayoutPanel1
            // 
            flowLayoutPanel1.AutoSize = true;
            flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            flowLayoutPanel1.Controls.Add(this.findButton);
            flowLayoutPanel1.Controls.Add(this.button1);
            flowLayoutPanel1.Controls.Add(this.button2);
            flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Right;
            flowLayoutPanel1.Location = new System.Drawing.Point(519, 0);
            flowLayoutPanel1.Name = "flowLayoutPanel1";
            flowLayoutPanel1.Size = new System.Drawing.Size(150, 23);
            flowLayoutPanel1.TabIndex = 2;
            flowLayoutPanel1.WrapContents = false;
            // 
            // findButton
            // 
            this.findButton.AutoSize = true;
            this.findButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.findButton.Location = new System.Drawing.Point(3, 0);
            this.findButton.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
            this.findButton.Name = "findButton";
            this.findButton.Size = new System.Drawing.Size(39, 22);
            this.findButton.TabIndex = 4;
            this.findButton.Text = "Find";
            this.findButton.UseVisualStyleBackColor = true;
            this.findButton.Click += new System.EventHandler(this.findButton_Click);
            // 
            // button1
            // 
            this.button1.AutoSize = true;
            this.button1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.button1.Location = new System.Drawing.Point(45, 0);
            this.button1.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(57, 22);
            this.button1.TabIndex = 0;
            this.button1.Text = "Connect";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // button2
            // 
            this.button2.AutoSize = true;
            this.button2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.button2.Enabled = false;
            this.button2.Location = new System.Drawing.Point(105, 0);
            this.button2.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(45, 22);
            this.button2.TabIndex = 3;
            this.button2.Text = "Pause";
            this.button2.UseVisualStyleBackColor = true;
            this.button2.Click += new System.EventHandler(this.button2_Click);
            // 
            // nodeTextBox2
            // 
            nodeTextBox2.DataPropertyName = "TkBytesAsString";
            nodeTextBox2.IncrementalSearchEnabled = true;
            nodeTextBox2.LeftMargin = 3;
            nodeTextBox2.ParentColumn = this.treeColumn4;
            nodeTextBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // treeColumn4
            // 
            this.treeColumn4.Header = "TkBytes";
            this.treeColumn4.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.treeColumn4.TooltipText = "Total allocated memory rounded to nearest kilo bytes (including child call)";
            this.treeColumn4.Width = 60;
            // 
            // nodeTextBox3
            // 
            nodeTextBox3.DataPropertyName = "SkBytesAsString";
            nodeTextBox3.IncrementalSearchEnabled = true;
            nodeTextBox3.LeftMargin = 3;
            nodeTextBox3.ParentColumn = this.treeColumn5;
            nodeTextBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // treeColumn5
            // 
            this.treeColumn5.Header = "SkBytes";
            this.treeColumn5.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.treeColumn5.TooltipText = "Self allocated memory rounded to nearest kilo bytes (child call not included)";
            this.treeColumn5.Width = 60;
            // 
            // timer1
            // 
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // backgroundWorker1
            // 
            this.backgroundWorker1.WorkerSupportsCancellation = true;
            this.backgroundWorker1.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorker1_DoWork);
            this.backgroundWorker1.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
            // 
            // treeViewAdv1
            // 
            this.treeViewAdv1.AllowColumnReorder = true;
            this.treeViewAdv1.BackColor = System.Drawing.SystemColors.Window;
            this.treeViewAdv1.Columns.Add(this.treeColumn1);
            this.treeViewAdv1.Columns.Add(this.treeColumn2);
            this.treeViewAdv1.Columns.Add(this.treeColumn3);
            this.treeViewAdv1.Columns.Add(this.treeColumn4);
            this.treeViewAdv1.Columns.Add(this.treeColumn5);
            this.treeViewAdv1.Columns.Add(this.treeColumn6);
            this.treeViewAdv1.Columns.Add(this.treeColumn7);
            this.treeViewAdv1.DefaultToolTipProvider = null;
            this.treeViewAdv1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.treeViewAdv1.DragDropMarkColor = System.Drawing.Color.Black;
            this.treeViewAdv1.FullRowSelect = true;
            this.treeViewAdv1.GridLineStyle = ((Aga.Controls.Tree.GridLineStyle)((Aga.Controls.Tree.GridLineStyle.Horizontal | Aga.Controls.Tree.GridLineStyle.Vertical)));
            this.treeViewAdv1.Indent = 12;
            this.treeViewAdv1.LineColor = System.Drawing.SystemColors.ControlDark;
            this.treeViewAdv1.Location = new System.Drawing.Point(0, 23);
            this.treeViewAdv1.Model = null;
            this.treeViewAdv1.Name = "treeViewAdv1";
            this.treeViewAdv1.NodeControls.Add(nodeTextBox1);
            this.treeViewAdv1.NodeControls.Add(nodeDecimalTextBox1);
            this.treeViewAdv1.NodeControls.Add(nodeDecimalTextBox2);
            this.treeViewAdv1.NodeControls.Add(nodeTextBox2);
            this.treeViewAdv1.NodeControls.Add(nodeTextBox3);
            this.treeViewAdv1.NodeControls.Add(nodeDecimalTextBox5);
            this.treeViewAdv1.NodeControls.Add(nodeDecimalTextBox6);
            this.treeViewAdv1.SelectedNode = null;
            this.treeViewAdv1.Size = new System.Drawing.Size(669, 318);
            this.treeViewAdv1.TabIndex = 2;
            this.treeViewAdv1.Text = "treeViewAdv1";
            this.treeViewAdv1.UseColumns = true;
            this.treeViewAdv1.ColumnClicked += new System.EventHandler<Aga.Controls.Tree.TreeColumnEventArgs>(this.treeViewAdv1_ColumnClicked);
            // 
            // treeColumn1
            // 
            this.treeColumn1.Header = "Callstack";
            this.treeColumn1.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn1.TooltipText = "Function name";
            this.treeColumn1.Width = 300;
            // 
            // treeColumn2
            // 
            this.treeColumn2.Header = "TCount";
            this.treeColumn2.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.treeColumn2.TooltipText = "Total no. of allocation count (including child call)";
            this.treeColumn2.Width = 60;
            // 
            // treeColumn3
            // 
            this.treeColumn3.Header = "SCount";
            this.treeColumn3.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.treeColumn3.TooltipText = "Self no. of allocation count (child call not included)";
            this.treeColumn3.Width = 60;
            // 
            // treeColumn6
            // 
            this.treeColumn6.Header = "SCount/F";
            this.treeColumn6.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.treeColumn6.TooltipText = "Self no. of allocation count per frame";
            this.treeColumn6.Width = 60;
            // 
            // treeColumn7
            // 
            this.treeColumn7.Header = "Call/F";
            this.treeColumn7.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn7.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.treeColumn7.TooltipText = "No. of call per frame";
            this.treeColumn7.Width = 60;
            // 
            // nodeTextBox1
            // 
            nodeTextBox1.DataPropertyName = "Name";
            nodeTextBox1.EditEnabled = false;
            nodeTextBox1.IncrementalSearchEnabled = true;
            nodeTextBox1.LeftMargin = 3;
            nodeTextBox1.ParentColumn = this.treeColumn1;
            // 
            // nodeDecimalTextBox1
            // 
            nodeDecimalTextBox1.DataPropertyName = "TCount";
            nodeDecimalTextBox1.EditEnabled = false;
            nodeDecimalTextBox1.IncrementalSearchEnabled = true;
            nodeDecimalTextBox1.LeftMargin = 3;
            nodeDecimalTextBox1.ParentColumn = this.treeColumn2;
            nodeDecimalTextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // nodeDecimalTextBox2
            // 
            nodeDecimalTextBox2.DataPropertyName = "SCount";
            nodeDecimalTextBox2.EditEnabled = false;
            nodeDecimalTextBox2.IncrementalSearchEnabled = true;
            nodeDecimalTextBox2.LeftMargin = 3;
            nodeDecimalTextBox2.ParentColumn = this.treeColumn3;
            nodeDecimalTextBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // nodeDecimalTextBox5
            // 
            nodeDecimalTextBox5.DataPropertyName = "SCountPerFrame";
            nodeDecimalTextBox5.IncrementalSearchEnabled = true;
            nodeDecimalTextBox5.LeftMargin = 3;
            nodeDecimalTextBox5.ParentColumn = this.treeColumn6;
            nodeDecimalTextBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // nodeDecimalTextBox6
            // 
            nodeDecimalTextBox6.DataPropertyName = "CallPerFrame";
            nodeDecimalTextBox6.IncrementalSearchEnabled = true;
            nodeDecimalTextBox6.LeftMargin = 3;
            nodeDecimalTextBox6.ParentColumn = this.treeColumn7;
            nodeDecimalTextBox6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(669, 341);
            this.Controls.Add(this.treeViewAdv1);
            this.Controls.Add(panel1);
            this.Name = "Form1";
            this.Text = "Memory profiler client";
            panel1.ResumeLayout(false);
            panel1.PerformLayout();
            flowLayoutPanel1.ResumeLayout(false);
            flowLayoutPanel1.PerformLayout();
            this.ResumeLayout(false);

		}
Example #5
0
        private void InitializeComponent()
        {
            this.treeViewAdv1 = new Aga.Controls.Tree.TreeViewAdv();
            this.treeColumn1  = new Aga.Controls.Tree.TreeColumn();
            this.treeColumn2  = new Aga.Controls.Tree.TreeColumn();
            this.treeColumn3  = new Aga.Controls.Tree.TreeColumn();
            this.treeColumn4  = new Aga.Controls.Tree.TreeColumn();
            this._name        = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            this._type        = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            this._value       = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            this._size        = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            this.SuspendLayout();
            //
            // treeViewAdv1
            //
            this.treeViewAdv1.AllowColumnReorder = true;
            this.treeViewAdv1.BackColor          = System.Drawing.SystemColors.Window;
            this.treeViewAdv1.Columns.Add(this.treeColumn1);
            this.treeViewAdv1.Columns.Add(this.treeColumn2);
            this.treeViewAdv1.Columns.Add(this.treeColumn3);
            this.treeViewAdv1.Columns.Add(this.treeColumn4);
            this.treeViewAdv1.Cursor = System.Windows.Forms.Cursors.Default;
            this.treeViewAdv1.DefaultToolTipProvider = null;
            this.treeViewAdv1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.treeViewAdv1.DragDropMarkColor = System.Drawing.Color.Black;
            this.treeViewAdv1.GridLineStyle     = ((Aga.Controls.Tree.GridLineStyle)((Aga.Controls.Tree.GridLineStyle.Horizontal | Aga.Controls.Tree.GridLineStyle.Vertical)));
            this.treeViewAdv1.LineColor         = System.Drawing.SystemColors.ControlDark;
            this.treeViewAdv1.Location          = new System.Drawing.Point(0, 0);
            this.treeViewAdv1.Model             = null;
            this.treeViewAdv1.Name = "treeViewAdv1";
            this.treeViewAdv1.NodeControls.Add(this._name);
            this.treeViewAdv1.NodeControls.Add(this._type);
            this.treeViewAdv1.NodeControls.Add(this._value);
            this.treeViewAdv1.NodeControls.Add(this._size);
            this.treeViewAdv1.SelectedNode = null;
            this.treeViewAdv1.Size         = new System.Drawing.Size(626, 406);
            this.treeViewAdv1.TabIndex     = 0;
            this.treeViewAdv1.Text         = "treeViewAdv1";
            this.treeViewAdv1.UseColumns   = true;
            //
            // treeColumn1
            //
            this.treeColumn1.Header    = "Name";
            this.treeColumn1.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn1.Width     = 100;
            //
            // treeColumn2
            //
            this.treeColumn2.Header    = "Type";
            this.treeColumn2.SortOrder = System.Windows.Forms.SortOrder.None;
            this.treeColumn2.Width     = 100;
            //
            // treeColumn3
            //
            this.treeColumn3.Header         = "Value";
            this.treeColumn3.MinColumnWidth = 10;
            this.treeColumn3.SortOrder      = System.Windows.Forms.SortOrder.None;
            this.treeColumn3.Width          = 150;
            //
            // treeColumn4
            //
            this.treeColumn4.Header         = "Size[byte]";
            this.treeColumn4.MaxColumnWidth = 100;
            this.treeColumn4.MinColumnWidth = 100;
            this.treeColumn4.SortOrder      = System.Windows.Forms.SortOrder.None;
            this.treeColumn4.Width          = 100;

            this._name.DataPropertyName         = "Name";
            this._name.IncrementalSearchEnabled = true;
            this._name.LeftMargin   = 3;
            this._name.ParentColumn = this.treeColumn1;
            this._name.Trimming     = System.Drawing.StringTrimming.EllipsisCharacter;
            this._name.UseCompatibleTextRendering = true;

            this._type.DataPropertyName         = "Type";
            this._type.IncrementalSearchEnabled = true;
            this._type.LeftMargin   = 3;
            this._type.ParentColumn = this.treeColumn2;
            this._type.Trimming     = System.Drawing.StringTrimming.EllipsisCharacter;
            this._type.UseCompatibleTextRendering = true;

            this._value.DataPropertyName         = "Value";
            this._value.IncrementalSearchEnabled = true;
            this._value.LeftMargin   = 3;
            this._value.ParentColumn = this.treeColumn3;
            this._value.Trimming     = System.Drawing.StringTrimming.EllipsisCharacter;
            this._value.UseCompatibleTextRendering = true;

            this._size.DataPropertyName         = "Size";
            this._size.IncrementalSearchEnabled = true;
            this._size.LeftMargin   = 3;
            this._size.ParentColumn = this.treeColumn4;
            this._size.Trimming     = System.Drawing.StringTrimming.EllipsisCharacter;
            this._size.UseCompatibleTextRendering = true;

            //
            // ColumnHandling
            //
            this.Controls.Add(this.treeViewAdv1);
            this.Name = "ColumnHandling";
            this.Size = new System.Drawing.Size(626, 406);
            this.ResumeLayout(false);
        }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DataTableTreeExample));
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.treeViewAdv1 = new Aga.Controls.Tree.TreeViewAdv();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.addNodeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.nodeTextBox1 = new Aga.Controls.Tree.NodeControls.NodeTextBox();
     this.nodeStateIcon1 = new Aga.Controls.Tree.NodeControls.NodeStateIcon();
     this.panel1 = new System.Windows.Forms.Panel();
     this.dataGridView1 = new System.Windows.Forms.DataGridView();
     this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.ParentID = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Label = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Data = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.imageList1 = new System.Windows.Forms.ImageList(this.components);
     this.label1 = new System.Windows.Forms.Label();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.treeViewAdv1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.panel1);
     this.splitContainer1.Panel2.Controls.Add(this.dataGridView1);
     this.splitContainer1.Size = new System.Drawing.Size(830, 528);
     this.splitContainer1.SplitterDistance = 298;
     this.splitContainer1.TabIndex = 0;
     //
     // treeViewAdv1
     //
     this.treeViewAdv1.BackColor = System.Drawing.SystemColors.Window;
     this.treeViewAdv1.ContextMenuStrip = this.contextMenuStrip1;
     this.treeViewAdv1.Cursor = System.Windows.Forms.Cursors.Default;
     this.treeViewAdv1.DefaultToolTipProvider = null;
     this.treeViewAdv1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.treeViewAdv1.DragDropMarkColor = System.Drawing.Color.Black;
     this.treeViewAdv1.LineColor = System.Drawing.SystemColors.ControlDark;
     this.treeViewAdv1.Location = new System.Drawing.Point(0, 0);
     this.treeViewAdv1.Model = null;
     this.treeViewAdv1.Name = "treeViewAdv1";
     this.treeViewAdv1.NodeControls.Add(this.nodeTextBox1);
     this.treeViewAdv1.NodeControls.Add(this.nodeStateIcon1);
     this.treeViewAdv1.SelectedNode = null;
     this.treeViewAdv1.Size = new System.Drawing.Size(298, 528);
     this.treeViewAdv1.TabIndex = 0;
     this.treeViewAdv1.Text = "treeViewAdv1";
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.addNodeToolStripMenuItem});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(153, 48);
     //
     // addNodeToolStripMenuItem
     //
     this.addNodeToolStripMenuItem.Name = "addNodeToolStripMenuItem";
     this.addNodeToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.addNodeToolStripMenuItem.Text = "Add Node";
     this.addNodeToolStripMenuItem.Click += new System.EventHandler(this.addNode_Click);
     //
     // nodeTextBox1
     //
     this.nodeTextBox1.IncrementalSearchEnabled = true;
     this.nodeTextBox1.LeftMargin = 3;
     this.nodeTextBox1.ParentColumn = null;
     //
     // nodeStateIcon1
     //
     this.nodeStateIcon1.LeftMargin = 1;
     this.nodeStateIcon1.ParentColumn = null;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.label1);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 428);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(528, 100);
     this.panel1.TabIndex = 1;
     //
     // dataGridView1
     //
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
     this.ID,
     this.ParentID,
     this.Label,
     this.Data});
     this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dataGridView1.Location = new System.Drawing.Point(0, 0);
     this.dataGridView1.Name = "dataGridView1";
     this.dataGridView1.Size = new System.Drawing.Size(528, 528);
     this.dataGridView1.TabIndex = 0;
     this.dataGridView1.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dataGridView1_RowsAdded);
     //
     // ID
     //
     this.ID.HeaderText = "ID";
     this.ID.Name = "ID";
     //
     // ParentID
     //
     this.ParentID.HeaderText = "ParentID";
     this.ParentID.Name = "ParentID";
     //
     // Label
     //
     this.Label.HeaderText = "Label";
     this.Label.Name = "Label";
     //
     // Data
     //
     this.Data.HeaderText = "Data";
     this.Data.Name = "Data";
     //
     // imageList1
     //
     this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "");
     this.imageList1.Images.SetKeyName(1, "");
     this.imageList1.Images.SetKeyName(2, "");
     this.imageList1.Images.SetKeyName(3, "");
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(59, 34);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(174, 13);
     this.label1.TabIndex = 0;
     this.label1.Text = "right click on a folder to add a node";
     //
     // DataTableTreeExample
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.splitContainer1);
     this.Name = "DataTableTreeExample";
     this.Size = new System.Drawing.Size(830, 528);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.contextMenuStrip1.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.ResumeLayout(false);
 }
        public ShaderFragmentArchiveControl(
            NodeEditorCore.ShaderFragmentArchiveModel archiveModel)
        {
            DoubleBuffered = false;

            Margin = new System.Windows.Forms.Padding(0);

            var fragmentTree = new Aga.Controls.Tree.TreeViewAdv();
            var treeColumn1 = new Aga.Controls.Tree.TreeColumn();
            var treeColumn3 = new Aga.Controls.Tree.TreeColumn();
            var treeColumn4 = new Aga.Controls.Tree.TreeColumn();
            var treeColumn5 = new Aga.Controls.Tree.TreeColumn();
            var icon = new Aga.Controls.Tree.NodeControls.NodeStateIcon();
            var visibleName = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            var returnType = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            var parameters = new Aga.Controls.Tree.NodeControls.NodeTextBox();
            var exceptionString = new Aga.Controls.Tree.NodeControls.NodeTextBox();

            // treeColumn1
            treeColumn1.Header = "Name";
            treeColumn1.SortOrder = System.Windows.Forms.SortOrder.None;
            treeColumn1.TooltipText = null;
            treeColumn1.Width = 300;
            // treeColumn3
            treeColumn3.Header = "ReturnType";
            treeColumn3.SortOrder = System.Windows.Forms.SortOrder.None;
            treeColumn3.TooltipText = null;
            treeColumn3.Width = 75;
            // treeColumn4
            treeColumn4.Header = "Parameters";
            treeColumn4.SortOrder = System.Windows.Forms.SortOrder.None;
            treeColumn4.TooltipText = null;
            treeColumn4.Width = 400;
            // treeColumn5
            treeColumn5.Header = "Exception";
            treeColumn5.SortOrder = System.Windows.Forms.SortOrder.None;
            treeColumn5.TooltipText = null;
            treeColumn5.Width = 200;
            // _icon
            icon.DataPropertyName = "Icon";
            icon.LeftMargin = 1;
            icon.ParentColumn = treeColumn1;
            icon.ScaleMode = Aga.Controls.Tree.ImageScaleMode.Clip;
            // _visibleName
            visibleName.DataPropertyName = "Name";
            visibleName.IncrementalSearchEnabled = true;
            visibleName.LeftMargin = 8;
            visibleName.ParentColumn = treeColumn1;
            visibleName.Trimming = System.Drawing.StringTrimming.EllipsisCharacter;
            // visibleName.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            visibleName.UseCompatibleTextRendering = true;
            // _returnType
            returnType.DataPropertyName = "ReturnType";
            returnType.IncrementalSearchEnabled = true;
            returnType.LeftMargin = 3;
            returnType.ParentColumn = treeColumn3;
            returnType.UseCompatibleTextRendering = true;
            // _parameters
            parameters.DataPropertyName = "Parameters";
            parameters.IncrementalSearchEnabled = true;
            parameters.LeftMargin = 3;
            parameters.ParentColumn = treeColumn4;
            parameters.UseCompatibleTextRendering = true;
            // _exceptionString
            exceptionString.DataPropertyName = "ExceptionString";
            exceptionString.IncrementalSearchEnabled = true;
            exceptionString.LeftMargin = 3;
            exceptionString.ParentColumn = treeColumn5;
            exceptionString.UseCompatibleTextRendering = true;
            // fragment tree
            fragmentTree.BackColor = System.Drawing.Color.Silver;
            fragmentTree.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            fragmentTree.ColumnFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            fragmentTree.Columns.Add(treeColumn1);
            fragmentTree.Columns.Add(treeColumn3);
            fragmentTree.Columns.Add(treeColumn4);
            fragmentTree.Columns.Add(treeColumn5);
            fragmentTree.DefaultToolTipProvider = null;
            fragmentTree.Dock = System.Windows.Forms.DockStyle.Fill;
            fragmentTree.DragDropMarkColor = System.Drawing.Color.Black;
            fragmentTree.Font = System.Drawing.SystemFonts.MenuFont;
                // new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            fragmentTree.ForeColor = System.Drawing.Color.Gray;
            fragmentTree.FullRowSelect = true;
            fragmentTree.GridLineStyle = ((Aga.Controls.Tree.GridLineStyle)((Aga.Controls.Tree.GridLineStyle.Horizontal | Aga.Controls.Tree.GridLineStyle.Vertical)));
            fragmentTree.LineColor = System.Drawing.Color.White;
            fragmentTree.LoadOnDemand = true;
            fragmentTree.Location = new System.Drawing.Point(0, 0);
            fragmentTree.Model = null;
            fragmentTree.Name = "_fragmentTree";
            fragmentTree.NodeControls.Add(icon);
            fragmentTree.NodeControls.Add(visibleName);
            fragmentTree.NodeControls.Add(returnType);
            fragmentTree.NodeControls.Add(parameters);
            fragmentTree.NodeControls.Add(exceptionString);
            fragmentTree.RowHeight = 32;
            fragmentTree.SelectedNode = null;
            fragmentTree.Size = new System.Drawing.Size(288, 311);
            fragmentTree.TabIndex = 3;
            fragmentTree.UseColumns = true;
            // fragmentTree.MouseEnter += new System.EventHandler(this.OnFragmentsMouseEnter);
            // fragmentTree.MouseLeave += new System.EventHandler(this.OnFragmentsMouseLeave);

            fragmentTree.Padding = new System.Windows.Forms.Padding(0);
            fragmentTree.Dock = System.Windows.Forms.DockStyle.Fill;

            fragmentTree.Model = new Aga.Controls.Tree.SortedTreeModel(archiveModel);
            fragmentTree.ItemDrag += new ItemDragEventHandler(OnFragmentTreeItemDrag);

            Controls.Add(fragmentTree);
        }