Beispiel #1
0
        protected override object GetData(CommonTools.Node node, CommonTools.TreeListColumn column)
        {
            object data = base.GetData(node, column);

            if (data != null)
            {
                return(data);
            }

            if (column.Fieldname == "childCount")
            {
                if (node.HasChildren)
                {
                    return(node.Nodes.Count);
                }
                return("<none>");
            }
            if (column.Fieldname == "visibleCount")
            {
                if (node.HasChildren)
                {
                    return(node.VisibleNodeCount);
                }
                return("<none>");
            }
            return(string.Empty);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     CommonTools.TreeListColumn treeListColumn1 = new CommonTools.TreeListColumn("A", "AutoSize (100)");
     CommonTools.TreeListColumn treeListColumn2 = new CommonTools.TreeListColumn("B", "AutoSize (50)");
     CommonTools.TreeListColumn treeListColumn3 = new CommonTools.TreeListColumn("C", "Fixed Size");
     this.m_tree = new TreeTestApp.ResizeTree();
     ((System.ComponentModel.ISupportInitialize)(this.m_tree)).BeginInit();
     this.SuspendLayout();
     //
     // m_tree
     //
     this.m_tree.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)));
     treeListColumn1.AutoSize           = true;
     treeListColumn1.AutoSizeMinSize    = 20;
     treeListColumn1.CellFormat.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
     treeListColumn1.Width              = 75;
     treeListColumn2.AutoSize           = true;
     treeListColumn2.AutoSizeMinSize    = 20;
     treeListColumn2.AutoSizeRatio      = 50F;
     treeListColumn2.CellFormat.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0);
     treeListColumn2.Width              = 75;
     treeListColumn3.AutoSizeMinSize    = 0;
     treeListColumn3.CellFormat.Padding = new System.Windows.Forms.Padding(4, 0, 0, 0);
     treeListColumn3.Width              = 100;
     this.m_tree.Columns.AddRange(new CommonTools.TreeListColumn[] {
         treeListColumn1,
         treeListColumn2,
         treeListColumn3
     });
     this.m_tree.ColumnsOptions.HeaderHeight = 40;
     this.m_tree.ColumnsOptions.LeftMargin   = 0;
     this.m_tree.Cursor   = System.Windows.Forms.Cursors.Arrow;
     this.m_tree.Images   = null;
     this.m_tree.Location = new System.Drawing.Point(3, 3);
     this.m_tree.Name     = "m_tree";
     this.m_tree.RowOptions.ItemHeight = 20;
     this.m_tree.RowOptions.ShowHeader = false;
     this.m_tree.Size     = new System.Drawing.Size(440, 297);
     this.m_tree.TabIndex = 0;
     this.m_tree.Text     = "treeListView1";
     this.m_tree.ViewOptions.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
     this.m_tree.ViewOptions.ShowLine      = false;
     this.m_tree.ViewOptions.ShowPlusMinus = false;
     //
     // TreeTestAutoSize
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.m_tree);
     this.Name = "TreeTestAutoSize";
     this.Size = new System.Drawing.Size(446, 303);
     ((System.ComponentModel.ISupportInitialize)(this.m_tree)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #3
0
        protected override object GetData(CommonTools.Node node, CommonTools.TreeListColumn column)
        {
            object data = base.GetData(node, column);

            if (data is string)
            {
                return(data);
            }
            if (data != null && column.Index == (int)eColumns.Size)
            {
                return(GetSizeString(node, m_sizeDisplayType));
            }
            return(data);
        }
Beispiel #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     CommonTools.TreeListColumn treeListColumn1 = new CommonTools.TreeListColumn("folder", "Folder");
     CommonTools.TreeListColumn treeListColumn2 = new CommonTools.TreeListColumn("createdTime", "Date Created");
     CommonTools.TreeListColumn treeListColumn3 = new CommonTools.TreeListColumn("size", "Size");
     this.m_folderTree = new TreeTestApp.FolderViewTree();
     ((System.ComponentModel.ISupportInitialize)(this.m_folderTree)).BeginInit();
     this.SuspendLayout();
     //
     // m_folderTree
     //
     this.m_folderTree.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)));
     treeListColumn1.Width = 250;
     treeListColumn2.CellFormat.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
     treeListColumn2.CellFormat.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
     treeListColumn2.CellFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     treeListColumn2.Width = 130;
     treeListColumn3.CellFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn3.HeaderFormat.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     treeListColumn3.Width = 100;
     this.m_folderTree.Columns.AddRange(new CommonTools.TreeListColumn[] {
         treeListColumn1,
         treeListColumn2,
         treeListColumn3
     });
     this.m_folderTree.Images   = null;
     this.m_folderTree.Location = new System.Drawing.Point(3, 3);
     this.m_folderTree.Name     = "m_folderTree";
     this.m_folderTree.Size     = new System.Drawing.Size(471, 326);
     this.m_folderTree.TabIndex = 0;
     this.m_folderTree.Text     = "treeListView1";
     this.m_folderTree.ViewOptions.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     //
     // FolderView
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.m_folderTree);
     this.Name = "FolderView";
     this.Size = new System.Drawing.Size(477, 332);
     ((System.ComponentModel.ISupportInitialize)(this.m_folderTree)).EndInit();
     this.ResumeLayout(false);
 }
Beispiel #5
0
        protected override CommonTools.TreeList.TextFormatting GetFormatting(CommonTools.Node node, CommonTools.TreeListColumn column)
        {
            CommonTools.TreeList.TextFormatting format = new CommonTools.TreeList.TextFormatting(column.CellFormat);
            int testvalue = (node.NodeIndex & 0x01);

            testvalue |= (column.VisibleIndex & 0x01) << 1;
            switch (testvalue)
            {
            case 0:
                format.BackColor = Color.FromArgb(100, Color.Gainsboro);
                break;

            case 1:
                format.BackColor = Color.FromArgb(70, Color.Gainsboro);
                break;

            case 2:
                format.BackColor = Color.FromArgb(100, Color.Gold);
                break;

            case 3:
                format.BackColor = Color.FromArgb(50, Color.Gold);
                break;
            }
            return(format);
        }
Beispiel #6
0
 protected override object GetData(CommonTools.Node node, CommonTools.TreeListColumn column)
 {
     return(CommonTools.PropertyUtil.GetPropertyValue(node.Tag, column.Fieldname));
 }
Beispiel #7
0
 protected virtual CommonTools.TreeList.TextFormatting GetFormatting(CommonTools.Node node, CommonTools.TreeListColumn column)
 {
     return(column.CellFormat);
 }
Beispiel #8
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.label1   = new Label();
            this.label2   = new Label();
            this.dateFrom = new DateTimePicker();
            this.label3   = new Label();
            this.dateTo   = new DateTimePicker();
            this.button1  = new Button();
            this.label4   = new Label();
            this.label5   = new Label();
            m_tree        = new ReportTree();
            CommonTools.TreeListColumn treeListColumn1 = new CommonTools.TreeListColumn("name", "Name");
            CommonTools.TreeListColumn treeListColumn2 = new CommonTools.TreeListColumn("total", "Total");
            ((System.ComponentModel.ISupportInitialize)(this.m_tree)).BeginInit();

            this.SuspendLayout();

            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Font     = new System.Drawing.Font("Segoe Script", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.label2.Location = new System.Drawing.Point(235, 4);
            this.label2.Name     = "label2";
            this.label2.Size     = new System.Drawing.Size(49, 22);
            this.label2.TabIndex = 11;
            this.label2.Text     = "From";
            //
            // dateFrom
            //
            this.dateFrom.CalendarFont  = new System.Drawing.Font("Segoe Script", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.dateFrom.Checked       = false;
            this.dateFrom.Font          = new System.Drawing.Font("Segoe Script", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.dateFrom.Location      = new System.Drawing.Point(290, 2);
            this.dateFrom.Name          = "dateFrom";
            this.dateFrom.Size          = new System.Drawing.Size(176, 28);
            this.dateFrom.TabIndex      = 12;
            this.dateFrom.ValueChanged += new EventHandler(this.DateFromOnClick);
            this.dateFrom.MaxDate       = DateTime.Today.Subtract(TimeSpan.FromDays(1));
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.Font     = new System.Drawing.Font("Segoe Script", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.label3.Location = new System.Drawing.Point(509, 4);
            this.label3.Name     = "label3";
            this.label3.Size     = new System.Drawing.Size(25, 20);
            this.label3.TabIndex = 14;
            this.label3.Text     = "To";
            //
            // dateTo
            //

            this.dateTo.CalendarFont  = new System.Drawing.Font("Segoe Script", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.dateTo.Font          = new System.Drawing.Font("Segoe Script", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.dateTo.Location      = new System.Drawing.Point(540, 2);
            this.dateTo.Name          = "dateTo";
            this.dateTo.Size          = new System.Drawing.Size(180, 28);
            this.dateTo.TabIndex      = 13;
            this.dateTo.ValueChanged += new EventHandler(this.DateToOnClick);
            this.dateTo.MaxDate       = DateTime.Today;

            //
            // button1
            //
            this.button1.FlatAppearance.BorderColor = System.Drawing.Color.Silver;
            this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.button1.Font      = new System.Drawing.Font("Segoe Script", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.button1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
            this.button1.Location  = new System.Drawing.Point(753, 2);
            this.button1.Name      = "button1";
            this.button1.Size      = new System.Drawing.Size(88, 28);
            this.button1.TabIndex  = 15;
            this.button1.Text      = "Generate";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new EventHandler(this.OnGenerate);

            treeListColumn1.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            treeListColumn1.AutoSize      = true;
            treeListColumn2.AutoSizeRatio = 80f;

            treeListColumn2.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleCenter;
            treeListColumn2.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            treeListColumn2.AutoSize      = true;
            treeListColumn2.AutoSizeRatio = 20f;

            this.m_tree.Columns.AddRange(new CommonTools.TreeListColumn[] {
                treeListColumn1,
                treeListColumn2
            });
            this.m_tree.Anchor = (((((AnchorStyles.Top | AnchorStyles.Bottom)
                                     | AnchorStyles.Left)
                                    | AnchorStyles.Right)));
            this.m_tree.Cursor   = Cursors.Arrow;
            this.m_tree.Images   = null;
            this.m_tree.Location = new System.Drawing.Point(3, 53);
            this.m_tree.Name     = "m_tree";
            this.m_tree.Size     = new System.Drawing.Size(610, 239);
            this.m_tree.TabIndex = 0;
            this.m_tree.ViewOptions.BorderStyle = BorderStyle.FixedSingle;
            //
            // TestTreeForm
            //
            this.Load += new System.EventHandler(this.ReportTreeFormLoad);
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.dateTo);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.dateFrom);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.m_tree);
            this.Name = "TestTreeForm";
            this.Size = new System.Drawing.Size(616, 275);
            ((System.ComponentModel.ISupportInitialize)(this.m_tree)).EndInit();
            this.ResumeLayout(false);
        }
Beispiel #9
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();
            CommonTools.TreeListColumn treeListColumn1 = new CommonTools.TreeListColumn("Locals_IndexColumn", "Index");
            CommonTools.TreeListColumn treeListColumn2 = new CommonTools.TreeListColumn("Locals_TypeColumn", "Type");
            CommonTools.TreeListColumn treeListColumn3 = new CommonTools.TreeListColumn("Locals_ValueColumn", "Value");
            CommonTools.TreeListColumn treeListColumn4 = new CommonTools.TreeListColumn("Args_IndexColumn", "Index");
            CommonTools.TreeListColumn treeListColumn5 = new CommonTools.TreeListColumn("Args_TypeColumn", "Type");
            CommonTools.TreeListColumn treeListColumn6 = new CommonTools.TreeListColumn("Args_ValueColumn", "Value");
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.StartButton = new System.Windows.Forms.Button();
            this.PipeBox = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.OutputBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.BuildPathBox = new System.Windows.Forms.TextBox();
            this.ContinueButton = new System.Windows.Forms.Button();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.CSBox = new FastColoredTextBoxNS.FastColoredTextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.RegistersBox = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.StepNextButton = new System.Windows.Forms.Button();
            this.ASMBox = new System.Windows.Forms.RichTextBox();
            this.BreakButton = new System.Windows.Forms.Button();
            this.StopButton = new System.Windows.Forms.Button();
            this.BreakOnStartCheckBox = new System.Windows.Forms.CheckBox();
            this.StepToInt3Button = new System.Windows.Forms.Button();
            this.StepNextILButton = new System.Windows.Forms.Button();
            this.LocalsTreeView = new CommonTools.TreeListView();
            this.ArgumentsTreeView = new CommonTools.TreeListView();
            this.label9 = new System.Windows.Forms.Label();
            this.RunToAddressBox = new System.Windows.Forms.NumericUpDown();
            this.GoButton = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.CSBox)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.LocalsTreeView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ArgumentsTreeView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.RunToAddressBox)).BeginInit();
            this.SuspendLayout();
            // 
            // StartButton
            // 
            this.StartButton.Location = new System.Drawing.Point(787, 15);
            this.StartButton.Margin = new System.Windows.Forms.Padding(4);
            this.StartButton.Name = "StartButton";
            this.StartButton.Size = new System.Drawing.Size(100, 28);
            this.StartButton.TabIndex = 0;
            this.StartButton.Text = "Start";
            this.StartButton.UseVisualStyleBackColor = true;
            this.StartButton.Click += new System.EventHandler(this.StartButton_Click);
            // 
            // PipeBox
            // 
            this.PipeBox.Location = new System.Drawing.Point(69, 17);
            this.PipeBox.Margin = new System.Windows.Forms.Padding(4);
            this.PipeBox.Name = "PipeBox";
            this.PipeBox.Size = new System.Drawing.Size(259, 22);
            this.PipeBox.TabIndex = 1;
            this.PipeBox.Text = "flingos";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(16, 21);
            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(44, 17);
            this.label1.TabIndex = 2;
            this.label1.Text = "Pipe :";
            // 
            // OutputBox
            // 
            this.OutputBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
            this.OutputBox.Location = new System.Drawing.Point(16, 98);
            this.OutputBox.Margin = new System.Windows.Forms.Padding(4);
            this.OutputBox.Multiline = true;
            this.OutputBox.Name = "OutputBox";
            this.OutputBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.OutputBox.Size = new System.Drawing.Size(531, 480);
            this.OutputBox.TabIndex = 3;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(355, 21);
            this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(79, 17);
            this.label2.TabIndex = 4;
            this.label2.Text = "Build path :";
            // 
            // BuildPathBox
            // 
            this.BuildPathBox.Location = new System.Drawing.Point(443, 17);
            this.BuildPathBox.Margin = new System.Windows.Forms.Padding(4);
            this.BuildPathBox.Name = "BuildPathBox";
            this.BuildPathBox.Size = new System.Drawing.Size(335, 22);
            this.BuildPathBox.TabIndex = 5;
            this.BuildPathBox.Text = "C:\\Fling OS\\Fling OS\\Kernel\\Kernel\\bin\\Debug";
            // 
            // ContinueButton
            // 
            this.ContinueButton.Enabled = false;
            this.ContinueButton.Location = new System.Drawing.Point(1275, 15);
            this.ContinueButton.Margin = new System.Windows.Forms.Padding(4);
            this.ContinueButton.Name = "ContinueButton";
            this.ContinueButton.Size = new System.Drawing.Size(100, 28);
            this.ContinueButton.TabIndex = 6;
            this.ContinueButton.Text = "Continue";
            this.ContinueButton.UseVisualStyleBackColor = true;
            this.ContinueButton.Click += new System.EventHandler(this.ContinueButton_Click);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(556, 79);
            this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(45, 17);
            this.label3.TabIndex = 8;
            this.label3.Text = "ASM :";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(16, 79);
            this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(40, 17);
            this.label4.TabIndex = 9;
            this.label4.Text = "Log :";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(1100, 79);
            this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(33, 17);
            this.label5.TabIndex = 11;
            this.label5.Text = "C# :";
            // 
            // CSBox
            // 
            this.CSBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
            this.CSBox.AutoScrollMinSize = new System.Drawing.Size(31, 18);
            this.CSBox.BackBrush = null;
            this.CSBox.BracketsHighlightStrategy = FastColoredTextBoxNS.BracketsHighlightStrategy.Strategy2;
            this.CSBox.CharHeight = 18;
            this.CSBox.CharWidth = 10;
            this.CSBox.Cursor = System.Windows.Forms.Cursors.IBeam;
            this.CSBox.DisabledColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
            this.CSBox.IsReplaceMode = false;
            this.CSBox.Language = FastColoredTextBoxNS.Language.CSharp;
            this.CSBox.LeftBracket = '(';
            this.CSBox.LeftBracket2 = '{';
            this.CSBox.Location = new System.Drawing.Point(1096, 98);
            this.CSBox.Margin = new System.Windows.Forms.Padding(4);
            this.CSBox.Name = "CSBox";
            this.CSBox.Paddings = new System.Windows.Forms.Padding(0);
            this.CSBox.RightBracket = ')';
            this.CSBox.RightBracket2 = '}';
            this.CSBox.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
            this.CSBox.Size = new System.Drawing.Size(532, 481);
            this.CSBox.TabIndex = 10;
            this.CSBox.Zoom = 100;
            // 
            // label6
            // 
            this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(16, 583);
            this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(76, 17);
            this.label6.TabIndex = 12;
            this.label6.Text = "Registers :";
            // 
            // RegistersBox
            // 
            this.RegistersBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.RegistersBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.RegistersBox.Location = new System.Drawing.Point(16, 603);
            this.RegistersBox.Margin = new System.Windows.Forms.Padding(4);
            this.RegistersBox.Multiline = true;
            this.RegistersBox.Name = "RegistersBox";
            this.RegistersBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
            this.RegistersBox.Size = new System.Drawing.Size(531, 143);
            this.RegistersBox.TabIndex = 13;
            // 
            // label7
            // 
            this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(556, 583);
            this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(84, 17);
            this.label7.TabIndex = 14;
            this.label7.Text = "Arguments :";
            // 
            // label8
            // 
            this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(1100, 583);
            this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(57, 17);
            this.label8.TabIndex = 16;
            this.label8.Text = "Locals :";
            // 
            // StepNextButton
            // 
            this.StepNextButton.Enabled = false;
            this.StepNextButton.Location = new System.Drawing.Point(1491, 15);
            this.StepNextButton.Margin = new System.Windows.Forms.Padding(4);
            this.StepNextButton.Name = "StepNextButton";
            this.StepNextButton.Size = new System.Drawing.Size(100, 28);
            this.StepNextButton.TabIndex = 18;
            this.StepNextButton.Text = "Step Next";
            this.StepNextButton.UseVisualStyleBackColor = true;
            this.StepNextButton.Click += new System.EventHandler(this.StepNextButton_Click);
            // 
            // ASMBox
            // 
            this.ASMBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left)));
            this.ASMBox.Font = new System.Drawing.Font("Consolas", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ASMBox.Location = new System.Drawing.Point(556, 98);
            this.ASMBox.Margin = new System.Windows.Forms.Padding(4);
            this.ASMBox.Name = "ASMBox";
            this.ASMBox.Size = new System.Drawing.Size(531, 480);
            this.ASMBox.TabIndex = 19;
            this.ASMBox.Text = "";
            this.ASMBox.WordWrap = false;
            // 
            // BreakButton
            // 
            this.BreakButton.Enabled = false;
            this.BreakButton.Location = new System.Drawing.Point(1167, 15);
            this.BreakButton.Margin = new System.Windows.Forms.Padding(4);
            this.BreakButton.Name = "BreakButton";
            this.BreakButton.Size = new System.Drawing.Size(100, 28);
            this.BreakButton.TabIndex = 20;
            this.BreakButton.Text = "Break";
            this.BreakButton.UseVisualStyleBackColor = true;
            this.BreakButton.Click += new System.EventHandler(this.BreakButton_Click);
            // 
            // StopButton
            // 
            this.StopButton.Enabled = false;
            this.StopButton.Location = new System.Drawing.Point(895, 15);
            this.StopButton.Margin = new System.Windows.Forms.Padding(4);
            this.StopButton.Name = "StopButton";
            this.StopButton.Size = new System.Drawing.Size(100, 28);
            this.StopButton.TabIndex = 21;
            this.StopButton.Text = "Stop";
            this.StopButton.UseVisualStyleBackColor = true;
            this.StopButton.Click += new System.EventHandler(this.StopButton_Click);
            // 
            // BreakOnStartCheckBox
            // 
            this.BreakOnStartCheckBox.AutoSize = true;
            this.BreakOnStartCheckBox.Checked = true;
            this.BreakOnStartCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
            this.BreakOnStartCheckBox.Location = new System.Drawing.Point(1036, 20);
            this.BreakOnStartCheckBox.Margin = new System.Windows.Forms.Padding(4);
            this.BreakOnStartCheckBox.Name = "BreakOnStartCheckBox";
            this.BreakOnStartCheckBox.Size = new System.Drawing.Size(119, 21);
            this.BreakOnStartCheckBox.TabIndex = 22;
            this.BreakOnStartCheckBox.Text = "Break on start";
            this.BreakOnStartCheckBox.UseVisualStyleBackColor = true;
            // 
            // StepToInt3Button
            // 
            this.StepToInt3Button.Enabled = false;
            this.StepToInt3Button.Location = new System.Drawing.Point(1383, 15);
            this.StepToInt3Button.Margin = new System.Windows.Forms.Padding(4);
            this.StepToInt3Button.Name = "StepToInt3Button";
            this.StepToInt3Button.Size = new System.Drawing.Size(100, 28);
            this.StepToInt3Button.TabIndex = 23;
            this.StepToInt3Button.Text = "Step to Int3";
            this.StepToInt3Button.UseVisualStyleBackColor = true;
            this.StepToInt3Button.Click += new System.EventHandler(this.StepToInt3Button_Click);
            // 
            // StepNextILButton
            // 
            this.StepNextILButton.Enabled = false;
            this.StepNextILButton.Location = new System.Drawing.Point(1491, 50);
            this.StepNextILButton.Margin = new System.Windows.Forms.Padding(4);
            this.StepNextILButton.Name = "StepNextILButton";
            this.StepNextILButton.Size = new System.Drawing.Size(100, 28);
            this.StepNextILButton.TabIndex = 24;
            this.StepNextILButton.Text = "Step Next IL";
            this.StepNextILButton.UseVisualStyleBackColor = true;
            this.StepNextILButton.Click += new System.EventHandler(this.StepNextILButton_Click);
            // 
            // LocalsTreeView
            // 
            treeListColumn1.AutoSizeMinSize = 0;
            treeListColumn1.Width = 50;
            treeListColumn2.AutoSizeMinSize = 0;
            treeListColumn2.Width = 125;
            treeListColumn3.AutoSizeMinSize = 0;
            treeListColumn3.Width = 200;
            this.LocalsTreeView.Columns.AddRange(new CommonTools.TreeListColumn[] {
            treeListColumn1,
            treeListColumn2,
            treeListColumn3});
            this.LocalsTreeView.Cursor = System.Windows.Forms.Cursors.Arrow;
            this.LocalsTreeView.Images = null;
            this.LocalsTreeView.Location = new System.Drawing.Point(1096, 603);
            this.LocalsTreeView.Margin = new System.Windows.Forms.Padding(4);
            this.LocalsTreeView.Name = "LocalsTreeView";
            this.LocalsTreeView.Size = new System.Drawing.Size(532, 271);
            this.LocalsTreeView.TabIndex = 25;
            this.LocalsTreeView.ViewOptions.Indent = 10;
            // 
            // ArgumentsTreeView
            // 
            treeListColumn4.AutoSizeMinSize = 0;
            treeListColumn4.Width = 50;
            treeListColumn5.AutoSizeMinSize = 0;
            treeListColumn5.Width = 125;
            treeListColumn6.AutoSizeMinSize = 0;
            treeListColumn6.Width = 200;
            this.ArgumentsTreeView.Columns.AddRange(new CommonTools.TreeListColumn[] {
            treeListColumn4,
            treeListColumn5,
            treeListColumn6});
            this.ArgumentsTreeView.Cursor = System.Windows.Forms.Cursors.Arrow;
            this.ArgumentsTreeView.Images = null;
            this.ArgumentsTreeView.Location = new System.Drawing.Point(556, 603);
            this.ArgumentsTreeView.Margin = new System.Windows.Forms.Padding(4);
            this.ArgumentsTreeView.Name = "ArgumentsTreeView";
            this.ArgumentsTreeView.Size = new System.Drawing.Size(532, 271);
            this.ArgumentsTreeView.TabIndex = 26;
            this.ArgumentsTreeView.ViewOptions.Indent = 10;
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(886, 56);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(109, 17);
            this.label9.TabIndex = 27;
            this.label9.Text = "Run to address:";
            // 
            // RunToAddressBox
            // 
            this.RunToAddressBox.Location = new System.Drawing.Point(1001, 54);
            this.RunToAddressBox.Maximum = new decimal(new int[] {
            -1,
            0,
            0,
            0});
            this.RunToAddressBox.Name = "RunToAddressBox";
            this.RunToAddressBox.Size = new System.Drawing.Size(120, 22);
            this.RunToAddressBox.TabIndex = 28;
            // 
            // GoButton
            // 
            this.GoButton.Location = new System.Drawing.Point(1127, 53);
            this.GoButton.Name = "GoButton";
            this.GoButton.Size = new System.Drawing.Size(75, 23);
            this.GoButton.TabIndex = 29;
            this.GoButton.Text = "Go";
            this.GoButton.UseVisualStyleBackColor = true;
            this.GoButton.Click += new System.EventHandler(this.GoButton_Click);
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1644, 895);
            this.Controls.Add(this.GoButton);
            this.Controls.Add(this.RunToAddressBox);
            this.Controls.Add(this.label9);
            this.Controls.Add(this.ArgumentsTreeView);
            this.Controls.Add(this.LocalsTreeView);
            this.Controls.Add(this.StepNextILButton);
            this.Controls.Add(this.StepToInt3Button);
            this.Controls.Add(this.BreakOnStartCheckBox);
            this.Controls.Add(this.StopButton);
            this.Controls.Add(this.BreakButton);
            this.Controls.Add(this.ASMBox);
            this.Controls.Add(this.StepNextButton);
            this.Controls.Add(this.label8);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.RegistersBox);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.CSBox);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.ContinueButton);
            this.Controls.Add(this.BuildPathBox);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.OutputBox);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.PipeBox);
            this.Controls.Add(this.StartButton);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Margin = new System.Windows.Forms.Padding(4);
            this.Name = "MainForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "FlingOS Kernel Debugger";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
            ((System.ComponentModel.ISupportInitialize)(this.CSBox)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.LocalsTreeView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ArgumentsTreeView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.RunToAddressBox)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     CommonTools.TreeListColumn treeListColumn1 = new CommonTools.TreeListColumn("name", "Name");
     CommonTools.TreeListColumn treeListColumn2 = new CommonTools.TreeListColumn("level", "Level");
     CommonTools.TreeListColumn treeListColumn3 = new CommonTools.TreeListColumn("entry", "Entry");
     CommonTools.TreeListColumn treeListColumn4 = new CommonTools.TreeListColumn("instructions", "Instructions");
     CommonTools.TreeListColumn treeListColumn5 = new CommonTools.TreeListColumn("allInstr", "All instructions");
     CommonTools.TreeListColumn treeListColumn6 = new CommonTools.TreeListColumn("visibleCount", "Visible Count");
     this.m_fill    = new System.Windows.Forms.Button();
     this.m_tree    = new TreeTestApp.TestTree();
     this.searchBox = new System.Windows.Forms.TextBox();
     ((System.ComponentModel.ISupportInitialize)(this.m_tree)).BeginInit();
     this.SuspendLayout();
     //
     // m_fill
     //
     this.m_fill.Location = new System.Drawing.Point(3, 4);
     this.m_fill.Name     = "m_fill";
     this.m_fill.Size     = new System.Drawing.Size(75, 23);
     this.m_fill.TabIndex = 1;
     this.m_fill.Text     = "Open";
     this.m_fill.UseVisualStyleBackColor = true;
     this.m_fill.Click += new System.EventHandler(this.m_tree.OnFill);
     //
     // m_tree
     //
     this.m_tree.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)));
     treeListColumn1.AutoSize                   = true;
     treeListColumn1.AutoSizeMinSize            = 140;
     treeListColumn1.Width                      = 150;
     treeListColumn2.AutoSizeMinSize            = 100;
     treeListColumn2.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleCenter;
     treeListColumn2.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     treeListColumn2.Width                      = 50;
     treeListColumn3.AutoSizeMinSize            = 0;
     treeListColumn3.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleCenter;
     treeListColumn3.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     treeListColumn3.Width                      = 70;
     treeListColumn4.AutoSizeMinSize            = 0;
     treeListColumn4.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn4.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn4.Width                      = 70;
     treeListColumn5.AutoSizeMinSize            = 0;
     treeListColumn5.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn5.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn5.Width                      = 100;
     treeListColumn6.AutoSizeMinSize            = 0;
     treeListColumn6.CellFormat.ForeColor       = System.Drawing.Color.DarkGreen;
     treeListColumn6.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn6.HeaderFormat.ForeColor     = System.Drawing.Color.Red;
     treeListColumn6.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn6.Width                      = 100;
     this.m_tree.Columns.AddRange(new CommonTools.TreeListColumn[] {
         treeListColumn1,
         treeListColumn2,
         treeListColumn3,
         treeListColumn4,
         treeListColumn5,
         treeListColumn6
     });
     this.m_tree.Cursor   = System.Windows.Forms.Cursors.Arrow;
     this.m_tree.Images   = null;
     this.m_tree.Location = new System.Drawing.Point(0, 33);
     this.m_tree.Name     = "m_tree";
     this.m_tree.Size     = new System.Drawing.Size(616, 267);
     this.m_tree.TabIndex = 0;
     this.m_tree.ViewOptions.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     //
     // searchBox
     //
     this.searchBox.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.searchBox.Location = new System.Drawing.Point(513, 7);
     this.searchBox.Name     = "searchBox";
     this.searchBox.Size     = new System.Drawing.Size(100, 20);
     this.searchBox.TabIndex = 2;
     this.searchBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.m_tree.OnSearch);
     //
     // TestTreeForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.searchBox);
     this.Controls.Add(this.m_fill);
     this.Controls.Add(this.m_tree);
     this.MinimumSize = new System.Drawing.Size(0, 300);
     this.Name        = "TestTreeForm";
     this.Size        = new System.Drawing.Size(616, 300);
     ((System.ComponentModel.ISupportInitialize)(this.m_tree)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #11
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(BTEditorControl));
     CommonTools.TreeListColumn treeListColumn1 = new CommonTools.TreeListColumn("Name", "Name");
     CommonTools.TreeListColumn treeListColumn2 = new CommonTools.TreeListColumn("Type", "Type");
     CommonTools.TreeListColumn treeListColumn3 = new CommonTools.TreeListColumn("Parameters", "Parameters");
     this.behaviorTreeCMS          = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.executeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStrip1            = new System.Windows.Forms.ToolStrip();
     this.newTSButton           = new System.Windows.Forms.ToolStripButton();
     this.loadTSButton          = new System.Windows.Forms.ToolStripButton();
     this.saveTSButton          = new System.Windows.Forms.ToolStripSplitButton();
     this.saveAsTSButton        = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1   = new System.Windows.Forms.ToolStripSeparator();
     this.executeTSButton       = new System.Windows.Forms.ToolStripButton();
     this.stopTSButton          = new System.Windows.Forms.ToolStripButton();
     this.entityComboBox        = new System.Windows.Forms.ToolStripComboBox();
     this.behaviorTreeImageList = new System.Windows.Forms.ImageList(this.components);
     this.propertyGrid1         = new System.Windows.Forms.PropertyGrid();
     this.splitContainer1       = new System.Windows.Forms.SplitContainer();
     this.behaviorTreeTL        = new CommonTools.TreeListView();
     this.behaviorTreeCMS.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.behaviorTreeTL)).BeginInit();
     this.SuspendLayout();
     //
     // behaviorTreeCMS
     //
     this.behaviorTreeCMS.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.executeToolStripMenuItem
     });
     this.behaviorTreeCMS.Name = "btEditorCMS";
     this.behaviorTreeCMS.Size = new System.Drawing.Size(115, 26);
     //
     // executeToolStripMenuItem
     //
     this.executeToolStripMenuItem.Name   = "executeToolStripMenuItem";
     this.executeToolStripMenuItem.Size   = new System.Drawing.Size(114, 22);
     this.executeToolStripMenuItem.Text   = "Execute";
     this.executeToolStripMenuItem.Click += new System.EventHandler(this.ExecuteToolStripMenuItem_Click);
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.newTSButton,
         this.loadTSButton,
         this.saveTSButton,
         this.toolStripSeparator1,
         this.executeTSButton,
         this.stopTSButton,
         this.entityComboBox
     });
     this.toolStrip1.Location = new System.Drawing.Point(0, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(809, 25);
     this.toolStrip1.TabIndex = 10;
     this.toolStrip1.Text     = "toolStrip1";
     //
     // newTSButton
     //
     this.newTSButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.newTSButton.Image                 = ((System.Drawing.Image)(resources.GetObject("newTSButton.Image")));
     this.newTSButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.newTSButton.Name   = "newTSButton";
     this.newTSButton.Size   = new System.Drawing.Size(23, 22);
     this.newTSButton.Text   = "New";
     this.newTSButton.Click += new System.EventHandler(this.NewTSButton_Click);
     //
     // loadTSButton
     //
     this.loadTSButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.loadTSButton.Image                 = ((System.Drawing.Image)(resources.GetObject("loadTSButton.Image")));
     this.loadTSButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.loadTSButton.Name   = "loadTSButton";
     this.loadTSButton.Size   = new System.Drawing.Size(23, 22);
     this.loadTSButton.Text   = "Load";
     this.loadTSButton.Click += new System.EventHandler(this.LoadTSButton_Click);
     //
     // saveTSButton
     //
     this.saveTSButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.saveTSButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.saveAsTSButton
     });
     this.saveTSButton.Image = ((System.Drawing.Image)(resources.GetObject("saveTSButton.Image")));
     this.saveTSButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.saveTSButton.Name         = "saveTSButton";
     this.saveTSButton.Size         = new System.Drawing.Size(32, 22);
     this.saveTSButton.Text         = "Save";
     this.saveTSButton.ButtonClick += new System.EventHandler(this.SaveTSButton_ButtonClick);
     //
     // saveAsTSButton
     //
     this.saveAsTSButton.Image  = ((System.Drawing.Image)(resources.GetObject("saveAsTSButton.Image")));
     this.saveAsTSButton.Name   = "saveAsTSButton";
     this.saveAsTSButton.Size   = new System.Drawing.Size(114, 22);
     this.saveAsTSButton.Text   = "Save As";
     this.saveAsTSButton.Click += new System.EventHandler(this.SaveAsTSButton_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
     //
     // executeTSButton
     //
     this.executeTSButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.executeTSButton.Image                 = ((System.Drawing.Image)(resources.GetObject("executeTSButton.Image")));
     this.executeTSButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.executeTSButton.Name        = "executeTSButton";
     this.executeTSButton.Size        = new System.Drawing.Size(23, 22);
     this.executeTSButton.Text        = "toolStripButton5";
     this.executeTSButton.ToolTipText = "Execute (F5)";
     this.executeTSButton.Click      += new System.EventHandler(this.executeTSButton_Click);
     //
     // stopTSButton
     //
     this.stopTSButton.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.stopTSButton.Image                 = ((System.Drawing.Image)(resources.GetObject("stopTSButton.Image")));
     this.stopTSButton.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.stopTSButton.Name        = "stopTSButton";
     this.stopTSButton.Size        = new System.Drawing.Size(23, 22);
     this.stopTSButton.Text        = "toolStripButton1";
     this.stopTSButton.ToolTipText = "Stop";
     this.stopTSButton.Click      += new System.EventHandler(this.stopTSButton_Click);
     //
     // entityComboBox
     //
     this.entityComboBox.Name = "entityComboBox";
     this.entityComboBox.Size = new System.Drawing.Size(200, 25);
     //
     // behaviorTreeImageList
     //
     this.behaviorTreeImageList.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("behaviorTreeImageList.ImageStream")));
     this.behaviorTreeImageList.TransparentColor = System.Drawing.Color.Transparent;
     this.behaviorTreeImageList.Images.SetKeyName(0, "action.png");
     this.behaviorTreeImageList.Images.SetKeyName(1, "composite.png");
     this.behaviorTreeImageList.Images.SetKeyName(2, "condition.png");
     this.behaviorTreeImageList.Images.SetKeyName(3, "decorator.png");
     this.behaviorTreeImageList.Images.SetKeyName(4, "trigger.png");
     //
     // propertyGrid1
     //
     this.propertyGrid1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid1.Location = new System.Drawing.Point(0, 0);
     this.propertyGrid1.Name     = "propertyGrid1";
     this.propertyGrid1.Size     = new System.Drawing.Size(227, 526);
     this.propertyGrid1.TabIndex = 20;
     //
     // splitContainer1
     //
     this.splitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 25);
     this.splitContainer1.Name     = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.behaviorTreeTL);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.propertyGrid1);
     this.splitContainer1.Size             = new System.Drawing.Size(809, 526);
     this.splitContainer1.SplitterDistance = 578;
     this.splitContainer1.TabIndex         = 21;
     //
     // behaviorTreeTL
     //
     this.behaviorTreeTL.AllowDrop   = true;
     treeListColumn1.AutoSizeMinSize = 0;
     treeListColumn1.Width           = 270;
     treeListColumn2.AutoSizeMinSize = 0;
     treeListColumn2.Width           = 90;
     treeListColumn3.AutoSizeMinSize = 0;
     treeListColumn3.Width           = 150;
     this.behaviorTreeTL.Columns.AddRange(new CommonTools.TreeListColumn[] {
         treeListColumn1,
         treeListColumn2,
         treeListColumn3
     });
     this.behaviorTreeTL.ContextMenuStrip      = this.behaviorTreeCMS;
     this.behaviorTreeTL.Cursor                = System.Windows.Forms.Cursors.VSplit;
     this.behaviorTreeTL.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.behaviorTreeTL.Images                = this.behaviorTreeImageList;
     this.behaviorTreeTL.Location              = new System.Drawing.Point(0, 0);
     this.behaviorTreeTL.Name                  = "behaviorTreeTL";
     this.behaviorTreeTL.RowOptions.ItemHeight = 26;
     this.behaviorTreeTL.Size                  = new System.Drawing.Size(578, 526);
     this.behaviorTreeTL.TabIndex              = 19;
     this.behaviorTreeTL.AfterSelect          += new System.Windows.Forms.TreeViewEventHandler(this.BehaviorTreeTL_AfterSelect);
     this.behaviorTreeTL.MouseUp              += new System.Windows.Forms.MouseEventHandler(this.BehaviorTreeTL_MouseUp);
     //
     // BTEditorControl
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.Controls.Add(this.splitContainer1);
     this.Controls.Add(this.toolStrip1);
     this.Name = "BTEditorControl";
     this.Size = new System.Drawing.Size(809, 551);
     this.behaviorTreeCMS.ResumeLayout(false);
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.behaviorTreeTL)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Beispiel #12
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     CommonTools.TreeListColumn treeListColumn1 = new CommonTools.TreeListColumn("name", "Name");
     CommonTools.TreeListColumn treeListColumn2 = new CommonTools.TreeListColumn("absoluteIndex", "Absolute Index");
     CommonTools.TreeListColumn treeListColumn3 = new CommonTools.TreeListColumn("visibleIndex", "Visible Index");
     CommonTools.TreeListColumn treeListColumn4 = new CommonTools.TreeListColumn("childCount", "Child Count");
     CommonTools.TreeListColumn treeListColumn5 = new CommonTools.TreeListColumn("totalChildCount", "Total Child Count");
     CommonTools.TreeListColumn treeListColumn6 = new CommonTools.TreeListColumn("visibleCount", "Visible Count");
     this.m_fill     = new System.Windows.Forms.Button();
     this.m_validate = new System.Windows.Forms.Button();
     this.m_tree     = new TreeTestApp.TestTree();
     ((System.ComponentModel.ISupportInitialize)(this.m_tree)).BeginInit();
     this.SuspendLayout();
     //
     // m_fill
     //
     this.m_fill.Location = new System.Drawing.Point(3, 4);
     this.m_fill.Name     = "m_fill";
     this.m_fill.Size     = new System.Drawing.Size(75, 23);
     this.m_fill.TabIndex = 1;
     this.m_fill.Text     = "Fill";
     this.m_fill.UseVisualStyleBackColor = true;
     this.m_fill.Click += new System.EventHandler(this.OnFill);
     //
     // m_validate
     //
     this.m_validate.Location = new System.Drawing.Point(84, 4);
     this.m_validate.Name     = "m_validate";
     this.m_validate.Size     = new System.Drawing.Size(75, 23);
     this.m_validate.TabIndex = 1;
     this.m_validate.Text     = "Validate";
     this.m_validate.UseVisualStyleBackColor = true;
     this.m_validate.Click += new System.EventHandler(this.OnValidate);
     //
     // m_tree
     //
     this.m_tree.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)));
     treeListColumn1.AutoSizeMinSize            = 100;
     treeListColumn1.Width                      = 164;
     treeListColumn2.AutoSizeMinSize            = 100;
     treeListColumn2.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleCenter;
     treeListColumn2.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     treeListColumn2.Width                      = 100;
     treeListColumn3.AutoSizeMinSize            = 0;
     treeListColumn3.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn3.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn3.Width                      = 100;
     treeListColumn4.AutoSizeMinSize            = 0;
     treeListColumn4.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn4.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     treeListColumn4.Width                      = 100;
     treeListColumn5.AutoSizeMinSize            = 0;
     treeListColumn5.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn5.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn5.Width                      = 100;
     treeListColumn6.AutoSizeMinSize            = 0;
     treeListColumn6.CellFormat.ForeColor       = System.Drawing.Color.DarkGreen;
     treeListColumn6.CellFormat.TextAlignment   = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn6.HeaderFormat.ForeColor     = System.Drawing.Color.Red;
     treeListColumn6.HeaderFormat.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
     treeListColumn6.Width                      = 100;
     this.m_tree.Columns.AddRange(new CommonTools.TreeListColumn[] {
         treeListColumn1,
         treeListColumn2,
         treeListColumn3,
         treeListColumn4,
         treeListColumn5,
         treeListColumn6
     });
     this.m_tree.Cursor   = System.Windows.Forms.Cursors.Arrow;
     this.m_tree.Images   = null;
     this.m_tree.Location = new System.Drawing.Point(3, 33);
     this.m_tree.Name     = "m_tree";
     this.m_tree.Size     = new System.Drawing.Size(610, 239);
     this.m_tree.TabIndex = 0;
     this.m_tree.ViewOptions.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     //
     // TestTreeForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.m_validate);
     this.Controls.Add(this.m_fill);
     this.Controls.Add(this.m_tree);
     this.Name = "TestTreeForm";
     this.Size = new System.Drawing.Size(616, 275);
     ((System.ComponentModel.ISupportInitialize)(this.m_tree)).EndInit();
     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(BTEditorControl2));
            CommonTools.TreeListColumn treeListColumn1 = new CommonTools.TreeListColumn("Name", "Name");
            CommonTools.TreeListColumn treeListColumn2 = new CommonTools.TreeListColumn("Type", "Type");
            CommonTools.TreeListColumn treeListColumn3 = new CommonTools.TreeListColumn("Parameters", "Parameters");
            this.behaviorTreeCMS = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.executeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.saveTSButton = new System.Windows.Forms.ToolStripSplitButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.executeTSButton = new System.Windows.Forms.ToolStripButton();
            this.stopTSButton = new System.Windows.Forms.ToolStripButton();
            this.entityComboBox = new System.Windows.Forms.ToolStripComboBox();
            this.behaviorTreeTL = new CommonTools.TreeListView();
            this.behaviorTreeImageList = new System.Windows.Forms.ImageList(this.components);
            this.behaviorTreeCMS.SuspendLayout();
            this.toolStrip1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.behaviorTreeTL)).BeginInit();
            this.SuspendLayout();
            // 
            // behaviorTreeCMS
            // 
            this.behaviorTreeCMS.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.executeToolStripMenuItem});
            this.behaviorTreeCMS.Name = "btEditorCMS";
            this.behaviorTreeCMS.Size = new System.Drawing.Size(115, 26);
            // 
            // executeToolStripMenuItem
            // 
            this.executeToolStripMenuItem.Name = "executeToolStripMenuItem";
            this.executeToolStripMenuItem.Size = new System.Drawing.Size(114, 22);
            this.executeToolStripMenuItem.Text = "Execute";
            this.executeToolStripMenuItem.Click += new System.EventHandler(this.executeToolStripMenuItem_Click);
            // 
            // toolStrip1
            // 
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.saveTSButton,
            this.toolStripSeparator1,
            this.executeTSButton,
            this.stopTSButton,
            this.entityComboBox});
            this.toolStrip1.Location = new System.Drawing.Point(0, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(766, 25);
            this.toolStrip1.TabIndex = 10;
            this.toolStrip1.Text = "toolStrip1";
            // 
            // saveTSButton
            // 
            this.saveTSButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.saveTSButton.Image = ((System.Drawing.Image)(resources.GetObject("saveTSButton.Image")));
            this.saveTSButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.saveTSButton.Name = "saveTSButton";
            this.saveTSButton.Size = new System.Drawing.Size(32, 22);
            this.saveTSButton.Text = "Save";
            this.saveTSButton.ButtonClick += new System.EventHandler(this.saveTSButton_ButtonClick);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            // 
            // executeTSButton
            // 
            this.executeTSButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.executeTSButton.Image = ((System.Drawing.Image)(resources.GetObject("executeTSButton.Image")));
            this.executeTSButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.executeTSButton.Name = "executeTSButton";
            this.executeTSButton.Size = new System.Drawing.Size(23, 22);
            this.executeTSButton.Text = "toolStripButton5";
            this.executeTSButton.ToolTipText = "Execute (F5)";
            this.executeTSButton.Click += new System.EventHandler(this.executeTSButton_Click);
            // 
            // stopTSButton
            // 
            this.stopTSButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.stopTSButton.Image = ((System.Drawing.Image)(resources.GetObject("stopTSButton.Image")));
            this.stopTSButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.stopTSButton.Name = "stopTSButton";
            this.stopTSButton.Size = new System.Drawing.Size(23, 22);
            this.stopTSButton.Text = "toolStripButton1";
            this.stopTSButton.ToolTipText = "Stop";
            this.stopTSButton.Click += new System.EventHandler(this.stopTSButton_Click);
            // 
            // entityComboBox
            // 
            this.entityComboBox.Name = "entityComboBox";
            this.entityComboBox.Size = new System.Drawing.Size(200, 25);
            // 
            // behaviorTreeTL
            // 
            this.behaviorTreeTL.AllowDrop = true;
            treeListColumn1.AutoSizeMinSize = 0;
            treeListColumn1.Width = 260;
            treeListColumn2.AutoSizeMinSize = 0;
            treeListColumn2.Width = 82;
            treeListColumn3.AutoSizeMinSize = 0;
            treeListColumn3.Width = 212;
            this.behaviorTreeTL.Columns.AddRange(new CommonTools.TreeListColumn[] {
            treeListColumn1,
            treeListColumn2,
            treeListColumn3});
            this.behaviorTreeTL.ContextMenuStrip = this.behaviorTreeCMS;
            this.behaviorTreeTL.Cursor = System.Windows.Forms.Cursors.VSplit;
            this.behaviorTreeTL.Dock = System.Windows.Forms.DockStyle.Fill;
            this.behaviorTreeTL.Images = this.behaviorTreeImageList;
            this.behaviorTreeTL.Location = new System.Drawing.Point(0, 25);
            this.behaviorTreeTL.Name = "behaviorTreeTL";
            this.behaviorTreeTL.Size = new System.Drawing.Size(766, 529);
            this.behaviorTreeTL.TabIndex = 19;
            this.behaviorTreeTL.MouseDown += new System.Windows.Forms.MouseEventHandler(this.behaviorTreeTL_MouseDown);
            this.behaviorTreeTL.MouseUp += new System.Windows.Forms.MouseEventHandler(this.behaviorTreeTL_MouseUp);
            // 
            // behaviorTreeImageList
            // 
            this.behaviorTreeImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("behaviorTreeImageList.ImageStream")));
            this.behaviorTreeImageList.TransparentColor = System.Drawing.Color.Transparent;
            this.behaviorTreeImageList.Images.SetKeyName(0, "action.png");
            this.behaviorTreeImageList.Images.SetKeyName(1, "composite.png");
            this.behaviorTreeImageList.Images.SetKeyName(2, "condition.png");
            this.behaviorTreeImageList.Images.SetKeyName(3, "decorator.png");
            this.behaviorTreeImageList.Images.SetKeyName(4, "trigger.png");
            // 
            // BTEditorControl2
            // 
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
            this.Controls.Add(this.behaviorTreeTL);
            this.Controls.Add(this.toolStrip1);
            this.Name = "BTEditorControl2";
            this.Size = new System.Drawing.Size(766, 554);
            this.behaviorTreeCMS.ResumeLayout(false);
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.behaviorTreeTL)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }