protected GlossaryItemTabPage(GlossaryManagerUI ui) : base() { this.ui = ui; var splitContainer = new System.Windows.Forms.SplitContainer() { Orientation = Orientation.Horizontal, Size = new System.Drawing.Size(500, 500), FixedPanel = FixedPanel.None, Name = "splitContainer", SplitterDistance = 200, SplitterWidth = 6, Panel1MinSize = 50, Panel2MinSize = 100, }; // set here else SplitterDistance causes issues splitContainer.Dock = DockStyle.Fill; splitContainer.SuspendLayout(); splitContainer.SplitterMoved += splitterMoved; splitContainer.SplitterMoving += splitterMoving; this.Controls.Add(splitContainer); this.createList(); this.createForm(); splitContainer.Panel1.Controls.Add(this.itemsList); splitContainer.Panel2.Controls.Add(this.form); splitContainer.Panel2.AutoScroll = true; splitContainer.ResumeLayout(false); this.addToolbar(); this.deleteButton.Enabled = false; this.exportButton.Enabled = false; this.ui.NewContext += new NewContextHandler(this.handleContextChange); }
private void InitializeComponent() { splitContainer1 = new System.Windows.Forms.SplitContainer(); splitContainer1.SuspendLayout(); SuspendLayout(); // Place a basic SplitContainer control onto Form1. splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; splitContainer1.Location = new System.Drawing.Point(0, 0); splitContainer1.Name = "splitContainer1"; splitContainer1.Size = new System.Drawing.Size(292, 273); splitContainer1.SplitterDistance = 52; splitContainer1.SplitterWidth = 6; splitContainer1.TabIndex = 0; splitContainer1.Text = "splitContainer1"; // Add the event handler for the SplitterMoved event. splitContainer1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(splitContainer1_SplitterMoved); // Add the event handler for the SplitterMoving event. splitContainer1.SplitterMoving += new System.Windows.Forms.SplitterCancelEventHandler(splitContainer1_SplitterMoving); // This is the left panel of the vertical SplitContainer control. splitContainer1.Panel1.Name = "splitterPanel1"; // This is the right panel of the vertical SplitContainer control. splitContainer1.Panel2.Name = "splitterPanel2"; // Lay out the basic properties of the form. ClientSize = new System.Drawing.Size(292, 273); Controls.Add(splitContainer1); Name = "Form1"; Text = "Form1"; splitContainer1.ResumeLayout(false); ResumeLayout(false); }
private void InitializeComponent() { components = new Container(); var componentResourceManager = new ComponentResourceManager(typeof (BCForm)); label1 = new Label(); listBox1 = new ListBox(); label3 = new Label(); tableLayoutPanel1 = new TableLayoutPanel(); label4 = new Label(); label5 = new Label(); label6 = new Label(); label7 = new Label(); label8 = new Label(); label9 = new Label(); p1 = new PictureBox(); p2 = new PictureBox(); p3 = new PictureBox(); p4 = new PictureBox(); p5 = new PictureBox(); p6 = new PictureBox(); toolTip1 = new ToolTip(components); textBoxLog = new TextBox(); button1 = new Button(); splitContainer1 = new SplitContainer(); splitContainer2 = new SplitContainer(); openFileDialog1 = new OpenFileDialog(); linkLabel1 = new LinkLabel(); tableLayoutPanel1.SuspendLayout(); ((ISupportInitialize) p1).BeginInit(); ((ISupportInitialize) p2).BeginInit(); ((ISupportInitialize) p3).BeginInit(); ((ISupportInitialize) p4).BeginInit(); ((ISupportInitialize) p5).BeginInit(); ((ISupportInitialize) p6).BeginInit(); splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); splitContainer2.Panel1.SuspendLayout(); splitContainer2.Panel2.SuspendLayout(); splitContainer2.SuspendLayout(); base.SuspendLayout(); label1.AutoSize = true; label1.Location = new Point(12, 9); label1.Name = "label1"; label1.Size = new Size(191, 14); label1.TabIndex = 0; label1.Text = "Choose one from below presets:"; listBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); listBox1.FormattingEnabled = true; listBox1.IntegralHeight = false; listBox1.ItemHeight = 14; listBox1.Location = new Point(12, 26); listBox1.Name = "listBox1"; listBox1.Size = new Size(194, 480); listBox1.TabIndex = 1; listBox1.SelectedIndexChanged += listBox1_SelectedIndexChanged; label3.AutoSize = true; label3.Location = new Point(3, 9); label3.Name = "label3"; label3.Size = new Size(187, 14); label3.TabIndex = 3; label3.Text = "Display the status of bound files:"; tableLayoutPanel1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); tableLayoutPanel1.AutoSizeMode = AutoSizeMode.GrowAndShrink; tableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; tableLayoutPanel1.ColumnCount = 3; tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle()); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); tableLayoutPanel1.Controls.Add(label4, 0, 0); tableLayoutPanel1.Controls.Add(label5, 1, 0); tableLayoutPanel1.Controls.Add(label6, 2, 0); tableLayoutPanel1.Controls.Add(label7, 0, 1); tableLayoutPanel1.Controls.Add(label8, 0, 2); tableLayoutPanel1.Controls.Add(label9, 0, 3); tableLayoutPanel1.Controls.Add(p1, 1, 1); tableLayoutPanel1.Controls.Add(p2, 2, 1); tableLayoutPanel1.Controls.Add(p3, 1, 2); tableLayoutPanel1.Controls.Add(p4, 2, 2); tableLayoutPanel1.Controls.Add(p5, 1, 3); tableLayoutPanel1.Controls.Add(p6, 2, 3); tableLayoutPanel1.Location = new Point(6, 26); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 4; tableLayoutPanel1.RowStyles.Add(new RowStyle()); tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f)); tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f)); tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33333f)); tableLayoutPanel1.Size = new Size(452, 404); tableLayoutPanel1.TabIndex = 4; label4.AutoSize = true; label4.Location = new Point(4, 1); label4.Name = "label4"; label4.Size = new Size(13, 14); label4.TabIndex = 0; label4.Text = " "; label5.AutoSize = true; label5.Location = new Point(76, 1); label5.Name = "label5"; label5.Size = new Size(37, 14); label5.TabIndex = 1; label5.Text = ".mdlx"; label6.AutoSize = true; label6.Location = new Point(265, 1); label6.Name = "label6"; label6.Size = new Size(39, 14); label6.TabIndex = 2; label6.Text = ".mset"; label7.AutoSize = true; label7.Location = new Point(4, 16); label7.Name = "label7"; label7.Size = new Size(34, 14); label7.TabIndex = 3; label7.Text = "Body"; label8.AutoSize = true; label8.Location = new Point(4, 145); label8.Name = "label8"; label8.Size = new Size(65, 14); label8.TabIndex = 4; label8.Text = "Right hand"; label9.AutoSize = true; label9.Location = new Point(4, 274); label9.Name = "label9"; label9.Size = new Size(59, 14); label9.TabIndex = 5; label9.Text = "Left hand"; p1.Dock = DockStyle.Fill; p1.Image = (Image) componentResourceManager.GetObject("p1.Image"); p1.Location = new Point(76, 19); p1.Name = "p1"; p1.Size = new Size(182, 122); p1.SizeMode = PictureBoxSizeMode.CenterImage; p1.TabIndex = 6; p1.TabStop = false; p1.DoubleClick += p1_DoubleClick; p1.Click += p1_Click; p1.DragDrop += p1_DragDrop; p1.DragEnter += p1_DragEnter; p2.Dock = DockStyle.Fill; p2.Image = (Image) componentResourceManager.GetObject("p2.Image"); p2.Location = new Point(265, 19); p2.Name = "p2"; p2.Size = new Size(183, 122); p2.SizeMode = PictureBoxSizeMode.CenterImage; p2.TabIndex = 7; p2.TabStop = false; p2.DoubleClick += p1_DoubleClick; p2.DragDrop += p1_DragDrop; p2.DragEnter += p1_DragEnter; p3.Dock = DockStyle.Fill; p3.Image = (Image) componentResourceManager.GetObject("p3.Image"); p3.Location = new Point(76, 148); p3.Name = "p3"; p3.Size = new Size(182, 122); p3.SizeMode = PictureBoxSizeMode.CenterImage; p3.TabIndex = 8; p3.TabStop = false; p3.DoubleClick += p1_DoubleClick; p3.DragDrop += p1_DragDrop; p3.DragEnter += p1_DragEnter; p4.Dock = DockStyle.Fill; p4.Image = (Image) componentResourceManager.GetObject("p4.Image"); p4.Location = new Point(265, 148); p4.Name = "p4"; p4.Size = new Size(183, 122); p4.SizeMode = PictureBoxSizeMode.CenterImage; p4.TabIndex = 9; p4.TabStop = false; p4.DoubleClick += p1_DoubleClick; p4.DragDrop += p1_DragDrop; p4.DragEnter += p1_DragEnter; p5.Dock = DockStyle.Fill; p5.Image = (Image) componentResourceManager.GetObject("p5.Image"); p5.Location = new Point(76, 277); p5.Name = "p5"; p5.Size = new Size(182, 123); p5.SizeMode = PictureBoxSizeMode.CenterImage; p5.TabIndex = 10; p5.TabStop = false; p5.DoubleClick += p1_DoubleClick; p5.DragDrop += p1_DragDrop; p5.DragEnter += p1_DragEnter; p6.Dock = DockStyle.Fill; p6.Image = (Image) componentResourceManager.GetObject("p6.Image"); p6.Location = new Point(265, 277); p6.Name = "p6"; p6.Size = new Size(183, 123); p6.SizeMode = PictureBoxSizeMode.CenterImage; p6.TabIndex = 11; p6.TabStop = false; p6.DoubleClick += p1_DoubleClick; p6.DragDrop += p1_DragDrop; p6.DragEnter += p1_DragEnter; toolTip1.IsBalloon = true; textBoxLog.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); textBoxLog.BorderStyle = BorderStyle.None; textBoxLog.Location = new Point(125, 3); textBoxLog.Multiline = true; textBoxLog.Name = "textBoxLog"; textBoxLog.ReadOnly = true; textBoxLog.Size = new Size(329, 48); textBoxLog.TabIndex = 6; toolTip1.SetToolTip(textBoxLog, "Log message goes here"); button1.FlatStyle = FlatStyle.Flat; button1.Location = new Point(6, 3); button1.Name = "button1"; button1.Size = new Size(113, 44); button1.TabIndex = 5; button1.Text = "Back to viewer"; button1.UseVisualStyleBackColor = true; button1.Click += button1_Click; splitContainer1.Dock = DockStyle.Fill; splitContainer1.FixedPanel = FixedPanel.Panel1; splitContainer1.Location = new Point(0, 0); splitContainer1.Name = "splitContainer1"; splitContainer1.Panel1.Controls.Add(label1); splitContainer1.Panel1.Controls.Add(listBox1); splitContainer1.Panel2.Controls.Add(splitContainer2); splitContainer1.Size = new Size(693, 518); splitContainer1.SplitterDistance = 218; splitContainer1.SplitterWidth = 6; splitContainer1.TabIndex = 7; splitContainer2.Dock = DockStyle.Fill; splitContainer2.FixedPanel = FixedPanel.Panel2; splitContainer2.Location = new Point(0, 0); splitContainer2.Name = "splitContainer2"; splitContainer2.Orientation = Orientation.Horizontal; splitContainer2.Panel1.Controls.Add(label3); splitContainer2.Panel1.Controls.Add(tableLayoutPanel1); splitContainer2.Panel2.Controls.Add(linkLabel1); splitContainer2.Panel2.Controls.Add(textBoxLog); splitContainer2.Panel2.Controls.Add(button1); splitContainer2.Size = new Size(469, 518); splitContainer2.SplitterDistance = 433; splitContainer2.SplitterWidth = 6; splitContainer2.TabIndex = 5; linkLabel1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left); linkLabel1.AutoSize = true; linkLabel1.ForeColor = SystemColors.ButtonShadow; linkLabel1.LinkArea = new LinkArea(54, 37); linkLabel1.Location = new Point(6, 54); linkLabel1.Name = "linkLabel1"; linkLabel1.Size = new Size(504, 18); linkLabel1.TabIndex = 7; linkLabel1.TabStop = true; linkLabel1.Text = "Emoticons are taken from wikipedia. Thanks wikipedia! http://en.wikipedia.org/wiki/Emoticon"; linkLabel1.UseCompatibleTextRendering = true; linkLabel1.LinkClicked += linkLabel1_LinkClicked; base.AutoScaleDimensions = new SizeF(7f, 14f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(693, 518); base.Controls.Add(splitContainer1); Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); base.Name = "BCForm"; base.StartPosition = FormStartPosition.CenterScreen; Text = "Bind controller"; base.Load += BCForm_Load; tableLayoutPanel1.ResumeLayout(false); tableLayoutPanel1.PerformLayout(); ((ISupportInitialize) p1).EndInit(); ((ISupportInitialize) p2).EndInit(); ((ISupportInitialize) p3).EndInit(); ((ISupportInitialize) p4).EndInit(); ((ISupportInitialize) p5).EndInit(); ((ISupportInitialize) p6).EndInit(); splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel1.PerformLayout(); splitContainer1.Panel2.ResumeLayout(false); splitContainer1.ResumeLayout(false); splitContainer2.Panel1.ResumeLayout(false); splitContainer2.Panel1.PerformLayout(); splitContainer2.Panel2.ResumeLayout(false); splitContainer2.Panel2.PerformLayout(); splitContainer2.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { splitContainer1 = new System.Windows.Forms.SplitContainer(); treeView1 = new System.Windows.Forms.TreeView(); splitContainer2 = new System.Windows.Forms.SplitContainer(); listView1 = new System.Windows.Forms.ListView(); listView2 = new System.Windows.Forms.ListView(); splitContainer1.SuspendLayout(); splitContainer2.SuspendLayout(); SuspendLayout(); // Basic SplitContainer properties. // This is a vertical splitter that moves in 10-pixel increments. // This splitter needs no explicit Orientation property because Vertical is the default. splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; splitContainer1.ForeColor = System.Drawing.SystemColors.Control; splitContainer1.Location = new System.Drawing.Point(0, 0); splitContainer1.Name = "splitContainer1"; // You can drag the splitter no nearer than 30 pixels from the left edge of the container. splitContainer1.Panel1MinSize = 30; // You can drag the splitter no nearer than 20 pixels from the right edge of the container. splitContainer1.Panel2MinSize = 20; splitContainer1.Size = new System.Drawing.Size(292, 273); splitContainer1.SplitterDistance = 79; // This splitter moves in 10-pixel increments. splitContainer1.SplitterIncrement = 10; splitContainer1.SplitterWidth = 6; // splitContainer1 is the first control in the tab order. splitContainer1.TabIndex = 0; splitContainer1.Text = "splitContainer1"; // When the splitter moves, the cursor changes shape. splitContainer1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(splitContainer1_SplitterMoved); splitContainer1.SplitterMoving += new System.Windows.Forms.SplitterCancelEventHandler(splitContainer1_SplitterMoving); // Add a TreeView control to the left panel. splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.Control; // Add a TreeView control to Panel1. splitContainer1.Panel1.Controls.Add(treeView1); splitContainer1.Panel1.Name = "splitterPanel1"; // Controls placed on Panel1 support right-to-left fonts. splitContainer1.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; // Add a SplitContainer to the right panel. splitContainer1.Panel2.Controls.Add(splitContainer2); splitContainer1.Panel2.Name = "splitterPanel2"; // This TreeView control is in Panel1 of splitContainer1. treeView1.Dock = System.Windows.Forms.DockStyle.Fill; treeView1.ForeColor = System.Drawing.SystemColors.InfoText; treeView1.ImageIndex = -1; treeView1.Location = new System.Drawing.Point(0, 0); treeView1.Name = "treeView1"; treeView1.SelectedImageIndex = -1; treeView1.Size = new System.Drawing.Size(79, 273); // treeView1 is the second control in the tab order. treeView1.TabIndex = 1; // Basic SplitContainer properties. // This is a horizontal splitter whose top and bottom panels are ListView controls. The top panel is fixed. splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; // The top panel remains the same size when the form is resized. splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; splitContainer2.Location = new System.Drawing.Point(0, 0); splitContainer2.Name = "splitContainer2"; // Create the horizontal splitter. splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; splitContainer2.Size = new System.Drawing.Size(207, 273); splitContainer2.SplitterDistance = 125; splitContainer2.SplitterWidth = 6; // splitContainer2 is the third control in the tab order. splitContainer2.TabIndex = 2; splitContainer2.Text = "splitContainer2"; // This splitter panel contains the top ListView control. splitContainer2.Panel1.Controls.Add(listView1); splitContainer2.Panel1.Name = "splitterPanel3"; // This splitter panel contains the bottom ListView control. splitContainer2.Panel2.Controls.Add(listView2); splitContainer2.Panel2.Name = "splitterPanel4"; // This ListView control is in the top panel of splitContainer2. listView1.Dock = System.Windows.Forms.DockStyle.Fill; listView1.Location = new System.Drawing.Point(0, 0); listView1.Name = "listView1"; listView1.Size = new System.Drawing.Size(207, 125); // listView1 is the fourth control in the tab order. listView1.TabIndex = 3; // This ListView control is in the bottom panel of splitContainer2. listView2.Dock = System.Windows.Forms.DockStyle.Fill; listView2.Location = new System.Drawing.Point(0, 0); listView2.Name = "listView2"; listView2.Size = new System.Drawing.Size(207, 142); // listView2 is the fifth control in the tab order. listView2.TabIndex = 4; // These are basic properties of the form. ClientSize = new System.Drawing.Size(292, 273); Controls.Add(splitContainer1); Name = "Form1"; Text = "Form1"; splitContainer1.ResumeLayout(false); splitContainer2.ResumeLayout(false); ResumeLayout(false); }
private void InitializeComponent() { playerListMapSplitContainer = new SplitContainer(); playerBoxSearchBarContainer = new Panel(); playerBox = new PlayerListControl(); searchBarContainer = new TableLayoutPanel(); playerSearchBox = new ZklTextBox(); sendBox = new SendBox(); topicPanel = new Panel(); hideButton = new BitmapButton(); topicBox = new ChatBox(); ChatBox = new ChatBox(); splitContainer1 = new ZkSplitContainer(); ((ISupportInitialize)playerListMapSplitContainer).BeginInit(); playerListMapSplitContainer.Panel1.SuspendLayout(); playerListMapSplitContainer.SuspendLayout(); playerBoxSearchBarContainer.SuspendLayout(); searchBarContainer.SuspendLayout(); topicPanel.SuspendLayout(); ((ISupportInitialize)splitContainer1).BeginInit(); splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); SuspendLayout(); // // playerListMapSplitContainer // playerListMapSplitContainer.BackColor = Color.DimGray; playerListMapSplitContainer.Dock = DockStyle.Fill; playerListMapSplitContainer.Location = new Point(0, 0); playerListMapSplitContainer.Margin = new Padding(2); playerListMapSplitContainer.Name = "playerListMapSplitContainer"; playerListMapSplitContainer.Orientation = Orientation.Horizontal; // // playerListMapSplitContainer.Panel1 // playerListMapSplitContainer.Panel1.Controls.Add(playerBoxSearchBarContainer); // // playerListMapSplitContainer.Panel2 // playerListMapSplitContainer.Panel2.AutoScroll = true; playerListMapSplitContainer.Size = new Size(326, 793); playerListMapSplitContainer.SplitterDistance = 565; playerListMapSplitContainer.SplitterWidth = 3; playerListMapSplitContainer.TabIndex = 0; playerListMapSplitContainer.SplitterMoved += new SplitterEventHandler(playerListMapSplitContainer_SplitterMoved); // // playerBoxSearchBarContainer // playerBoxSearchBarContainer.AutoSizeMode = AutoSizeMode.GrowAndShrink; playerBoxSearchBarContainer.Controls.Add(playerBox); playerBoxSearchBarContainer.Controls.Add(searchBarContainer); playerBoxSearchBarContainer.Dock = DockStyle.Fill; playerBoxSearchBarContainer.Location = new Point(0, 0); playerBoxSearchBarContainer.Name = "playerBoxSearchBarContainer"; playerBoxSearchBarContainer.Size = new Size(326, 565); playerBoxSearchBarContainer.TabIndex = 2; // // playerBox // playerBox.BackColor = Color.DimGray; playerBox.Dock = DockStyle.Fill; playerBox.ForeColor = Color.White; playerBox.HoverItem = null; playerBox.IsBattle = false; playerBox.IsSorted = false; playerBox.Location = new Point(0, 24); playerBox.Name = "playerBox"; playerBox.SelectedItem = null; playerBox.Size = new Size(326, 541); playerBox.TabIndex = 1; // // searchBarContainer // searchBarContainer.ColumnCount = 2; searchBarContainer.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize, 20F)); searchBarContainer.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 20F)); searchBarContainer.Controls.Add(playerSearchBox, 1, 0); searchBarContainer.Dock = DockStyle.Top; searchBarContainer.Location = new Point(0, 0); searchBarContainer.Name = "searchBarContainer"; searchBarContainer.RowCount = 1; searchBarContainer.RowStyles.Add(new RowStyle(SizeType.Absolute, 25F)); searchBarContainer.Size = new Size(326, 30); searchBarContainer.AutoSize = false; searchBarContainer.TabIndex = 0; // // playerSearchBox // playerSearchBox.Anchor = AnchorStyles.Left | AnchorStyles.Top; playerSearchBox.Location = new Point(23, 22); playerSearchBox.Name = "playerSearchBox"; playerSearchBox.Size = new Size(300, 20); playerSearchBox.Margin = new Padding(0); playerSearchBox.TabIndex = 0; playerSearchBox.Font = Config.GeneralFontSmall; playerSearchBox.TextChanged += new EventHandler(playerSearchBox_TextChanged); // // sendBox // sendBox.Dock = DockStyle.Bottom; sendBox.Font = Config.GeneralFont; sendBox.ForeColor = Color.White; sendBox.Location = new Point(0, 765); sendBox.Multiline = true; sendBox.Name = "sendBox"; sendBox.Size = new Size(800, 28); sendBox.TabIndex = 0; sendBox.WordWrap = false; // // topicPanel // topicPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; topicPanel.Controls.Add(hideButton); topicPanel.Controls.Add(topicBox); topicPanel.Dock = DockStyle.Top; topicPanel.Location = new Point(0, 0); topicPanel.Margin = new Padding(0); topicPanel.Name = "topicPanel"; topicPanel.Size = new Size(800, 0); topicPanel.TabIndex = 3; // // hideButton // hideButton.Anchor = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right); hideButton.BackColor = Color.Transparent; hideButton.ButtonStyle = FrameBorderRenderer.StyleType.DarkHive; hideButton.Cursor = Cursors.Hand; hideButton.FlatStyle = FlatStyle.Flat; hideButton.ForeColor = Color.White; hideButton.Location = new Point(711, -29); hideButton.Name = "hideButton"; hideButton.Size = new Size(75, 23); hideButton.SoundType = SoundPalette.SoundType.Click; hideButton.TabIndex = 3; hideButton.Text = "Hide"; hideButton.UseVisualStyleBackColor = true; hideButton.Click += new EventHandler(hideButton_Click); // // topicBox // topicBox.BackColor = Color.FromArgb((int)(byte)0, (int)(byte)30, (int)(byte)40); topicBox.ChatBackgroundColor = 0; topicBox.DefaultTooltip = null; topicBox.Dock = DockStyle.Fill; topicBox.Font = Config.GeneralFontBig; topicBox.HideScroll = false; topicBox.IRCForeColor = 0; topicBox.LineHighlight = null; topicBox.Location = new Point(0, 0); topicBox.Name = "topicBox"; topicBox.NoColorMode = false; topicBox.ShowHistory = true; topicBox.ShowJoinLeave = false; topicBox.ShowUnreadLine = true; topicBox.SingleLine = false; topicBox.Size = new Size(800, 0); topicBox.TabIndex = 2; topicBox.TextFilter = null; // // ChatBox // ChatBox.BackColor = Color.DimGray; ChatBox.ChatBackgroundColor = 0; ChatBox.DefaultTooltip = null; ChatBox.Dock = DockStyle.Fill; ChatBox.Font = Config.GeneralFont; ChatBox.ForeColor = Color.White; ChatBox.HideScroll = false; ChatBox.IRCForeColor = 0; ChatBox.LineHighlight = null; ChatBox.Location = new Point(0, 0); ChatBox.Name = "ChatBox"; ChatBox.NoColorMode = false; ChatBox.ShowHistory = true; ChatBox.ShowJoinLeave = false; ChatBox.ShowUnreadLine = true; ChatBox.SingleLine = false; ChatBox.Size = new Size(800, 765); ChatBox.TabIndex = 1; ChatBox.TextFilter = null; // // splitContainer1 // splitContainer1.BackColor = Color.Transparent; splitContainer1.Dock = DockStyle.Fill; splitContainer1.Location = new Point(0, 0); splitContainer1.Margin = new Padding(0); splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // splitContainer1.Panel1.Controls.Add(ChatBox); splitContainer1.Panel1.Controls.Add(topicPanel); splitContainer1.Panel1.Controls.Add(sendBox); // // splitContainer1.Panel2 // splitContainer1.Panel2.Controls.Add(playerListMapSplitContainer); splitContainer1.Size = new Size(1130, 793); splitContainer1.SplitterDistance = 800; splitContainer1.TabIndex = 0; splitContainer1.SplitterMoved += splitContainer1_SplitterMoved; playerBox.BackColor = Config.BgColor; playerBox.ForeColor = Config.TextColor; playerBox_zklclick.AttachTo(playerBox); playerBox_zklclick.MouseClick += PlayerBox_MouseClick; playerSearchBox.BackColor = Config.BgColor; playerSearchBox.ForeColor = Config.TextColor; var searchLabel = new Label() { Text = "Search: ", AutoSize = true, Font = Config.GeneralFontSmall, Margin = new Padding(3) }; searchBarContainer.Controls.Add(searchLabel, 0, 0); // // ChatControl // Controls.Add(splitContainer1); Margin = new Padding(0); Name = "ChatControl"; Size = new Size(1130, 793); playerListMapSplitContainer.Panel1.ResumeLayout(false); ((ISupportInitialize)playerListMapSplitContainer).EndInit(); playerListMapSplitContainer.ResumeLayout(false); playerBoxSearchBarContainer.ResumeLayout(false); searchBarContainer.ResumeLayout(false); topicPanel.ResumeLayout(false); splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel1.PerformLayout(); splitContainer1.Panel2.ResumeLayout(false); ((ISupportInitialize)splitContainer1).EndInit(); splitContainer1.ResumeLayout(false); 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.Windows.Forms.SplitContainer splitContainer1; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeluxeTreeItemsEditorForm)); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.DeluxTreeToolStrip = new System.Windows.Forms.ToolStrip(); this._addRootButton = new System.Windows.Forms.ToolStripButton(); this._addChildButton = new System.Windows.Forms.ToolStripButton(); this._removeButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this._moveUpButton = new System.Windows.Forms.ToolStripButton(); this._moveDownButton = new System.Windows.Forms.ToolStripButton(); this._indentButton = new System.Windows.Forms.ToolStripButton(); this._unindentButton = new System.Windows.Forms.ToolStripButton(); this._treeView = new System.Windows.Forms.TreeView(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.pictureBox2 = new System.Windows.Forms.PictureBox(); splitContainer1 = new System.Windows.Forms.SplitContainer(); ((System.ComponentModel.ISupportInitialize)(splitContainer1)).BeginInit(); splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); this.tableLayoutPanel3.SuspendLayout(); this.DeluxTreeToolStrip.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // splitContainer1 // splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; splitContainer1.Location = new System.Drawing.Point(0, 0); splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel3); // // splitContainer1.Panel2 // splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel1); splitContainer1.Size = new System.Drawing.Size(518, 366); splitContainer1.SplitterDistance = 257; splitContainer1.TabIndex = 11; // // tableLayoutPanel3 // this.tableLayoutPanel3.ColumnCount = 1; this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 24F)); this.tableLayoutPanel3.Controls.Add(this.DeluxTreeToolStrip, 0, 1); this.tableLayoutPanel3.Controls.Add(this._treeView, 0, 2); this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.RowCount = 4; this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 34F)); this.tableLayoutPanel3.Size = new System.Drawing.Size(257, 366); this.tableLayoutPanel3.TabIndex = 11; // // DeluxTreeToolStrip // this.DeluxTreeToolStrip.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.DeluxTreeToolStrip.Dock = System.Windows.Forms.DockStyle.None; this.DeluxTreeToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.DeluxTreeToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._addRootButton, this._addChildButton, this._removeButton, this.toolStripSeparator1, this._moveUpButton, this._moveDownButton, this._indentButton, this._unindentButton }); this.DeluxTreeToolStrip.Location = new System.Drawing.Point(0, 22); this.DeluxTreeToolStrip.Name = "DeluxTreeToolStrip"; this.DeluxTreeToolStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; this.DeluxTreeToolStrip.Size = new System.Drawing.Size(257, 29); this.DeluxTreeToolStrip.TabIndex = 10; this.DeluxTreeToolStrip.Text = "toolStrip1"; // // _addRootButton // this._addRootButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._addRootButton.Image = ((System.Drawing.Image)(resources.GetObject("_addRootButton.Image"))); this._addRootButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._addRootButton.Name = "_addRootButton"; this._addRootButton.Size = new System.Drawing.Size(23, 26); this._addRootButton.Text = "Add Root Button"; this._addRootButton.Click += new System.EventHandler(this._addRootButton_Click); // // _addChildButton // this._addChildButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._addChildButton.Image = ((System.Drawing.Image)(resources.GetObject("_addChildButton.Image"))); this._addChildButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._addChildButton.Name = "_addChildButton"; this._addChildButton.Size = new System.Drawing.Size(23, 26); this._addChildButton.Text = "Add Child Button"; this._addChildButton.Click += new System.EventHandler(this._addChildButton_Click); // // _removeButton // this._removeButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._removeButton.Image = ((System.Drawing.Image)(resources.GetObject("_removeButton.Image"))); this._removeButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._removeButton.Name = "_removeButton"; this._removeButton.Size = new System.Drawing.Size(23, 26); this._removeButton.Text = "Remove Button"; this._removeButton.Click += new System.EventHandler(this.removeButton_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 29); // // _moveUpButton // this._moveUpButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._moveUpButton.Image = ((System.Drawing.Image)(resources.GetObject("_moveUpButton.Image"))); this._moveUpButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._moveUpButton.Name = "_moveUpButton"; this._moveUpButton.Size = new System.Drawing.Size(23, 26); this._moveUpButton.Text = "Move Up Button"; this._moveUpButton.Click += new System.EventHandler(this._moveUpButton_Click); // // _moveDownButton // this._moveDownButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._moveDownButton.Image = ((System.Drawing.Image)(resources.GetObject("_moveDownButton.Image"))); this._moveDownButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._moveDownButton.Name = "_moveDownButton"; this._moveDownButton.Size = new System.Drawing.Size(23, 26); this._moveDownButton.Text = "Move Down Button"; this._moveDownButton.Click += new System.EventHandler(this._moveDownButton_Click); // // _indentButton // this._indentButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._indentButton.Image = ((System.Drawing.Image)(resources.GetObject("_indentButton.Image"))); this._indentButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._indentButton.Name = "_indentButton"; this._indentButton.Size = new System.Drawing.Size(23, 26); this._indentButton.Text = "Indent Button"; this._indentButton.Click += new System.EventHandler(this._indentButton_Click); // // _unindentButton // this._unindentButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._unindentButton.Image = ((System.Drawing.Image)(resources.GetObject("_unindentButton.Image"))); this._unindentButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._unindentButton.Name = "_unindentButton"; this._unindentButton.Size = new System.Drawing.Size(23, 26); this._unindentButton.Text = "Unindent Button"; this._unindentButton.Click += new System.EventHandler(this._unindentButton_Click); // // _treeView // this._treeView.Dock = System.Windows.Forms.DockStyle.Fill; this._treeView.Location = new System.Drawing.Point(3, 54); this._treeView.Name = "_treeView"; this._treeView.Size = new System.Drawing.Size(251, 275); this._treeView.TabIndex = 0; this._treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this._treeView_AfterSelect); // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.Controls.Add(this.propertyGrid1, 0, 1); this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 2); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(257, 366); this.tableLayoutPanel1.TabIndex = 4; // // propertyGrid1 // this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill; this.propertyGrid1.LineColor = System.Drawing.SystemColors.ScrollBar; this.propertyGrid1.Location = new System.Drawing.Point(3, 25); this.propertyGrid1.Name = "propertyGrid1"; this.propertyGrid1.Size = new System.Drawing.Size(251, 301); this.propertyGrid1.TabIndex = 1; this.propertyGrid1.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid1_ValueChanged); // // tableLayoutPanel2 // this.tableLayoutPanel2.ColumnCount = 2; this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 64.5F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35.5F)); this.tableLayoutPanel2.Controls.Add(this.button1, 0, 0); this.tableLayoutPanel2.Controls.Add(this.button2, 1, 0); this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Right; this.tableLayoutPanel2.Location = new System.Drawing.Point(14, 332); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 1; this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); this.tableLayoutPanel2.Size = new System.Drawing.Size(240, 31); this.tableLayoutPanel2.TabIndex = 2; // // button1 // this.button1.Dock = System.Windows.Forms.DockStyle.Right; this.button1.Location = new System.Drawing.Point(89, 3); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(62, 25); this.button1.TabIndex = 2; this.button1.Text = "完成"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(157, 3); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(63, 24); this.button2.TabIndex = 3; this.button2.Text = "取消"; this.button2.Click += new System.EventHandler(this.button2_Click); // // pictureBox2 // this.pictureBox2.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.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(0, 474); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(462, 0); this.pictureBox2.TabIndex = 9; this.pictureBox2.TabStop = false; // // DeluxeTreeItemsEditorForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(518, 366); this.Controls.Add(splitContainer1); this.Controls.Add(this.pictureBox2); this.Name = "DeluxeTreeItemsEditorForm"; this.Text = "树设计器"; splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(splitContainer1)).EndInit(); splitContainer1.ResumeLayout(false); this.tableLayoutPanel3.ResumeLayout(false); this.tableLayoutPanel3.PerformLayout(); this.DeluxTreeToolStrip.ResumeLayout(false); this.DeluxTreeToolStrip.PerformLayout(); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).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.Windows.Forms.ToolStripSeparator _toolStripSeparator3; System.Windows.Forms.ToolStripSeparator _toolStripSeparator1; System.Windows.Forms.ToolStripSeparator _toolStripSeparator2; System.Windows.Forms.SplitContainer _splitTreeProps; System.Windows.Forms.SplitContainer _splitEditorOutput; this._propertyGrid = new System.Windows.Forms.PropertyGrid(); this._outputWindow = new System.Windows.Forms.RichTextBox(); this._mainMenu = new System.Windows.Forms.MenuStrip(); this._fileMenu = new System.Windows.Forms.ToolStripMenuItem(); this._newProjectMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._openProjectMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._closeMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this._importProjectMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._saveMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._saveAsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._exitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._undoMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._redoMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this._newItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._addItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this._deleteMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._buildMenu = new System.Windows.Forms.ToolStripMenuItem(); this._buildMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._rebuildMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._cleanMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this._debuggerMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._cancelBuildSeparator = new System.Windows.Forms.ToolStripSeparator(); this._cancelBuildMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._helpMenu = new System.Windows.Forms.ToolStripMenuItem(); this._viewHelpMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._aboutMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this._treeNewItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeAddItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeDeleteMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this._treeOpenFileMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeOpenFileLocationMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this._treeRebuildMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeView = new MonoGame.Tools.Pipeline.MultiSelectTreeview(); this._openRecentMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); _toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); _toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); _splitTreeProps = new System.Windows.Forms.SplitContainer(); _splitEditorOutput = new System.Windows.Forms.SplitContainer(); ((System.ComponentModel.ISupportInitialize)(_splitTreeProps)).BeginInit(); _splitTreeProps.Panel1.SuspendLayout(); _splitTreeProps.Panel2.SuspendLayout(); _splitTreeProps.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(_splitEditorOutput)).BeginInit(); _splitEditorOutput.Panel1.SuspendLayout(); _splitEditorOutput.Panel2.SuspendLayout(); _splitEditorOutput.SuspendLayout(); this._mainMenu.SuspendLayout(); this._treeContextMenu.SuspendLayout(); this.SuspendLayout(); // // _toolStripSeparator3 // _toolStripSeparator3.Name = "_toolStripSeparator3"; _toolStripSeparator3.Size = new System.Drawing.Size(179, 6); // // _toolStripSeparator1 // _toolStripSeparator1.Name = "_toolStripSeparator1"; _toolStripSeparator1.Size = new System.Drawing.Size(179, 6); // // _toolStripSeparator2 // _toolStripSeparator2.Name = "_toolStripSeparator2"; _toolStripSeparator2.Size = new System.Drawing.Size(143, 6); // // _splitTreeProps // _splitTreeProps.Dock = System.Windows.Forms.DockStyle.Fill; _splitTreeProps.Location = new System.Drawing.Point(0, 0); _splitTreeProps.Name = "_splitTreeProps"; _splitTreeProps.Orientation = System.Windows.Forms.Orientation.Horizontal; // // _splitTreeProps.Panel1 // _splitTreeProps.Panel1.Controls.Add(this._treeView); // // _splitTreeProps.Panel2 // _splitTreeProps.Panel2.Controls.Add(this._propertyGrid); _splitTreeProps.Size = new System.Drawing.Size(249, 537); _splitTreeProps.SplitterDistance = 210; _splitTreeProps.TabIndex = 1; _splitTreeProps.TabStop = false; // // _propertyGrid // this._propertyGrid.Dock = System.Windows.Forms.DockStyle.Fill; this._propertyGrid.Location = new System.Drawing.Point(0, 0); this._propertyGrid.Name = "_propertyGrid"; this._propertyGrid.Size = new System.Drawing.Size(249, 323); this._propertyGrid.TabIndex = 0; // // _splitEditorOutput // _splitEditorOutput.Dock = System.Windows.Forms.DockStyle.Fill; _splitEditorOutput.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; _splitEditorOutput.Location = new System.Drawing.Point(0, 24); _splitEditorOutput.Name = "_splitEditorOutput"; // // _splitEditorOutput.Panel1 // _splitEditorOutput.Panel1.Controls.Add(_splitTreeProps); // // _splitEditorOutput.Panel2 // _splitEditorOutput.Panel2.Controls.Add(this._outputWindow); _splitEditorOutput.Size = new System.Drawing.Size(784, 537); _splitEditorOutput.SplitterDistance = 249; _splitEditorOutput.TabIndex = 2; _splitEditorOutput.TabStop = false; // // _outputWindow // this._outputWindow.Dock = System.Windows.Forms.DockStyle.Fill; this._outputWindow.HideSelection = false; this._outputWindow.Location = new System.Drawing.Point(0, 0); this._outputWindow.Name = "_outputWindow"; this._outputWindow.ReadOnly = true; this._outputWindow.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; this._outputWindow.Size = new System.Drawing.Size(531, 537); this._outputWindow.TabIndex = 0; this._outputWindow.TabStop = false; this._outputWindow.Text = ""; // // _mainMenu // this._mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._fileMenu, this.editToolStripMenuItem, this._buildMenu, this._helpMenu }); this._mainMenu.Location = new System.Drawing.Point(0, 0); this._mainMenu.Name = "_mainMenu"; this._mainMenu.Size = new System.Drawing.Size(784, 24); this._mainMenu.TabIndex = 0; this._mainMenu.Text = "menuStrip1"; this._mainMenu.MenuActivate += new System.EventHandler(this.MainMenuMenuActivate); // // _fileMenu // this._fileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._newProjectMenuItem, this._openProjectMenuItem, this._openRecentMenuItem, this._closeMenuItem, this.toolStripSeparator3, this._importProjectMenuItem, _toolStripSeparator3, this._saveMenuItem, this._saveAsMenuItem, _toolStripSeparator1, this._exitMenuItem }); this._fileMenu.Name = "_fileMenu"; this._fileMenu.Size = new System.Drawing.Size(37, 20); this._fileMenu.Text = "&File"; // // _newProjectMenuItem // this._newProjectMenuItem.Name = "_newProjectMenuItem"; this._newProjectMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.N))); this._newProjectMenuItem.Size = new System.Drawing.Size(182, 22); this._newProjectMenuItem.Text = "New..."; this._newProjectMenuItem.Click += new System.EventHandler(this.OnNewProjectClick); // // _openProjectMenuItem // this._openProjectMenuItem.Name = "_openProjectMenuItem"; this._openProjectMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); this._openProjectMenuItem.Size = new System.Drawing.Size(182, 22); this._openProjectMenuItem.Text = "Open..."; this._openProjectMenuItem.Click += new System.EventHandler(this.OnOpenProjectClick); // // _closeMenuItem // this._closeMenuItem.Name = "_closeMenuItem"; this._closeMenuItem.Size = new System.Drawing.Size(182, 22); this._closeMenuItem.Text = "Close"; this._closeMenuItem.Click += new System.EventHandler(this.OnCloseProjectClick); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(179, 6); // // _importProjectMenuItem // this._importProjectMenuItem.Name = "_importProjectMenuItem"; this._importProjectMenuItem.Size = new System.Drawing.Size(182, 22); this._importProjectMenuItem.Text = "Import..."; this._importProjectMenuItem.Click += new System.EventHandler(this.OnImportProjectClick); // // _saveMenuItem // this._saveMenuItem.Name = "_saveMenuItem"; this._saveMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this._saveMenuItem.Size = new System.Drawing.Size(182, 22); this._saveMenuItem.Text = "&Save"; this._saveMenuItem.Click += new System.EventHandler(this.OnSaveProjectClick); // // _saveAsMenuItem // this._saveAsMenuItem.Name = "_saveAsMenuItem"; this._saveAsMenuItem.Size = new System.Drawing.Size(182, 22); this._saveAsMenuItem.Text = "Save &As..."; this._saveAsMenuItem.Click += new System.EventHandler(this.OnSaveAsProjectClick); // // _exitMenuItem // this._exitMenuItem.Name = "_exitMenuItem"; this._exitMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4))); this._exitMenuItem.Size = new System.Drawing.Size(182, 22); this._exitMenuItem.Text = "E&xit"; this._exitMenuItem.Click += new System.EventHandler(this.ExitMenuItemClick); // // editToolStripMenuItem // this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._undoMenuItem, this._redoMenuItem, this.toolStripSeparator2, this._newItemMenuItem, this._addItemMenuItem, this.toolStripSeparator1, this._deleteMenuItem }); this.editToolStripMenuItem.Name = "editToolStripMenuItem"; this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); this.editToolStripMenuItem.Text = "&Edit"; // // _undoMenuItem // this._undoMenuItem.Enabled = false; this._undoMenuItem.Name = "_undoMenuItem"; this._undoMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); this._undoMenuItem.Size = new System.Drawing.Size(144, 22); this._undoMenuItem.Text = "Undo"; this._undoMenuItem.Click += new System.EventHandler(this.OnUndoClick); // // _redoMenuItem // this._redoMenuItem.Enabled = false; this._redoMenuItem.Name = "_redoMenuItem"; this._redoMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); this._redoMenuItem.Size = new System.Drawing.Size(144, 22); this._redoMenuItem.Text = "Redo"; this._redoMenuItem.Click += new System.EventHandler(this.OnRedoClick); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(141, 6); // // _newItemMenuItem // this._newItemMenuItem.Name = "_newItemMenuItem"; this._newItemMenuItem.Size = new System.Drawing.Size(144, 22); this._newItemMenuItem.Text = "&New Item..."; this._newItemMenuItem.Click += new System.EventHandler(this.OnNewItemClick); // // _addItemMenuItem // this._addItemMenuItem.Name = "_addItemMenuItem"; this._addItemMenuItem.Size = new System.Drawing.Size(144, 22); this._addItemMenuItem.Text = "&Add Item..."; this._addItemMenuItem.Click += new System.EventHandler(this.OnAddItemClick); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(141, 6); // // _deleteMenuItem // this._deleteMenuItem.Name = "_deleteMenuItem"; this._deleteMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete; this._deleteMenuItem.Size = new System.Drawing.Size(144, 22); this._deleteMenuItem.Text = "&Delete"; this._deleteMenuItem.Click += new System.EventHandler(this.OnDeleteItemClick); // // _buildMenu // this._buildMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._buildMenuItem, this._rebuildMenuItem, this._cleanMenuItem, this.toolStripSeparator5, this._debuggerMenuItem, this._cancelBuildSeparator, this._cancelBuildMenuItem }); this._buildMenu.Name = "_buildMenu"; this._buildMenu.Size = new System.Drawing.Size(46, 20); this._buildMenu.Text = "&Build"; // // _buildMenuItem // this._buildMenuItem.Name = "_buildMenuItem"; this._buildMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F6; this._buildMenuItem.Size = new System.Drawing.Size(173, 22); this._buildMenuItem.Text = "&Build"; this._buildMenuItem.Click += new System.EventHandler(this.BuildMenuItemClick); // // _rebuildMenuItem // this._rebuildMenuItem.Name = "_rebuildMenuItem"; this._rebuildMenuItem.Size = new System.Drawing.Size(173, 22); this._rebuildMenuItem.Text = "&Rebuild"; this._rebuildMenuItem.Click += new System.EventHandler(this.RebuildMenuItemClick); // // _cleanMenuItem // this._cleanMenuItem.Name = "_cleanMenuItem"; this._cleanMenuItem.Size = new System.Drawing.Size(173, 22); this._cleanMenuItem.Text = "&Clean"; this._cleanMenuItem.Click += new System.EventHandler(this.CleanMenuItemClick); // // toolStripSeparator5 // this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new System.Drawing.Size(170, 6); // // _debuggerMenuItem // this._debuggerMenuItem.CheckOnClick = true; this._debuggerMenuItem.Name = "_debuggerMenuItem"; this._debuggerMenuItem.Size = new System.Drawing.Size(173, 22); this._debuggerMenuItem.Text = "Debug Mode"; // // _cancelBuildSeparator // this._cancelBuildSeparator.Name = "_cancelBuildSeparator"; this._cancelBuildSeparator.Size = new System.Drawing.Size(170, 6); this._cancelBuildSeparator.Visible = false; // // _cancelBuildMenuItem // this._cancelBuildMenuItem.Name = "_cancelBuildMenuItem"; this._cancelBuildMenuItem.ShortcutKeyDisplayString = "Ctrl+Break"; this._cancelBuildMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Pause))); this._cancelBuildMenuItem.Size = new System.Drawing.Size(173, 22); this._cancelBuildMenuItem.Text = "Cancel"; this._cancelBuildMenuItem.Visible = false; this._cancelBuildMenuItem.Click += new System.EventHandler(this.CancelBuildMenuItemClick); // // _helpMenu // this._helpMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._viewHelpMenuItem, _toolStripSeparator2, this._aboutMenuItem }); this._helpMenu.Name = "_helpMenu"; this._helpMenu.Size = new System.Drawing.Size(44, 20); this._helpMenu.Text = "&Help"; // // _viewHelpMenuItem // this._viewHelpMenuItem.Name = "_viewHelpMenuItem"; this._viewHelpMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F1; this._viewHelpMenuItem.Size = new System.Drawing.Size(146, 22); this._viewHelpMenuItem.Text = "&View Help"; this._viewHelpMenuItem.Click += new System.EventHandler(this.ViewHelpMenuItemClick); // // _aboutMenuItem // this._aboutMenuItem.Name = "_aboutMenuItem"; this._aboutMenuItem.Size = new System.Drawing.Size(146, 22); this._aboutMenuItem.Text = "&About..."; this._aboutMenuItem.Click += new System.EventHandler(this.AboutMenuItemClick); // // _treeContextMenu // this._treeContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._treeNewItemMenuItem, this._treeAddItemMenuItem, this._treeDeleteMenuItem, this.toolStripSeparator6, this._treeOpenFileMenuItem, this._treeOpenFileLocationMenuItem, this.toolStripSeparator4, this._treeRebuildMenuItem }); this._treeContextMenu.Name = "itemContextMenu"; this._treeContextMenu.Size = new System.Drawing.Size(174, 148); this._treeContextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.MainMenuMenuActivate); // // _treeNewItemMenuItem // this._treeNewItemMenuItem.Name = "_treeNewItemMenuItem"; this._treeNewItemMenuItem.Size = new System.Drawing.Size(173, 22); this._treeNewItemMenuItem.Text = "New Item..."; this._treeNewItemMenuItem.Click += new System.EventHandler(this.OnNewItemClick); // // _treeAddItemMenuItem // this._treeAddItemMenuItem.Name = "_treeAddItemMenuItem"; this._treeAddItemMenuItem.Size = new System.Drawing.Size(173, 22); this._treeAddItemMenuItem.Text = "&Add Item..."; this._treeAddItemMenuItem.Click += new System.EventHandler(this.OnAddItemClick); // // _treeDeleteMenuItem // this._treeDeleteMenuItem.Name = "_treeDeleteMenuItem"; this._treeDeleteMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete; this._treeDeleteMenuItem.Size = new System.Drawing.Size(173, 22); this._treeDeleteMenuItem.Text = "&Delete"; this._treeDeleteMenuItem.Click += new System.EventHandler(this.OnDeleteItemClick); // // toolStripSeparator6 // this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new System.Drawing.Size(170, 6); // // _treeOpenFileMenuItem // this._treeOpenFileMenuItem.Name = "_treeOpenFileMenuItem"; this._treeOpenFileMenuItem.Size = new System.Drawing.Size(173, 22); this._treeOpenFileMenuItem.Text = "Open File"; this._treeOpenFileMenuItem.Click += new System.EventHandler(this.ContextMenu_OpenFile_Click); // // _treeOpenFileLocationMenuItem // this._treeOpenFileLocationMenuItem.Name = "_treeOpenFileLocationMenuItem"; this._treeOpenFileLocationMenuItem.Size = new System.Drawing.Size(173, 22); this._treeOpenFileLocationMenuItem.Text = "Open File Location"; this._treeOpenFileLocationMenuItem.Click += new System.EventHandler(this.ContextMenu_OpenFileLocation_Click); // // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(170, 6); // // _treeRebuildMenuItem // this._treeRebuildMenuItem.Name = "_treeRebuildMenuItem"; this._treeRebuildMenuItem.Size = new System.Drawing.Size(173, 22); this._treeRebuildMenuItem.Text = "Rebuild"; this._treeRebuildMenuItem.Click += new System.EventHandler(this.RebuildItemsMenuItemClick); // // _treeView // this._treeView.Dock = System.Windows.Forms.DockStyle.Fill; this._treeView.Location = new System.Drawing.Point(0, 0); this._treeView.Name = "_treeView"; this._treeView.Size = new System.Drawing.Size(249, 210); this._treeView.TabIndex = 0; this._treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeViewAfterSelect); this._treeView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.TreeViewMouseUp); // // _openRecentMenuItem // this._openRecentMenuItem.Name = "_openRecentMenuItem"; this._openRecentMenuItem.Size = new System.Drawing.Size(182, 22); this._openRecentMenuItem.Text = "Open Recent"; // // MainView // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(784, 561); this.Controls.Add(_splitEditorOutput); this.Controls.Add(this._mainMenu); this.MainMenuStrip = this._mainMenu; this.MinimumSize = new System.Drawing.Size(320, 240); this.Name = "MainView"; this.Text = "MonoGame Pipeline"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainView_FormClosing); this.Load += new System.EventHandler(this.MainView_Load); this.Shown += new System.EventHandler(this.MainView_Shown); _splitTreeProps.Panel1.ResumeLayout(false); _splitTreeProps.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(_splitTreeProps)).EndInit(); _splitTreeProps.ResumeLayout(false); _splitEditorOutput.Panel1.ResumeLayout(false); _splitEditorOutput.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(_splitEditorOutput)).EndInit(); _splitEditorOutput.ResumeLayout(false); this._mainMenu.ResumeLayout(false); this._mainMenu.PerformLayout(); this._treeContextMenu.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void Init(CurveCanvas curveCanvas) { var lockorgValues = (int[])Enum.GetValues(typeof(OriginLockMode)); var tanTypeValues = (int[])Enum.GetValues(typeof(CurveTangentTypes)); var loopValues = (int[])Enum.GetValues(typeof(CurveLoopTypes)); splitContainer1 = new SplitContainer(); m_curvesListView = new ListView(); m_curveControl = curveCanvas; m_menu = new MenuStrip(); m_tangentsMenuItem = new ToolStripMenuItem(); m_InTangentMenuItem = new ToolStripMenuItem(); m_outTangentMenuItem = new ToolStripMenuItem(); m_topStrip = new ToolStrip(); m_PointLabel = new ToolStripLabel(); m_xTxtBox = new ToolStripTextBox(); m_yTxtBox = new ToolStripTextBox(); m_bottomStrip = new ToolStrip(); m_MousePos = new ToolStripLabel(); m_helpForm = new HelpForm(); m_TangentsSep1 = new ToolStripSeparator(); m_editModeButtons = new ToolStripButton[4]; for (int i = 0; i < m_editModeButtons.Length; i++) { m_editModeButtons[i] = new ToolStripButton(); } m_tangentBtns = new ToolStripButton[5]; for (int i = 0; i < m_tangentBtns.Length; i++) { m_tangentBtns[i] = new ToolStripButton(); } m_infinityBtns = new ToolStripButton[4]; for (int i = 0; i < m_infinityBtns.Length; i++) { m_infinityBtns[i] = new ToolStripButton(); } // help menu items m_helpMenuItem = new ToolStripMenuItem(); var quickHelpMenuItem = new ToolStripMenuItem(); m_fitBtn = new ToolStripButton(); m_breakTangent = new ToolStripButton(); m_unifyTangent = new ToolStripButton(); var snapToX = new ToolStripButton(); var snapToY = new ToolStripButton(); var snapToPoint = new ToolStripButton(); var snapToCurve = new ToolStripButton(); m_undoBtn = new ToolStripButton(); m_redoBtn = new ToolStripButton(); //m_cutBtn = new ToolStripButton(); //m_copyBtn = new ToolStripButton(); //m_pasteBtn = new ToolStripButton(); m_delBtn = new ToolStripButton(); // suspendlayouts splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); SuspendLayout(); m_preInfinityMenuItem = new ToolStripMenuItem(); m_preInfinityMenuItem.Name = "PreInfinity"; m_preInfinityMenuItem.Text = "Pre-Infinity".Localize(); foreach (int val in loopValues) { string name = Enum.GetName(typeof(CurveLoopTypes), val); var item = new ToolStripMenuItem(); item.Name = "PreInfinity" + name; item.Text = name; item.Tag = (CurveLoopTypes)val; item.Click += curveLoopMenu_Click; m_preInfinityMenuItem.DropDownItems.Add(item); } m_postInfinityMenuItem = new ToolStripMenuItem(); m_postInfinityMenuItem.Name = "PostInfinity"; m_postInfinityMenuItem.Text = "Post-Infinity".Localize(); foreach (int val in loopValues) { string name = Enum.GetName(typeof(CurveLoopTypes), val); var item = new ToolStripMenuItem(); item.Name = "PostInfinity" + name; item.Text = name; item.Tag = (CurveLoopTypes)val; item.Click += curveLoopMenu_Click; m_postInfinityMenuItem.DropDownItems.Add(item); } m_curveMenuItem = new ToolStripMenuItem(); m_curveMenuItem.DropDownItems.AddRange(new ToolStripItem[] { m_preInfinityMenuItem, m_postInfinityMenuItem }); m_curveMenuItem.Name = "Curve"; m_curveMenuItem.Text = "Curve".Localize(); var editMenuItem = new ToolStripMenuItem("Edit".Localize()); editMenuItem.DropDown = m_curveControl.ContextMenuStrip; m_menu.Location = new Point(0, 0); m_menu.Name = "m_menu"; m_menu.RenderMode = ToolStripRenderMode.System; m_menu.Size = new Size(898, 31); m_menu.TabIndex = 0; m_menu.Text = "menuStrip1"; m_menu.Renderer = new CustomToolStripRenderer(); foreach (int val in tanTypeValues) { var tanType = (CurveTangentTypes)val; if (!IsImplemented(tanType)) continue; string name = Enum.GetName(typeof(CurveTangentTypes), val); var item = new ToolStripMenuItem(); item.Name = name; item.Text = name; item.Tag = tanType; item.Click += TanMenuItem_Click; m_tangentsMenuItem.DropDownItems.Add(item); } m_tangentsMenuItem.DropDownItems.AddRange(new ToolStripItem[] { m_TangentsSep1, m_InTangentMenuItem, m_outTangentMenuItem}); m_tangentsMenuItem.Name = "m_tangentsMenuItem"; m_tangentsMenuItem.Size = new Size(100, 27); m_tangentsMenuItem.Text = "Tangents".Localize(); foreach (int val in tanTypeValues) { var tanType = (CurveTangentTypes)val; if (!IsImplemented(tanType) || tanType == CurveTangentTypes.Stepped || tanType == CurveTangentTypes.SteppedNext) continue; string name = Enum.GetName(typeof(CurveTangentTypes), val); var item = new ToolStripMenuItem(); item.Name = "InTan" + name; item.Text = name; item.Tag = tanType; item.Click += TanMenuItem_Click; m_InTangentMenuItem.DropDownItems.Add(item); } m_InTangentMenuItem.Name = "m_InTangentMenuItem"; m_InTangentMenuItem.Size = new Size(205, 28); m_InTangentMenuItem.Text = "In Tangent".Localize(); foreach (int val in tanTypeValues) { var tanType = (CurveTangentTypes)val; if (!IsImplemented(tanType) || tanType == CurveTangentTypes.Stepped || tanType == CurveTangentTypes.SteppedNext) continue; string name = Enum.GetName(typeof(CurveTangentTypes), val); var item = new ToolStripMenuItem(); item.Name = "OutTan" + name; item.Text = name; item.Tag = tanType; item.Click += TanMenuItem_Click; m_outTangentMenuItem.DropDownItems.Add(item); } m_outTangentMenuItem.Name = "m_outTangentMenuItem"; m_outTangentMenuItem.Size = new Size(205, 28); m_outTangentMenuItem.Text = "Out Tangent".Localize(); m_helpMenuItem.Name = "helpMenuItem"; m_helpMenuItem.Text = "Help".Localize(); m_helpMenuItem.DropDownItems.Add(quickHelpMenuItem); quickHelpMenuItem.Name = "quickHelpMenuItem"; quickHelpMenuItem.Text = "Quick Help...".Localize(); quickHelpMenuItem.Click += delegate { if (m_helpForm.Visible) { m_helpForm.Activate(); return; } m_helpForm.Show(this); }; m_optionsMenu = new ToolStripMenuItem("Options".Localize()); var inputmodeMenu = new ToolStripMenuItem("Input Mode".Localize()); m_basicMenuItem = new ToolStripMenuItem("Basic".Localize()); m_basicMenuItem.Name = "basic"; m_basicMenuItem.Click += delegate { InputMode = InputModes.Basic; }; m_advancedInputMenuItem = new ToolStripMenuItem("Advanced".Localize()); m_advancedInputMenuItem.Click += delegate { InputMode = InputModes.Advanced; }; InputMode = m_curveControl.InputMode; m_flipYMenuItem = new ToolStripMenuItem("Flip Y-Axis".Localize()); m_flipYMenuItem.Click += delegate { FlipY = !FlipY; }; m_optionsMenu.DropDownOpening += delegate { m_flipYMenuItem.Checked = FlipY; }; inputmodeMenu.DropDownItems.Add(m_basicMenuItem); inputmodeMenu.DropDownItems.Add(m_advancedInputMenuItem); var lockmenu = new ToolStripMenuItem("Lock Origin".Localize( "This is the name of a command. Lock is a verb. Origin is like the origin of a graph.")); foreach (int val in lockorgValues) { string name = Enum.GetName(typeof(OriginLockMode), val); var item = new ToolStripMenuItem(); item.Name = name; item.Text = name; item.Tag = (OriginLockMode)val; item.Click += delegate(object sender, EventArgs e) { var menuItem = (ToolStripMenuItem)sender; m_curveControl.LockOrigin = (OriginLockMode)menuItem.Tag; }; lockmenu.DropDownItems.Add(item); } lockmenu.DropDownOpening += delegate { foreach (ToolStripMenuItem mitem in lockmenu.DropDownItems) { mitem.Checked = m_curveControl.LockOrigin == (OriginLockMode)mitem.Tag; } }; m_optionsMenu.DropDownItems.Add(inputmodeMenu); m_optionsMenu.DropDownItems.Add(lockmenu); m_optionsMenu.DropDownItems.Add(m_flipYMenuItem); // Initialize CurveTypeSelector (with items and labels) m_curveTypeLabel = new ToolStripLabel(); m_curveTypeLabel.Name = "CurveTypeLabel"; m_curveTypeLabel.AutoSize = true; m_curveTypeLabel.Text = "Type".Localize("curve types"); m_curveTypeSelector = new ToolStripDropDownButton(); m_curveTypeSelector.Name = "CurveTypeSelector"; m_curveTypeSelector.AutoSize = false; m_curveTypeSelector.Width = 70; m_curveTypeSelector.ToolTipText = "Type of Selected Curve(s)".Localize(); m_curveTypeSelector.DisplayStyle = ToolStripItemDisplayStyle.Text; var linearItem = new ToolStripMenuItem("Linear".Localize()); linearItem.Tag = InterpolationTypes.Linear; linearItem.Name = linearItem.Text; var smoothItem = new ToolStripMenuItem("Smooth".Localize()); smoothItem.Tag = InterpolationTypes.Hermite; smoothItem.Name = smoothItem.Text; smoothItem.Checked = true; m_curveTypeSelector.DropDownItems.Add(linearItem); m_curveTypeSelector.DropDownItems.Add(smoothItem); m_curveTypeSelector.Text = smoothItem.Text; m_curveTypeSelector.DropDownItemClicked += curveTypeSelector_DropDownItemClicked; m_menu.Items.AddRange(new ToolStripItem[] { editMenuItem, m_curveMenuItem, m_tangentsMenuItem,m_optionsMenu,m_helpMenuItem}); m_topStrip.Items.AddRange(m_editModeButtons); m_topStrip.Items.Add(new ToolStripSeparator()); m_topStrip.Items.AddRange(new ToolStripItem[] { m_PointLabel, m_xTxtBox, m_yTxtBox, m_fitBtn, }); m_tanSeparator1 = new ToolStripSeparator(); m_tanSeparator2 = new ToolStripSeparator(); m_topStrip.Items.Add(m_tanSeparator1); m_topStrip.Items.Add(m_curveTypeLabel); m_topStrip.Items.Add(m_curveTypeSelector); m_topStrip.Items.AddRange(m_tangentBtns); m_topStrip.Items.Add(m_tanSeparator2); m_topStrip.Items.Add(m_breakTangent); m_topStrip.Items.Add(m_unifyTangent); m_topStrip.Items.Add(new ToolStripSeparator()); m_topStrip.Items.Add(snapToX); m_topStrip.Items.Add(snapToY); m_topStrip.Items.Add(snapToPoint); m_topStrip.Items.Add(snapToCurve); m_topStrip.Items.Add(new ToolStripSeparator()); m_topStrip.Items.AddRange(m_infinityBtns); m_topStrip.Items.Add(new ToolStripSeparator()); m_topStrip.Items.Add(m_undoBtn); m_topStrip.Items.Add(m_redoBtn); //m_topStrip.Items.Add(m_cutBtn); //m_topStrip.Items.Add(m_copyBtn); //m_topStrip.Items.Add(m_pasteBtn); m_topStrip.Items.Add(m_delBtn); m_topStrip.Items.Add(new ToolStripSeparator()); m_topStrip.Location = new Point(0, 31); m_topStrip.Name = "m_topStrip"; m_topStrip.RenderMode = ToolStripRenderMode.System; m_topStrip.Size = new Size(898, 32); m_topStrip.TabIndex = 1; m_topStrip.Stretch = true; m_topStrip.Text = "topstrip"; m_topStrip.GripStyle = ToolStripGripStyle.Hidden; m_topStrip.MinimumSize = new Size(32, 32); m_topStrip.CausesValidation = true; for (int i = 0; i < m_editModeButtons.Length; i++) { m_editModeButtons[i].DisplayStyle = ToolStripItemDisplayStyle.Image; m_editModeButtons[i].Click += EditModeClick; m_editModeButtons[i].Alignment = ToolStripItemAlignment.Left; m_editModeButtons[i].ImageScaling = ToolStripItemImageScaling.None; } m_editModeButtons[0].Name = "ScalePoint"; m_editModeButtons[0].Tag = EditModes.Scale; m_editModeButtons[0].Image = new Bitmap(typeof(CurveUtils), "Resources.ScaleKeysTool.png"); m_editModeButtons[0].ToolTipText = "Scale selected control points " + KeysUtil.KeysToString(CurveCanvas.ShortcutKeys.Scale, true); m_editModeButtons[1].Checked = true; m_editModeButtons[1].Name = "MovePoint"; m_editModeButtons[1].Tag = EditModes.Move; m_editModeButtons[1].Image = new Bitmap(typeof(CurveUtils), "Resources.MoveKeysTool.png"); m_editModeButtons[1].ToolTipText = "Move selected control points " + KeysUtil.KeysToString(CurveCanvas.ShortcutKeys.Move, true); m_editModeButtons[2].Name = "InsertPoint"; m_editModeButtons[2].Tag = EditModes.InsertPoint; m_editModeButtons[2].Image = new Bitmap(typeof(CurveUtils), "Resources.InsertKeysTool.png"); m_editModeButtons[2].ToolTipText = "Insert control point"; m_editModeButtons[3].Name = "AddPoint"; m_editModeButtons[3].Tag = EditModes.AddPoint; m_editModeButtons[3].Image = new Bitmap(typeof(CurveUtils), "Resources.AddKeysTool.png"); m_editModeButtons[3].ToolTipText = "Add control point"; m_PointLabel.Name = "m_PointLabel"; m_PointLabel.AutoSize = true; m_PointLabel.Text = "Stats".Localize(); m_xTxtBox.Name = "m_XtxtBox"; m_xTxtBox.Size = new Size(100, 30); m_xTxtBox.Validating += InputBoxValidating; m_xTxtBox.KeyUp += m_TxtBox_KeyUp; m_xTxtBox.ReadOnly = true; m_yTxtBox.Name = "m_yTxtBox"; m_yTxtBox.Size = new Size(100, 30); m_yTxtBox.Validating += InputBoxValidating; m_yTxtBox.KeyUp += m_TxtBox_KeyUp; m_yTxtBox.ReadOnly = true; // fit all m_fitBtn.Name = "m_fitBtn"; m_fitBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; m_fitBtn.Alignment = ToolStripItemAlignment.Left; m_fitBtn.Tag = null; m_fitBtn.Image = new Bitmap(typeof(CurveUtils), "Resources.FrameAll.png"); m_fitBtn.ToolTipText = "Fit " + KeysUtil.KeysToString(CurveCanvas.ShortcutKeys.Fit, true); m_fitBtn.Click += delegate { m_curveControl.Fit(); }; m_fitBtn.ImageScaling = ToolStripItemImageScaling.None; // tangent buttons for (int i = 0; i < m_tangentBtns.Length; i++) { m_tangentBtns[i].DisplayStyle = ToolStripItemDisplayStyle.Image; m_tangentBtns[i].Alignment = ToolStripItemAlignment.Left; m_tangentBtns[i].Name = "m_tangentBtns" + i; m_tangentBtns[i].ImageScaling = ToolStripItemImageScaling.None; m_tangentBtns[i].Click += delegate(object sender, EventArgs e) { var btn = sender as ToolStripButton; m_curveControl.SetTangent(TangentSelection.TangentInOut, (CurveTangentTypes)btn.Tag); }; } m_tangentBtns[0].Tag = CurveTangentTypes.Spline; m_tangentBtns[0].Image = new Bitmap(typeof(CurveUtils), "Resources.SplineTangents.png"); m_tangentBtns[0].ToolTipText = "Spline"; m_tangentBtns[1].Tag = CurveTangentTypes.Clamped; m_tangentBtns[1].Image = new Bitmap(typeof(CurveUtils), "Resources.ClampedTangents.png"); m_tangentBtns[1].ToolTipText = "Clamped"; m_tangentBtns[2].Tag = CurveTangentTypes.Linear; m_tangentBtns[2].Image = new Bitmap(typeof(CurveUtils), "Resources.LinearTangents.png"); m_tangentBtns[2].ToolTipText = "Linear"; m_tangentBtns[3].Tag = CurveTangentTypes.Flat; m_tangentBtns[3].Image = new Bitmap(typeof(CurveUtils), "Resources.FlatTangents.png"); m_tangentBtns[3].ToolTipText = "Flat"; m_tangentBtns[4].Tag = CurveTangentTypes.Stepped; m_tangentBtns[4].Image = new Bitmap(typeof(CurveUtils), "Resources.StepTangents.png"); m_tangentBtns[4].ToolTipText = "Step"; // break tangents m_breakTangent.Name = "m_breakTangent"; m_breakTangent.DisplayStyle = ToolStripItemDisplayStyle.Image; m_breakTangent.Alignment = ToolStripItemAlignment.Left; m_breakTangent.Image = new Bitmap(typeof(CurveUtils), "Resources.BreakTangents.png"); m_breakTangent.ImageScaling = ToolStripItemImageScaling.None; m_breakTangent.ToolTipText = "Break Tangents"; m_breakTangent.Click += delegate { m_curveControl.BreakTangents(true); }; m_unifyTangent.Name = "m_unifyTangent"; m_unifyTangent.DisplayStyle = ToolStripItemDisplayStyle.Image; m_unifyTangent.Alignment = ToolStripItemAlignment.Left; m_unifyTangent.Image = new Bitmap(typeof(CurveUtils), "Resources.UnifyTangents.png"); m_unifyTangent.ImageScaling = ToolStripItemImageScaling.None; m_unifyTangent.ToolTipText = "Unify Tangents"; m_unifyTangent.Click += delegate { m_curveControl.BreakTangents(false); }; snapToX.Checked = m_curveControl.AutoSnapToX; snapToX.Name = "snapToX"; snapToX.DisplayStyle = ToolStripItemDisplayStyle.Image; snapToX.Alignment = ToolStripItemAlignment.Left; snapToX.Image = new Bitmap(typeof(CurveUtils), "Resources.TimeSnap.png"); snapToX.ImageScaling = ToolStripItemImageScaling.None; snapToX.ToolTipText = "Auto snap to major X tick"; snapToX.Click += delegate { snapToX.Checked = !snapToX.Checked; m_curveControl.AutoSnapToX = snapToX.Checked; }; snapToY.Checked = m_curveControl.AutoSnapToY; snapToY.Name = "snapToY"; snapToY.DisplayStyle = ToolStripItemDisplayStyle.Image; snapToY.Alignment = ToolStripItemAlignment.Left; snapToY.Image = new Bitmap(typeof(CurveUtils), "Resources.ValueSnap.png"); snapToY.ImageScaling = ToolStripItemImageScaling.None; snapToY.ToolTipText = "Auto snap to major Y tick"; snapToY.Click += delegate { snapToY.Checked = !snapToY.Checked; m_curveControl.AutoSnapToY = snapToY.Checked; }; snapToPoint.Checked = m_curveControl.AutoPointSnap; snapToPoint.Name = "snapToPoint"; snapToPoint.DisplayStyle = ToolStripItemDisplayStyle.Image; snapToPoint.Alignment = ToolStripItemAlignment.Left; snapToPoint.Image = new Bitmap(typeof(CurveUtils), "Resources.PointSnap.png"); snapToPoint.ImageScaling = ToolStripItemImageScaling.None; snapToPoint.ToolTipText = "Auto snap to point"; snapToPoint.Click += delegate { snapToPoint.Checked = !snapToPoint.Checked; m_curveControl.AutoPointSnap = snapToPoint.Checked; }; snapToCurve.Checked = m_curveControl.AutoCurveSnap; snapToCurve.Name = "snapToCurve"; snapToCurve.DisplayStyle = ToolStripItemDisplayStyle.Image; snapToCurve.Alignment = ToolStripItemAlignment.Left; snapToCurve.Image = new Bitmap(typeof(CurveUtils), "Resources.CurveSnap.png"); snapToCurve.ImageScaling = ToolStripItemImageScaling.None; snapToCurve.ToolTipText = "Auto snap to curve"; snapToCurve.Click += delegate { snapToCurve.Checked = !snapToCurve.Checked; m_curveControl.AutoCurveSnap = snapToCurve.Checked; }; for (int i = 0; i <= 1; i++) { m_infinityBtns[i].DisplayStyle = ToolStripItemDisplayStyle.Image; m_infinityBtns[i].Alignment = ToolStripItemAlignment.Left; m_infinityBtns[i].Name = "m_infinityBtns" + i; m_infinityBtns[i].ImageScaling = ToolStripItemImageScaling.None; m_infinityBtns[i].Click += delegate(object sender, EventArgs e) { var btn = sender as ToolStripButton; m_curveControl.SetPreInfinity((CurveLoopTypes)btn.Tag); }; } for (int i = 2; i <= 3; i++) { m_infinityBtns[i].DisplayStyle = ToolStripItemDisplayStyle.Image; m_infinityBtns[i].Alignment = ToolStripItemAlignment.Left; m_infinityBtns[i].Name = "m_infinityBtns" + i; m_infinityBtns[i].ImageScaling = ToolStripItemImageScaling.None; m_infinityBtns[i].Click += delegate(object sender, EventArgs e) { var btn = sender as ToolStripButton; m_curveControl.SetPostInfinity((CurveLoopTypes)btn.Tag); }; } m_infinityBtns[0].Tag = CurveLoopTypes.Cycle; m_infinityBtns[0].Image = new Bitmap(typeof(CurveUtils), "Resources.CycleBefore.png"); m_infinityBtns[0].ToolTipText = "Cycle Before"; m_infinityBtns[1].Tag = CurveLoopTypes.CycleWithOffset; m_infinityBtns[1].Image = new Bitmap(typeof(CurveUtils), "Resources.CycleBeforewithOffset.png"); m_infinityBtns[1].ToolTipText = "Cycle Before with Offset"; m_infinityBtns[2].Tag = CurveLoopTypes.Cycle; m_infinityBtns[2].Image = new Bitmap(typeof(CurveUtils), "Resources.CycleAfter.png"); m_infinityBtns[2].ToolTipText = "Cycle After"; m_infinityBtns[3].Tag = CurveLoopTypes.CycleWithOffset; m_infinityBtns[3].Image = new Bitmap(typeof(CurveUtils), "Resources.CycleAfterwithOffset.png"); m_infinityBtns[3].ToolTipText = "Cycle After with Offset"; // udo/redo/cut/copy/paste/delete buttons m_undoBtn.Name = "m_undoBtn"; m_undoBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; m_undoBtn.Alignment = ToolStripItemAlignment.Left; m_undoBtn.Image = ResourceUtil.GetImage24(Resources.UndoImage); m_undoBtn.ImageScaling = ToolStripItemImageScaling.None; m_undoBtn.ToolTipText = "Undo"; m_undoBtn.Click += delegate { m_curveControl.Undo(); }; m_redoBtn.Name = "m_redoBtn"; m_redoBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; m_redoBtn.Alignment = ToolStripItemAlignment.Left; m_redoBtn.Image = ResourceUtil.GetImage24(Resources.RedoImage); m_redoBtn.ImageScaling = ToolStripItemImageScaling.None; m_redoBtn.ToolTipText = "Redo"; m_redoBtn.Click += delegate { m_curveControl.Redo(); }; //m_cutBtn.Name = "cutBtn"; //m_cutBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; //m_cutBtn.Alignment = ToolStripItemAlignment.Left; //m_cutBtn.Image = ResourceUtil.GetImage24(Resources.CutImage); //m_cutBtn.ImageScaling = ToolStripItemImageScaling.None; //m_cutBtn.ToolTipText = "Cut selected points"; //m_cutBtn.Click += delegate { m_curveControl.Cut(); }; //m_copyBtn.Name = "copyBtn"; //m_copyBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; //m_copyBtn.Alignment = ToolStripItemAlignment.Left; //m_copyBtn.Image = ResourceUtil.GetImage24(Resources.CopyImage); //m_copyBtn.ImageScaling = ToolStripItemImageScaling.None; //m_copyBtn.ToolTipText = "Copy selected points"; //m_copyBtn.Click += delegate { m_curveControl.Copy(); }; //m_pasteBtn.Name = "pasteBtn"; //m_pasteBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; //m_pasteBtn.Alignment = ToolStripItemAlignment.Left; //m_pasteBtn.Image = ResourceUtil.GetImage24(Resources.PasteImage); //m_pasteBtn.ImageScaling = ToolStripItemImageScaling.None; //m_pasteBtn.ToolTipText = "Paste selected points"; //m_pasteBtn.Click += delegate { m_curveControl.Paste(); }; m_delBtn.Name = "delBtn"; m_delBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; m_delBtn.Alignment = ToolStripItemAlignment.Left; m_delBtn.Image = ResourceUtil.GetImage24(Resources.DeleteImage); m_delBtn.ImageScaling = ToolStripItemImageScaling.None; m_delBtn.ToolTipText = "Delete selected points"; m_delBtn.Click += delegate { m_curveControl.Delete(); }; m_bottomStrip.Dock = DockStyle.Bottom; m_bottomStrip.Items.AddRange(new ToolStripItem[] { m_MousePos }); m_bottomStrip.Location = new Point(0, 549); m_bottomStrip.Name = "m_bottomStrip"; m_bottomStrip.RenderMode = ToolStripRenderMode.System; m_bottomStrip.Size = new Size(898, 26); m_bottomStrip.TabIndex = 2; m_bottomStrip.Text = "toolStrip2"; m_bottomStrip.GripStyle = ToolStripGripStyle.Hidden; m_MousePos.Alignment = ToolStripItemAlignment.Left; m_MousePos.AutoSize = true; m_MousePos.Name = "m_MousePos"; m_MousePos.Size = new Size(250, 27); m_MousePos.Text = "Mouse Position".Localize(); m_curveControl.Dock = DockStyle.Fill; m_curveControl.Location = new Point(24, 61); m_curveControl.Name = "m_curveControl"; m_curveControl.Size = new Size(900, 600); m_curveControl.TabIndex = 0; m_curveControl.TabStop = false; m_curveControl.MouseMove += delegate(object sender, MouseEventArgs e) { PointD gp = m_curveControl.ClientToGraph_d(e.X, e.Y); m_MousePos.Text = string.Format("{0}, {1}", Math.Round(gp.X, 4), Math.Round(gp.Y, 4)); }; m_curveControl.MouseLeave += delegate { m_MousePos.Text = ""; }; m_curveControl.MouseUp += delegate { UpdateInputBoxes(); }; m_curveControl.EditMode = EditModes.Move; m_curveControl.EditModeChanged += delegate { foreach (ToolStripButton btn in m_editModeButtons) { btn.Checked = (EditModes)btn.Tag == m_curveControl.EditMode; } }; m_curveControl.SelectionChanged += SelectionChanged; m_TangentsSep1.Name = "m_TangentsSep1"; m_TangentsSep1.Size = new Size(202, 6); splitContainer1.Dock = DockStyle.Fill; splitContainer1.ForeColor = SystemColors.Control; splitContainer1.Location = new Point(0, 48); splitContainer1.Name = "splitContainer1"; splitContainer1.Panel1MinSize = 30; splitContainer1.Panel2MinSize = 30; splitContainer1.Panel1.Controls.Add(m_curvesListView); splitContainer1.Panel2.Controls.Add(m_curveControl); splitContainer1.Size = new Size(898, 520); splitContainer1.SplitterDistance = 180; splitContainer1.SplitterIncrement = 5; splitContainer1.TabIndex = 0; splitContainer1.TabStop = false; splitContainer1.Text = "splitContainer1"; splitContainer1.BorderStyle = BorderStyle.None; splitContainer1.SplitterWidth = 4; splitContainer1.FixedPanel = FixedPanel.Panel1; splitContainer1.SplitterMoved += splitContainer1_SplitterMoved; splitContainer1.SplitterMoving += splitContainer1_SplitterMoving; // list view m_curvesListView.CheckBoxes = true; m_curvesListView.Dock = DockStyle.Fill; m_curvesListView.HideSelection = false; m_curvesListView.LabelEdit = false; m_curvesListView.Location = new Point(0, 0); m_curvesListView.Name = "m_curvesListView"; m_curvesListView.Size = new Size(300, 300); m_curvesListView.TabIndex = 0; m_curvesListView.TabStop = false; m_curvesListView.TileSize = new Size(250, 24); m_curvesListView.UseCompatibleStateImageBehavior = false; m_curvesListView.View = View.Details; m_curvesListView.Sorting = SortOrder.Ascending; m_curvesListView.ItemChecked += m_curvesListView_ItemChecked; m_curvesListView.Scrollable = true; m_curvesListView.Columns.Add("Curves", 250); m_curvesListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize); m_curvesListView.AllowColumnReorder = false; m_curvesListView.BackColor = m_curveControl.BackColor; var addMenuItem = new ToolStripMenuItem("Add Point".Localize()); var listMenuStrip = new ContextMenuStrip(); m_curvesListView.ContextMenuStrip = listMenuStrip; listMenuStrip.Opening += delegate { addMenuItem.Enabled = m_curvesListView.SelectedItems.Count > 0; }; listMenuStrip.Items.Add(addMenuItem); addMenuItem.Click += delegate { if (m_curvesListView.SelectedItems.Count == 0) return; var dlg = new AddPointDialog(); dlg.Location = new Point(MousePosition.X, MousePosition.Y); dlg.ShowDialog(this); if (dlg.DialogResult != DialogResult.OK) return; PointF pt = dlg.PointPosition; m_curveControl.TransactionContext.DoTransaction(delegate { foreach (ListViewItem item in m_curvesListView.SelectedItems) { var curve = (ICurve)item.Tag; IControlPoint cpt = curve.CreateControlPoint(); float x = pt.X; int index = CurveUtils.GetValidInsertionIndex(curve, x); while (index == -1) { x += CurveUtils.Epsilone; index = CurveUtils.GetValidInsertionIndex(curve, x); } cpt.X = x; cpt.Y = pt.Y; curve.InsertControlPoint(index, cpt); CurveUtils.ComputeTangent(curve); } }, "Add Point".Localize()); m_curveControl.Invalidate(); }; ClientSize = new Size(898, 575); Dock = DockStyle.Fill; Controls.Add(splitContainer1); Controls.Add(m_bottomStrip); Controls.Add(m_topStrip); Controls.Add(m_menu); // resume layouts. splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel2.ResumeLayout(false); splitContainer1.ResumeLayout(false); ResumeLayout(false); PerformLayout(); Invalidated += CurveEditorControl_Invalidated; SetUI(false); Application.Idle += Application_Idle; }
/// <summary>Creates a new exception tree. Currently, only one is used.</summary> /// <param name="list">The list.</param> /// <returns>An exception tree</returns> public ExceptionTree CreateExceptionTree(IEnumerable<ThrownException> list) { if (this.exceptionTree != null) { return this.exceptionTree; } ExceptionTree tree = new ExceptionTree(); CallStackList callStackList = new CallStackList(); TitleBar treeTitle = new TitleBar(); TitleBar callStackTitle = new TitleBar(); SplitContainer split = new SplitContainer(); tree.SuspendLayout(); callStackList.SuspendLayout(); treeTitle.SuspendLayout(); callStackTitle.SuspendLayout(); split.SuspendLayout(); tree.CallStackList = callStackList; int titleHeight = 18; int width = this.splitContainerMaster.Panel1.ClientRectangle.Width; //treeTitle.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; treeTitle.Dock = DockStyle.Top; treeTitle.BackColor = System.Drawing.SystemColors.Control; treeTitle.Font = new System.Drawing.Font("Segoe UI", 9F); //treeTitle.Location = new System.Drawing.Point(0, this.exceptionTabStrip.Height); treeTitle.Name = "exceptionTreeTitle"; treeTitle.Size = new System.Drawing.Size(width, titleHeight); treeTitle.TabIndex = 1; treeTitle.Text = "Exception Tree"; treeTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; tree.BackColor = System.Drawing.SystemColors.Window; tree.Controller = null; tree.Dock = System.Windows.Forms.DockStyle.Fill; tree.FullRowSelect = true; tree.Location = new System.Drawing.Point(0, titleHeight); tree.Margin = new System.Windows.Forms.Padding(0); tree.Name = "exceptionTree"; tree.ImageList = this.classTree.ImageList; tree.Size = new System.Drawing.Size(558, 154); tree.TabIndex = 2; callStackTitle.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; callStackTitle.BackColor = System.Drawing.SystemColors.Control; callStackTitle.Font = new System.Drawing.Font("Segoe UI", 9F); callStackTitle.Location = new System.Drawing.Point(0, 0); callStackTitle.Name = "callStackTitle"; callStackTitle.Size = new System.Drawing.Size(width, titleHeight); callStackTitle.TabIndex = 1; callStackTitle.Text = "Call stack"; callStackTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; callStackList.BackColor = System.Drawing.SystemColors.Window; callStackList.Controller = null; callStackList.Dock = System.Windows.Forms.DockStyle.Fill; callStackList.FullRowSelect = true; callStackList.GroupByType = false; callStackList.Location = new System.Drawing.Point(0, titleHeight); callStackList.Margin = new System.Windows.Forms.Padding(0); callStackList.Name = "callStackList"; callStackList.OwnerDraw = true; callStackList.Size = new System.Drawing.Size(width, 154); callStackList.SmallImageList = this.images; callStackList.TabIndex = 2; callStackList.UseCompatibleStateImageBehavior = false; callStackList.View = System.Windows.Forms.View.Details; split.Name = "splitExceptions"; split.Orientation = System.Windows.Forms.Orientation.Horizontal; //split.Location = new System.Drawing.Point(0, this.exceptionTabStrip.Size.Height); //split.Size = new System.Drawing.Size(100, this.exceptionTabStrip.ClientRectangle.Height); split.Panel1.Controls.Add(treeTitle); split.Panel1.Controls.Add(tree); split.Panel1.Padding = new System.Windows.Forms.Padding(0, titleHeight , 0, 0); split.Panel2.Controls.Add(callStackTitle); split.Panel2.Controls.Add(callStackList); split.Panel2.Padding = new System.Windows.Forms.Padding(0, titleHeight, 0, 0); //split.Size = new System.Drawing.Size(558, 298); split.SplitterDistance = 122; split.TabIndex = 5; split.Dock = DockStyle.Fill; this.splitContainerMaster.Panel2.Controls.Add(split); ////this.tablePanel.Controls.Add(split, 0, 1); ////this.exceptionTabStrip.ActiveTab = this.exceptionTabStrip.AddTab("hello", split); split.Margin = new System.Windows.Forms.Padding(0); tree.ResumeLayout(); callStackList.ResumeLayout(); treeTitle.ResumeLayout(); callStackTitle.ResumeLayout(); split.ResumeLayout(); this.exceptionTreeTitle = treeTitle; this.callStackListTitle = callStackTitle; return tree; }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { _components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WebServicesView)); _splitContainer = new System.Windows.Forms.SplitContainer(); _webServicesTreeView = new System.Windows.Forms.TreeView(); _webServicesListView = new System.Windows.Forms.ListView(); _propertyColumnHeader = new System.Windows.Forms.ColumnHeader(); _valueColumnHeader = new System.Windows.Forms.ColumnHeader(); _webServiceImageList = new System.Windows.Forms.ImageList(_components); _splitContainer.Panel1.SuspendLayout(); _splitContainer.Panel2.SuspendLayout(); _splitContainer.SuspendLayout(); this.SuspendLayout(); // // splitContainer // _splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; _splitContainer.Location = new System.Drawing.Point(0, 0); _splitContainer.Name = "splitContainer"; // // splitContainer.Panel1 // _splitContainer.Panel1.Controls.Add(_webServicesTreeView); // // splitContainer.Panel2 // _splitContainer.Panel2.Controls.Add(_webServicesListView); _splitContainer.Size = new System.Drawing.Size(471, 305); _splitContainer.SplitterDistance = 156; _splitContainer.TabIndex = 1; // // webServicesTreeView // _webServicesTreeView.Dock = System.Windows.Forms.DockStyle.Fill; _webServicesTreeView.Location = new System.Drawing.Point(0, 0); _webServicesTreeView.Name = "webServicesTreeView"; _webServicesTreeView.Size = new System.Drawing.Size(156, 305); _webServicesTreeView.TabIndex = 0; _webServicesTreeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.WebServicesTreeViewAfterSelect); // // webServicesListView // _webServicesListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { _propertyColumnHeader, _valueColumnHeader }); _webServicesListView.Dock = System.Windows.Forms.DockStyle.Fill; _webServicesListView.Location = new System.Drawing.Point(0, 0); _webServicesListView.Name = "webServicesListView"; _webServicesListView.Size = new System.Drawing.Size(311, 305); _webServicesListView.TabIndex = 2; _webServicesListView.UseCompatibleStateImageBehavior = false; _webServicesListView.View = System.Windows.Forms.View.Details; // // propertyColumnHeader // _propertyColumnHeader.Text = "Property"; _propertyColumnHeader.Width = 120; // // valueColumnHeader // _valueColumnHeader.Text = "Value"; _valueColumnHeader.Width = 191; // // WebServiceImageList // _webServiceImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("WebServiceImageList.ImageStream"))); _webServiceImageList.TransparentColor = System.Drawing.Color.Transparent; _webServiceImageList.Images.SetKeyName(0, "Icons.16x16.Library"); _webServiceImageList.Images.SetKeyName(1, "Icons.16x16.Interface"); _webServiceImageList.Images.SetKeyName(2, "Icons.16x16.Class"); _webServiceImageList.Images.SetKeyName(3, "Icons.16x16.Method"); // // WebServicesView // this.Controls.Add(_splitContainer); this.Name = "WebServicesView"; this.Size = new System.Drawing.Size(471, 305); _splitContainer.Panel1.ResumeLayout(false); _splitContainer.Panel2.ResumeLayout(false); _splitContainer.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { //this.components = new System.ComponentModel.Container(); this.SuspendLayout(); #region Bars // Component init for various toolbars // Status Bar // Bottom bar of application statusBar = new StatusStrip(); statusBar.Name = "statusBar"; statusBar.Location = new Point(0, 590); // Tool Bar // Main toolbar toolStrip = new ToolStrip(); toolStrip.Location = new Point(0, 24); toolStrip.Name = "toolStrip"; toolStrip.Items.Add("Write Tag", null, click_write_tag); toolStrip.Items.Add("Tag from File", null, click_tag_from_file); toolStrip.Items.Add("Tag from Filename", null, click_tag_from_filename); // Menu Bar // Top bar of application menuBar = new MenuStrip(); menuBar.SuspendLayout(); menuBar.Name = "menuBar"; menuBar.Location = new Point(0, 0); #region Menu Bar Items // File mb_file = new ToolStripMenuItem(); mb_file.Name = "mb_file"; mb_file.Text = "File"; // Open mb_file_open = new ToolStripMenuItem(); mb_file_open.Name = "mb_file_open"; mb_file_open.Text = "Open File(s)"; mb_file_open.Click += new EventHandler(mb_file_open_Click); // Exit mb_file_exit = new ToolStripMenuItem(); mb_file_exit.Name = "mb_file_exit"; mb_file_exit.Text = "Exit"; mb_file_exit.Click += new EventHandler(mb_file_exit_Click); mb_file.DropDownItems.AddRange(new ToolStripItem[] { mb_file_open, mb_file_exit}); // View mb_view = new ToolStripMenuItem(); mb_view.Name = "mb_view"; mb_view.Text = "View"; // Columns mb_view_columns = new ToolStripMenuItem(); mb_view_columns.Name = "mb_view_columns"; mb_view_columns.Text = "Columns..."; mb_view_columns.Click += new EventHandler(mb_view_columns_Click); mb_view.DropDownItems.AddRange(new ToolStripItem[] { mb_view_columns}); // Help mb_help = new ToolStripMenuItem(); mb_help.Name = "mb_help"; mb_help.Text = "Help"; // About mb_help_about = new ToolStripMenuItem(); mb_help_about.Name = "mb_help"; mb_help_about.Text = "About"; mb_help.DropDownItems.AddRange(new ToolStripItem[] { mb_help_about}); menuBar.Items.AddRange(new ToolStripItem[] { mb_file, mb_view, mb_help}); #endregion #endregion #region Main Interface // Main window components // Main window splitter mainSplit = new SplitContainer(); ((System.ComponentModel.ISupportInitialize)(mainSplit)).BeginInit(); mainSplit.Panel1.SuspendLayout(); mainSplit.Panel2.SuspendLayout(); mainSplit.SuspendLayout(); mainSplit.BorderStyle = BorderStyle.Fixed3D; mainSplit.Dock = DockStyle.Fill; mainSplit.FixedPanel = FixedPanel.Panel1; mainSplit.Location = new Point(0, 49); mainSplit.Name = "mainSplit"; // Control Side mainSplit.Panel1MinSize = 300; // File Side mainSplit.Panel2.Controls.Add(fileList); mainSplit.Size = new Size(984, 541); mainSplit.SplitterDistance = 300; mainSplit.TabIndex = 3; // File tag controls controlGrid = new DataGridView(); controlGrid.Dock = DockStyle.Fill; controlGrid.AllowUserToAddRows = false; controlGrid.CellValueChanged += new DataGridViewCellEventHandler(control_grid_value_change); controlGrid.RowHeadersVisible = false; DataGridViewColumn cg_property = new DataGridViewTextBoxColumn(); cg_property.HeaderText = "Property"; cg_property.ReadOnly = true; cg_property.SortMode = DataGridViewColumnSortMode.NotSortable; DataGridViewColumn cg_value = new DataGridViewTextBoxColumn(); cg_value.HeaderText = "Value"; cg_value.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; cg_value.SortMode = DataGridViewColumnSortMode.NotSortable; controlGrid.Columns.AddRange(new DataGridViewColumn[] {cg_property, cg_value}); foreach (String property in properties) controlGrid.Rows.Add(new String[] { property, "" }); // File list view fileList = new RightClickableListView(); fileList.Name = "fileList"; fileList.AllowColumnReorder = true; fileList.AllowDrop = true; // Drag-n-Drop fileList.Dock = DockStyle.Fill; fileList.Location = new Point(0, 0); fileList.View = View.Details; // Details View fileList.FullRowSelect = true; fileList.MultiSelect = true; fileList.HideSelection = false; fileList.KeyDown += new KeyEventHandler(fileList_key_press); fileList.ColumnContextMenuClicked += new RightClickableListView.ColumnContextMenuHandler(fileList_right_click); fileList.ItemSelectionChanged += new ListViewItemSelectionChangedEventHandler(fileList_selection); #endregion #region Dialogs // Dialog components openFileDialog = new OpenFileDialog(); openFileDialog.FileName = "openFileDialog"; #endregion #region Menus headerContext = new ContextMenu(); foreach (String header in MainWindow.headers) { MenuItem item = new MenuItem(header); item.Click += new EventHandler(header_menu_item_click); headerContext.MenuItems.Add(item); } #endregion #region Main Window // Settings for main window AutoScaleDimensions = new SizeF(6F, 13F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(984, 612); MinimumSize = new Size(700, 500); Name = "MainWindow"; Text = "File Tag"; #endregion #region Add Controls Controls.Add(mainSplit); Controls.Add(toolStrip); Controls.Add(statusBar); Controls.Add(menuBar); MainMenuStrip = menuBar; mainSplit.Panel1.Controls.Add(controlGrid); mainSplit.Panel2.Controls.Add(fileList); #endregion #region Resume Layouts menuBar.ResumeLayout(false); menuBar.PerformLayout(); mainSplit.Panel1.ResumeLayout(false); mainSplit.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(mainSplit)).EndInit(); mainSplit.ResumeLayout(false); ResumeLayout(false); PerformLayout(); #endregion }
private void InitializeComponent() { components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Main)); tabControl1 = new TabControl(); mainPage = new TabPage(); newVersionCheck = new CheckBox(); groupBox1 = new GroupBox(); newsBox = new Label(); userGroupLabel = new Label(); hackVersionLabel = new Label(); loaderVersionLabel = new Label(); startButton = new Button(); reloadButton = new Button(); label1 = new Label(); chatPage = new TabPage(); ircTabControl = new TabControl(); tabPage1 = new TabPage(); splitContainer1 = new SplitContainer(); label4 = new Label(); ircLanguage = new ComboBox(); label2 = new Label(); label3 = new Label(); enterChatButton = new Button(); autoEnterChatCheckBox = new CheckBox(); statusBox = new ListBox(); tabPage2 = new TabPage(); splitContainer2 = new SplitContainer(); splitContainer3 = new SplitContainer(); ircMessageBox = new RichTextBox(); ircUserList = new ListBox(); flowLayoutPanel1 = new FlowLayoutPanel(); ircSendButton = new Button(); ircChatText = new TextBox(); ircCloseButton = new Button(); scriptsPage = new TabPage(); scriptsDataGrid = new DataGridView(); LoadScript = new DataGridViewCheckBoxColumn(); ScriptName = new DataGridViewTextBoxColumn(); ScriptDescription = new DataGridViewTextBoxColumn(); State = new DataGridViewImageColumn(); ConfigColumn = new DataGridViewImageColumn(); listBinding = new BindingSource(components); scriptConfigPage = new TabPage(); scriptConfigGrid = new PropertyGrid(); repository = new TabPage(); tableLayoutPanel1 = new TableLayoutPanel(); tableLayoutPanel2 = new TableLayoutPanel(); tableLayoutPanel3 = new TableLayoutPanel(); repoName = new TextBox(); addRepo = new Button(); removeRepo = new Button(); repoScripts = new TreeView(); configPage = new TabPage(); configGrid = new PropertyGrid(); helpPage = new TabPage(); changelogLink = new LinkLabel(); bugLink = new LinkLabel(); scriptsLink = new LinkLabel(); installLink = new LinkLabel(); dotaFindTimer = new System.Windows.Forms.Timer(components); taskbarIcon = new NotifyIcon(components); injectWorker = new BackgroundWorker(); pipeWorker = new BackgroundWorker(); serverWorker = new BackgroundWorker(); updateTimer = new System.Windows.Forms.Timer(components); loadWorker = new BackgroundWorker(); DisableVAC = new CheckBox(); tabControl1.SuspendLayout(); mainPage.SuspendLayout(); groupBox1.SuspendLayout(); chatPage.SuspendLayout(); ircTabControl.SuspendLayout(); tabPage1.SuspendLayout(); splitContainer1.BeginInit(); splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); tabPage2.SuspendLayout(); splitContainer2.BeginInit(); splitContainer2.Panel1.SuspendLayout(); splitContainer2.Panel2.SuspendLayout(); splitContainer2.SuspendLayout(); splitContainer3.BeginInit(); splitContainer3.Panel1.SuspendLayout(); splitContainer3.Panel2.SuspendLayout(); splitContainer3.SuspendLayout(); flowLayoutPanel1.SuspendLayout(); scriptsPage.SuspendLayout(); ((ISupportInitialize)scriptsDataGrid).BeginInit(); ((ISupportInitialize)listBinding).BeginInit(); scriptConfigPage.SuspendLayout(); repository.SuspendLayout(); tableLayoutPanel1.SuspendLayout(); tableLayoutPanel2.SuspendLayout(); tableLayoutPanel3.SuspendLayout(); configPage.SuspendLayout(); helpPage.SuspendLayout(); SuspendLayout(); tabControl1.Controls.Add(mainPage); tabControl1.Controls.Add(chatPage); tabControl1.Controls.Add(scriptsPage); tabControl1.Controls.Add(scriptConfigPage); tabControl1.Controls.Add(repository); tabControl1.Controls.Add(configPage); tabControl1.Controls.Add(helpPage); tabControl1.Dock = DockStyle.Fill; tabControl1.Location = new Point(0, 0); tabControl1.Name = "tabControl1"; tabControl1.SelectedIndex = 0; tabControl1.Size = new Size(683, 428); tabControl1.TabIndex = 0; tabControl1.SelectedIndexChanged += new EventHandler(tabControl1_SelectedIndexChanged); mainPage.Controls.Add(DisableVAC); mainPage.Controls.Add(newVersionCheck); mainPage.Controls.Add(groupBox1); mainPage.Controls.Add(userGroupLabel); mainPage.Controls.Add(hackVersionLabel); mainPage.Controls.Add(loaderVersionLabel); mainPage.Controls.Add(startButton); mainPage.Controls.Add(reloadButton); mainPage.Controls.Add(label1); mainPage.Location = new Point(4, 22); mainPage.Name = "mainPage"; mainPage.Padding = new Padding(3); mainPage.Size = new Size(675, 402); mainPage.TabIndex = 0; mainPage.Text = "Main"; mainPage.UseVisualStyleBackColor = true; newVersionCheck.AutoSize = true; newVersionCheck.Location = new Point(9, 94); newVersionCheck.Name = "newVersionCheck"; newVersionCheck.Size = new Size(105, 17); newVersionCheck.TabIndex = 8; newVersionCheck.Text = "Use new version"; newVersionCheck.UseVisualStyleBackColor = true; newVersionCheck.Visible = false; groupBox1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; groupBox1.Controls.Add(newsBox); groupBox1.Location = new Point(194, 6); groupBox1.Name = "groupBox1"; groupBox1.Size = new Size(462, 358); groupBox1.TabIndex = 7; groupBox1.TabStop = false; groupBox1.Text = "News"; newsBox.Dock = DockStyle.Fill; newsBox.Location = new Point(3, 16); newsBox.Name = "newsBox"; newsBox.Size = new Size(456, 339); newsBox.TabIndex = 0; userGroupLabel.AutoSize = true; userGroupLabel.Dock = DockStyle.Bottom; userGroupLabel.Location = new Point(3, 360); userGroupLabel.Name = "userGroupLabel"; userGroupLabel.Size = new Size(86, 13); userGroupLabel.TabIndex = 6; userGroupLabel.Text = "Account Status: "; hackVersionLabel.AutoSize = true; hackVersionLabel.Dock = DockStyle.Bottom; hackVersionLabel.Location = new Point(3, 373); hackVersionLabel.Name = "hackVersionLabel"; hackVersionLabel.Size = new Size(76, 13); hackVersionLabel.TabIndex = 5; hackVersionLabel.Text = "Hack version: "; loaderVersionLabel.AutoSize = true; loaderVersionLabel.Dock = DockStyle.Bottom; loaderVersionLabel.Location = new Point(3, 386); loaderVersionLabel.Name = "loaderVersionLabel"; loaderVersionLabel.Size = new Size(83, 13); loaderVersionLabel.TabIndex = 4; loaderVersionLabel.Text = "Loader version: "; startButton.Enabled = false; startButton.Location = new Point(9, 28); startButton.Name = "startButton"; startButton.Size = new Size(121, 23); startButton.TabIndex = 3; startButton.Text = "Start Dota2"; startButton.UseVisualStyleBackColor = true; startButton.Click += new EventHandler(startButton_Click); reloadButton.Location = new Point(9, 57); reloadButton.Name = "reloadButton"; reloadButton.Size = new Size(121, 21); reloadButton.TabIndex = 2; reloadButton.Text = "Reload Scripts"; reloadButton.UseVisualStyleBackColor = true; reloadButton.Click += new EventHandler(reloadButton_Click); label1.AutoSize = true; label1.Location = new Point(8, 3); label1.Name = "label1"; label1.Size = new Size(40, 13); label1.TabIndex = 1; label1.Text = "Status:"; chatPage.Controls.Add(ircTabControl); chatPage.Location = new Point(4, 22); chatPage.Name = "chatPage"; chatPage.Size = new Size(675, 402); chatPage.TabIndex = 6; chatPage.Text = "Chat"; chatPage.UseVisualStyleBackColor = true; ircTabControl.Appearance = TabAppearance.Buttons; ircTabControl.Controls.Add(tabPage1); ircTabControl.Controls.Add(tabPage2); ircTabControl.Dock = DockStyle.Fill; ircTabControl.ItemSize = new Size(0, 1); ircTabControl.Location = new Point(0, 0); ircTabControl.Name = "ircTabControl"; ircTabControl.SelectedIndex = 0; ircTabControl.Size = new Size(675, 402); ircTabControl.SizeMode = TabSizeMode.Fixed; ircTabControl.TabIndex = 7; tabPage1.Controls.Add(splitContainer1); tabPage1.Location = new Point(4, 5); tabPage1.Name = "tabPage1"; tabPage1.Padding = new Padding(3); tabPage1.Size = new Size(667, 393); tabPage1.TabIndex = 0; tabPage1.Text = "tabPage1"; tabPage1.UseVisualStyleBackColor = true; splitContainer1.Dock = DockStyle.Fill; splitContainer1.FixedPanel = FixedPanel.Panel1; splitContainer1.IsSplitterFixed = true; splitContainer1.Location = new Point(3, 3); splitContainer1.Name = "splitContainer1"; splitContainer1.Orientation = Orientation.Horizontal; splitContainer1.Panel1.Controls.Add(label4); splitContainer1.Panel1.Controls.Add(ircLanguage); splitContainer1.Panel1.Controls.Add(label2); splitContainer1.Panel1.Controls.Add(label3); splitContainer1.Panel1.Controls.Add(enterChatButton); splitContainer1.Panel1.Controls.Add(autoEnterChatCheckBox); splitContainer1.Panel2.Controls.Add(statusBox); splitContainer1.Size = new Size(661, 387); splitContainer1.SplitterDistance = 70; splitContainer1.TabIndex = 5; label4.AutoSize = true; label4.Location = new Point(270, 20); label4.Name = "label4"; label4.Size = new Size(58, 13); label4.TabIndex = 6; label4.Text = "Language:"; ircLanguage.DropDownStyle = ComboBoxStyle.DropDownList; ircLanguage.FormattingEnabled = true; ircLanguage.Items.AddRange(new object[3] { "English", "Russian", "German" }); ircLanguage.Location = new Point(334, 16); ircLanguage.Name = "ircLanguage"; ircLanguage.Size = new Size(121, 21); ircLanguage.TabIndex = 5; label2.AutoSize = true; label2.Location = new Point(3, 0); label2.Name = "label2"; label2.Size = new Size(385, 13); label2.TabIndex = 2; label2.Text = "The chat will connect to irc.rizon.net:6697/zynox with your forum account name."; label3.AutoSize = true; label3.Location = new Point(3, 53); label3.Name = "label3"; label3.Size = new Size(40, 13); label3.TabIndex = 4; label3.Text = "Status:"; enterChatButton.Location = new Point(6, 16); enterChatButton.Name = "enterChatButton"; enterChatButton.Size = new Size(75, 22); enterChatButton.TabIndex = 0; enterChatButton.Text = "Enter chat"; enterChatButton.UseVisualStyleBackColor = true; enterChatButton.Click += new EventHandler(enterChatButton_Click); autoEnterChatCheckBox.AutoSize = true; autoEnterChatCheckBox.Location = new Point(87, 20); autoEnterChatCheckBox.Name = "autoEnterChatCheckBox"; autoEnterChatCheckBox.Size = new Size(125, 17); autoEnterChatCheckBox.TabIndex = 1; autoEnterChatCheckBox.Text = "Enter chat on startup"; autoEnterChatCheckBox.UseVisualStyleBackColor = true; autoEnterChatCheckBox.CheckedChanged += new EventHandler(autoEnterChatCheckBox_CheckedChanged); statusBox.Dock = DockStyle.Fill; statusBox.FormattingEnabled = true; statusBox.Location = new Point(0, 0); statusBox.Name = "statusBox"; statusBox.Size = new Size(661, 313); statusBox.TabIndex = 3; tabPage2.Controls.Add(splitContainer2); tabPage2.Location = new Point(4, 5); tabPage2.Name = "tabPage2"; tabPage2.Padding = new Padding(3); tabPage2.Size = new Size(667, 393); tabPage2.TabIndex = 1; tabPage2.Text = "tabPage2"; tabPage2.UseVisualStyleBackColor = true; splitContainer2.Dock = DockStyle.Fill; splitContainer2.FixedPanel = FixedPanel.Panel2; splitContainer2.IsSplitterFixed = true; splitContainer2.Location = new Point(3, 3); splitContainer2.Name = "splitContainer2"; splitContainer2.Orientation = Orientation.Horizontal; splitContainer2.Panel1.Controls.Add(splitContainer3); splitContainer2.Panel2.Controls.Add(flowLayoutPanel1); splitContainer2.Size = new Size(661, 387); splitContainer2.SplitterDistance = 354; splitContainer2.TabIndex = 5; splitContainer3.Dock = DockStyle.Fill; splitContainer3.Location = new Point(0, 0); splitContainer3.Name = "splitContainer3"; splitContainer3.Panel1.Controls.Add(ircMessageBox); splitContainer3.Panel2.Controls.Add(ircUserList); splitContainer3.Size = new Size(661, 354); splitContainer3.SplitterDistance = 509; splitContainer3.TabIndex = 0; ircMessageBox.Dock = DockStyle.Fill; ircMessageBox.Location = new Point(0, 0); ircMessageBox.Name = "ircMessageBox"; ircMessageBox.ReadOnly = true; ircMessageBox.Size = new Size(509, 354); ircMessageBox.TabIndex = 4; ircMessageBox.Text = ""; ircUserList.Dock = DockStyle.Fill; ircUserList.DrawMode = DrawMode.OwnerDrawVariable; ircUserList.FormattingEnabled = true; ircUserList.Location = new Point(0, 0); ircUserList.Name = "ircUserList"; ircUserList.Size = new Size(148, 354); ircUserList.TabIndex = 4; ircUserList.DrawItem += new DrawItemEventHandler(ircUserList_DrawItem); ircUserList.SelectedIndexChanged += new EventHandler(ircUserList_SelectedIndexChanged); ircUserList.Resize += new EventHandler(ircUserList_Resize); flowLayoutPanel1.Controls.Add(ircSendButton); flowLayoutPanel1.Controls.Add(ircChatText); flowLayoutPanel1.Controls.Add(ircCloseButton); flowLayoutPanel1.Dock = DockStyle.Fill; flowLayoutPanel1.Location = new Point(0, 0); flowLayoutPanel1.Name = "flowLayoutPanel1"; flowLayoutPanel1.Size = new Size(661, 29); flowLayoutPanel1.TabIndex = 4; flowLayoutPanel1.Resize += new EventHandler(flowLayoutPanel1_Resize); ircSendButton.Location = new Point(3, 3); ircSendButton.Name = "ircSendButton"; ircSendButton.Size = new Size(75, 20); ircSendButton.TabIndex = 1; ircSendButton.Text = "Send"; ircSendButton.UseVisualStyleBackColor = true; ircSendButton.Click += new EventHandler(ircSendButton_Click); ircChatText.AcceptsTab = true; ircChatText.Location = new Point(84, 3); ircChatText.Multiline = true; ircChatText.Name = "ircChatText"; ircChatText.Size = new Size(492, 20); ircChatText.TabIndex = 2; ircChatText.KeyDown += new KeyEventHandler(ircChatText_KeyDown); ircChatText.KeyPress += new KeyPressEventHandler(ircChatText_KeyPress); ircCloseButton.Location = new Point(582, 3); ircCloseButton.Name = "ircCloseButton"; ircCloseButton.Size = new Size(74, 20); ircCloseButton.TabIndex = 0; ircCloseButton.Text = "Quit Chat"; ircCloseButton.UseVisualStyleBackColor = true; ircCloseButton.Click += new EventHandler(ircCloseButton_Click); scriptsPage.Controls.Add(scriptsDataGrid); scriptsPage.Location = new Point(4, 22); scriptsPage.Name = "scriptsPage"; scriptsPage.Padding = new Padding(3); scriptsPage.Size = new Size(675, 402); scriptsPage.TabIndex = 1; scriptsPage.Text = "Scripts"; scriptsPage.UseVisualStyleBackColor = true; scriptsDataGrid.AllowUserToAddRows = false; scriptsDataGrid.AllowUserToDeleteRows = false; scriptsDataGrid.AllowUserToResizeColumns = false; scriptsDataGrid.AllowUserToResizeRows = false; scriptsDataGrid.AutoGenerateColumns = false; scriptsDataGrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; scriptsDataGrid.Columns.AddRange(LoadScript, ScriptName, ScriptDescription, State, ConfigColumn); scriptsDataGrid.DataSource = listBinding; scriptsDataGrid.Dock = DockStyle.Fill; scriptsDataGrid.Location = new Point(3, 3); scriptsDataGrid.Name = "scriptsDataGrid"; scriptsDataGrid.Size = new Size(669, 396); scriptsDataGrid.TabIndex = 0; scriptsDataGrid.CellContentClick += new DataGridViewCellEventHandler(scriptsDataGrid_CellContentClick); scriptsDataGrid.CellFormatting += new DataGridViewCellFormattingEventHandler(scriptsDataGrid_CellFormatting); LoadScript.DataPropertyName = "LoadScript"; LoadScript.HeaderText = "Load"; LoadScript.Name = "LoadScript"; LoadScript.Width = 38; ScriptName.AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; ScriptName.DataPropertyName = "ScriptName"; ScriptName.HeaderText = "Name"; ScriptName.Name = "ScriptName"; ScriptName.ReadOnly = true; ScriptName.Width = 60; ScriptDescription.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; ScriptDescription.DataPropertyName = "ScriptDescription"; ScriptDescription.HeaderText = "Description"; ScriptDescription.Name = "ScriptDescription"; ScriptDescription.ReadOnly = true; State.AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader; State.HeaderText = "Libs"; State.MinimumWidth = 16; State.Name = "State"; State.ReadOnly = true; State.Width = 32; ConfigColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader; ConfigColumn.HeaderText = "Config"; ConfigColumn.Name = "ConfigColumn"; ConfigColumn.ReadOnly = true; ConfigColumn.Width = 43; scriptConfigPage.Controls.Add(scriptConfigGrid); scriptConfigPage.Location = new Point(4, 22); scriptConfigPage.Name = "scriptConfigPage"; scriptConfigPage.Size = new Size(675, 402); scriptConfigPage.TabIndex = 5; scriptConfigPage.Text = "Script-Config"; scriptConfigPage.UseVisualStyleBackColor = true; scriptConfigGrid.Dock = DockStyle.Fill; scriptConfigGrid.HelpVisible = false; scriptConfigGrid.Location = new Point(0, 0); scriptConfigGrid.Name = "scriptConfigGrid"; scriptConfigGrid.Size = new Size(675, 402); scriptConfigGrid.TabIndex = 0; scriptConfigGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(scriptConfigGrid_PropertyValueChanged); repository.Controls.Add(tableLayoutPanel1); repository.Location = new Point(4, 22); repository.Name = "repository"; repository.Padding = new Padding(3); repository.Size = new Size(675, 402); repository.TabIndex = 4; repository.Text = "Repository"; repository.UseVisualStyleBackColor = true; tableLayoutPanel1.ColumnCount = 1; tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 32.61868f)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 67.38132f)); tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 0, 0); tableLayoutPanel1.Dock = DockStyle.Fill; tableLayoutPanel1.Location = new Point(3, 3); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 1; tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50f)); tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 396f)); tableLayoutPanel1.Size = new Size(669, 396); tableLayoutPanel1.TabIndex = 0; tableLayoutPanel2.ColumnCount = 1; tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f)); tableLayoutPanel2.Controls.Add(tableLayoutPanel3, 0, 2); tableLayoutPanel2.Controls.Add(repoScripts, 0, 0); tableLayoutPanel2.Dock = DockStyle.Fill; tableLayoutPanel2.Location = new Point(0, 0); tableLayoutPanel2.Margin = new Padding(0); tableLayoutPanel2.Name = "tableLayoutPanel2"; tableLayoutPanel2.RowCount = 3; tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 100f)); tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 25f)); tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 25f)); tableLayoutPanel2.Size = new Size(669, 396); tableLayoutPanel2.TabIndex = 1; tableLayoutPanel3.ColumnCount = 4; tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f)); tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 120f)); tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 80f)); tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 120f)); tableLayoutPanel3.Controls.Add(repoName, 0, 0); tableLayoutPanel3.Controls.Add(addRepo, 1, 0); tableLayoutPanel3.Controls.Add(removeRepo, 3, 0); tableLayoutPanel3.Dock = DockStyle.Fill; tableLayoutPanel3.Location = new Point(0, 371); tableLayoutPanel3.Margin = new Padding(0); tableLayoutPanel3.Name = "tableLayoutPanel3"; tableLayoutPanel3.RowCount = 1; tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 100f)); tableLayoutPanel3.Size = new Size(669, 25); tableLayoutPanel3.TabIndex = 0; repoName.Dock = DockStyle.Fill; repoName.Location = new Point(3, 3); repoName.Name = "repoName"; repoName.Size = new Size(343, 20); repoName.TabIndex = 1; repoName.TextChanged += new EventHandler(repoName_TextChanged); addRepo.Dock = DockStyle.Fill; addRepo.Enabled = false; addRepo.Location = new Point(352, 3); addRepo.Name = "addRepo"; addRepo.Size = new Size(114, 19); addRepo.TabIndex = 0; addRepo.Text = "Add"; addRepo.UseVisualStyleBackColor = true; addRepo.Click += new EventHandler(addRepo_Click); removeRepo.Dock = DockStyle.Fill; removeRepo.Enabled = false; removeRepo.Location = new Point(552, 3); removeRepo.Name = "removeRepo"; removeRepo.Size = new Size(114, 19); removeRepo.TabIndex = 1; removeRepo.Text = "Remove"; removeRepo.UseVisualStyleBackColor = true; removeRepo.Click += new EventHandler(removeRepo_Click); repoScripts.CheckBoxes = true; repoScripts.Dock = DockStyle.Fill; repoScripts.Location = new Point(3, 3); repoScripts.Name = "repoScripts"; repoScripts.Size = new Size(663, 340); repoScripts.TabIndex = 1; repoScripts.AfterCheck += new TreeViewEventHandler(repoScripts_AfterCheck); repoScripts.NodeMouseClick += new TreeNodeMouseClickEventHandler(repoScripts_NodeMouseClick); configPage.Controls.Add(configGrid); configPage.Location = new Point(4, 22); configPage.Name = "configPage"; configPage.Size = new Size(675, 402); configPage.TabIndex = 2; configPage.Text = "Options"; configPage.UseVisualStyleBackColor = true; configGrid.Dock = DockStyle.Fill; configGrid.Location = new Point(0, 0); configGrid.Name = "configGrid"; configGrid.Size = new Size(675, 402); configGrid.TabIndex = 0; configGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(configGrid_PropertyValueChanged); helpPage.Controls.Add(changelogLink); helpPage.Controls.Add(bugLink); helpPage.Controls.Add(scriptsLink); helpPage.Controls.Add(installLink); helpPage.Location = new Point(4, 22); helpPage.Name = "helpPage"; helpPage.Size = new Size(675, 402); helpPage.TabIndex = 3; helpPage.Text = "Help"; helpPage.UseVisualStyleBackColor = true; changelogLink.AutoSize = true; changelogLink.Location = new Point(8, 55); changelogLink.Name = "changelogLink"; changelogLink.Size = new Size(58, 13); changelogLink.TabIndex = 3; changelogLink.TabStop = true; changelogLink.Text = "Changelog"; changelogLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked); bugLink.AutoSize = true; bugLink.Location = new Point(8, 78); bugLink.Name = "bugLink"; bugLink.Size = new Size(61, 13); bugLink.TabIndex = 2; bugLink.TabStop = true; bugLink.Text = "Bug reports"; bugLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked); scriptsLink.AutoSize = true; scriptsLink.Location = new Point(8, 34); scriptsLink.Name = "scriptsLink"; scriptsLink.Size = new Size(68, 13); scriptsLink.TabIndex = 1; scriptsLink.TabStop = true; scriptsLink.Text = "Scripts forum"; scriptsLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked); installLink.AutoSize = true; installLink.Location = new Point(8, 12); installLink.Name = "installLink"; installLink.Size = new Size(86, 13); installLink.TabIndex = 0; installLink.TabStop = true; installLink.Text = "Installation guide"; installLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked); dotaFindTimer.Interval = 125; dotaFindTimer.Tick += new EventHandler(dotaFindTimer_Tick); taskbarIcon.Icon = (Icon)componentResourceManager.GetObject("taskbarIcon.Icon"); taskbarIcon.Text = "Ensage"; taskbarIcon.Visible = true; taskbarIcon.Click += new EventHandler(notifyIcon1_Click); injectWorker.WorkerReportsProgress = true; injectWorker.DoWork += new DoWorkEventHandler(injectWorker_DoWork); injectWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(injectWorker_RunWorkerCompleted); pipeWorker.WorkerReportsProgress = true; pipeWorker.DoWork += new DoWorkEventHandler(pipeWorker_DoWork); pipeWorker.ProgressChanged += new ProgressChangedEventHandler(pipeWorker_ProgressChanged); serverWorker.DoWork += new DoWorkEventHandler(serverWorker_DoWork); updateTimer.Interval = 60000; updateTimer.Tick += new EventHandler(updateTimer_Tick); loadWorker.WorkerReportsProgress = true; loadWorker.DoWork += new DoWorkEventHandler(loadWorker_DoWork); loadWorker.ProgressChanged += new ProgressChangedEventHandler(loadWorker_ProgressChanged); DisableVAC.AutoSize = true; DisableVAC.Location = new Point(11, 151); DisableVAC.Name = "DisableVAC"; DisableVAC.Size = new Size(103, 17); DisableVAC.TabIndex = 9; DisableVAC.Text = "disable anti-VAC"; DisableVAC.UseVisualStyleBackColor = true; AutoScaleDimensions = new SizeF(6f, 13f); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(683, 428); Controls.Add(tabControl1); Icon = (Icon)componentResourceManager.GetObject("$this.Icon"); MinimumSize = new Size(683, 428); Name = "Main"; Text = "Ensage - Main"; FormClosing += new FormClosingEventHandler(Main_FormClosing); Shown += new EventHandler(Main_Shown); Resize += new EventHandler(Main_Resize); tabControl1.ResumeLayout(false); mainPage.ResumeLayout(false); mainPage.PerformLayout(); groupBox1.ResumeLayout(false); chatPage.ResumeLayout(false); ircTabControl.ResumeLayout(false); tabPage1.ResumeLayout(false); splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel1.PerformLayout(); splitContainer1.Panel2.ResumeLayout(false); splitContainer1.EndInit(); splitContainer1.ResumeLayout(false); tabPage2.ResumeLayout(false); splitContainer2.Panel1.ResumeLayout(false); splitContainer2.Panel2.ResumeLayout(false); splitContainer2.EndInit(); splitContainer2.ResumeLayout(false); splitContainer3.Panel1.ResumeLayout(false); splitContainer3.Panel2.ResumeLayout(false); splitContainer3.EndInit(); splitContainer3.ResumeLayout(false); flowLayoutPanel1.ResumeLayout(false); flowLayoutPanel1.PerformLayout(); scriptsPage.ResumeLayout(false); ((ISupportInitialize)scriptsDataGrid).EndInit(); ((ISupportInitialize)listBinding).EndInit(); scriptConfigPage.ResumeLayout(false); repository.ResumeLayout(false); tableLayoutPanel1.ResumeLayout(false); tableLayoutPanel2.ResumeLayout(false); tableLayoutPanel3.ResumeLayout(false); tableLayoutPanel3.PerformLayout(); configPage.ResumeLayout(false); helpPage.ResumeLayout(false); helpPage.PerformLayout(); ResumeLayout(false); }
public MultiPropControl() { m_propControls = new Sce.Atf.Controls.PropertyEditing.PropertyGrid[2]; m_propControls[0] = new Sce.Atf.Controls.PropertyEditing.PropertyGrid(); m_propControls[1] = new Sce.Atf.Controls.PropertyEditing.PropertyGrid(); Layout += OnLayout; m_splitContainer = new SplitContainer(); SuspendLayout(); m_splitContainer.SuspendLayout(); m_splitContainer.Panel1.SuspendLayout(); m_splitContainer.Panel2.SuspendLayout(); m_propControls[0].Dock = DockStyle.Fill; m_splitContainer.Panel1.Controls.Add(m_propControls[0]); m_propControls[1].Dock = DockStyle.Fill; m_splitContainer.Panel2.Controls.Add(m_propControls[1]); m_splitContainer.FixedPanel = FixedPanel.None; m_splitContainer.Dock = DockStyle.Fill; Controls.Add(m_splitContainer); m_splitContainer.Panel2.ResumeLayout(false); m_splitContainer.Panel1.ResumeLayout(false); m_splitContainer.ResumeLayout(false); this.ResumeLayout(true); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); Load += new EventHandler(Help_Load); Shown += new EventHandler(Help_Shown); TreeNode TreeNode1 = new TreeNode("Introduction"); TreeNode TreeNode2 = new TreeNode("Prerequisites"); TreeNode TreeNode3 = new TreeNode("Installation"); TreeNode TreeNode4 = new TreeNode("Configuration"); TreeNode TreeNode5 = new TreeNode("SQL Configuration"); TreeNode TreeNode6 = new TreeNode("Command-Line Switches"); TreeNode TreeNode7 = new TreeNode("Getting Started", new TreeNode[] {TreeNode2, TreeNode3, TreeNode4, TreeNode5, TreeNode6}); TreeNode TreeNode8 = new TreeNode("Main Menu"); TreeNode TreeNode9 = new TreeNode("Connections"); TreeNode TreeNode10 = new TreeNode("Config"); TreeNode TreeNode11 = new TreeNode("Errors and Infos"); TreeNode TreeNode12 = new TreeNode("Save As / Export"); TreeNode TreeNode14 = new TreeNode("Screenshot Manager"); TreeNode TreeNode15 = new TreeNode("Connection"); TreeNode TreeNode16 = new TreeNode("Options"); TreeNode TreeNode17 = new TreeNode("Update"); TreeNode TreeNode18 = new TreeNode("SSH File Transfer"); TreeNode TreeNode19 = new TreeNode("Quick Connect"); TreeNode TreeNode20 = new TreeNode("Import From Active Directory"); TreeNode TreeNode21 = new TreeNode("External Applications"); TreeNode TreeNode22 = new TreeNode("Port Scan"); TreeNode TreeNode23 = new TreeNode("User Interface", new TreeNode[] {TreeNode8, TreeNode9, TreeNode10, TreeNode11, TreeNode12, TreeNode14, TreeNode15, TreeNode16, TreeNode17, TreeNode18, TreeNode19, TreeNode20, TreeNode21, TreeNode22}); TreeNode TreeNode24 = new TreeNode("Quick Reference"); TreeNode TreeNode25 = new TreeNode("Help", new TreeNode[] {TreeNode1, TreeNode7, TreeNode23, TreeNode24}); wbHelp = new WebBrowser(); wbHelp.DocumentTitleChanged += new EventHandler(wbHelp_DocumentTitleChanged); tvIndex = new TreeView(); tvIndex.NodeMouseClick += new TreeNodeMouseClickEventHandler(tvIndex_NodeMouseClick); tvIndex.AfterSelect += new TreeViewEventHandler(tvIndex_AfterSelect); imgListHelp = new ImageList(components); pnlSplitter = new SplitContainer(); lblDocName = new Label(); pnlSplitter.Panel1.SuspendLayout(); pnlSplitter.Panel2.SuspendLayout(); pnlSplitter.SuspendLayout(); SuspendLayout(); // //wbHelp // wbHelp.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right; wbHelp.Location = new System.Drawing.Point(1, 36); wbHelp.MinimumSize = new System.Drawing.Size(20, 20); wbHelp.Name = "wbHelp"; wbHelp.ScriptErrorsSuppressed = true; wbHelp.Size = new System.Drawing.Size(327, 286); wbHelp.TabIndex = 1; // //tvIndex // tvIndex.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right; tvIndex.BorderStyle = BorderStyle.None; tvIndex.HideSelection = false; tvIndex.Location = new System.Drawing.Point(1, 1); tvIndex.Name = "tvIndex"; TreeNode1.Name = "Node0"; TreeNode1.Tag = "Introduction"; TreeNode1.Text = "Introduction"; TreeNode2.Name = "Node0"; TreeNode2.Tag = "Prerequisites"; TreeNode2.Text = "Prerequisites"; TreeNode3.Name = "Node3"; TreeNode3.Tag = "Installation"; TreeNode3.Text = "Installation"; TreeNode4.Name = "Node4"; TreeNode4.Tag = "Configuration"; TreeNode4.Text = "Configuration"; TreeNode5.Name = "Node0"; TreeNode5.Tag = "ConfigurationSQL"; TreeNode5.Text = "SQL Configuration"; TreeNode6.Name = "Node5"; TreeNode6.Tag = "CMDSwitches"; TreeNode6.Text = "Command-Line Switches"; TreeNode7.Name = "Node1"; TreeNode7.Text = "Getting Started"; TreeNode8.Name = "Node7"; TreeNode8.Tag = "MainMenu"; TreeNode8.Text = "Main Menu"; TreeNode9.Name = "Node8"; TreeNode9.Tag = "Connections"; TreeNode9.Text = "Connections"; TreeNode10.Name = "Node9"; TreeNode10.Tag = "Config"; TreeNode10.Text = "Config"; TreeNode11.Name = "Node10"; TreeNode11.Tag = "ErrorsAndInfos"; TreeNode11.Text = "Errors and Infos"; TreeNode12.Name = "Node11"; TreeNode12.Tag = "SaveAsExport"; TreeNode12.Text = "Save As / Export"; TreeNode14.Name = "Node13"; TreeNode14.Tag = "ScreenshotManager"; TreeNode14.Text = "Screenshot Manager"; TreeNode15.Name = "Node14"; TreeNode15.Tag = "Connection"; TreeNode15.Text = "Connection"; TreeNode16.Name = "Node15"; TreeNode16.Tag = "Options"; TreeNode16.Text = "Options"; TreeNode17.Name = "Node16"; TreeNode17.Tag = "Update"; TreeNode17.Text = "Update"; TreeNode18.Name = "Node17"; TreeNode18.Tag = "SSHFileTransfer"; TreeNode18.Text = "SSH File Transfer"; TreeNode19.Name = "Node18"; TreeNode19.Tag = "QuickConnect"; TreeNode19.Text = "Quick Connect"; TreeNode20.Name = "Node19"; TreeNode20.Tag = "ImportFromAD"; TreeNode20.Text = "Import From Active Directory"; TreeNode21.Name = "Node1"; TreeNode21.Tag = "ExternalTools"; TreeNode21.Text = "External Tools"; TreeNode22.Name = "Node0"; TreeNode22.Tag = "PortScan"; TreeNode22.Text = "Port Scan"; TreeNode23.Name = "Node6"; TreeNode23.Text = "User Interface"; TreeNode24.Name = "Node20"; TreeNode24.Tag = "QuickReference"; TreeNode24.Text = "Quick Reference"; TreeNode25.Name = "Node0"; TreeNode25.Text = "Help"; TreeNode25.Tag = "Index"; tvIndex.Nodes.AddRange(new TreeNode[] {TreeNode25}); tvIndex.ShowRootLines = false; tvIndex.Size = new System.Drawing.Size(207, 321); tvIndex.TabIndex = 0; // //imgListHelp // imgListHelp.ColorDepth = ColorDepth.Depth32Bit; imgListHelp.ImageSize = new System.Drawing.Size(16, 16); imgListHelp.TransparentColor = System.Drawing.Color.Transparent; // //pnlSplitter // pnlSplitter.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right; pnlSplitter.FixedPanel = FixedPanel.Panel1; pnlSplitter.Location = new System.Drawing.Point(0, 0); pnlSplitter.Name = "pnlSplitter"; // //pnlSplitter.Panel1 // pnlSplitter.Panel1.Controls.Add(tvIndex); // //pnlSplitter.Panel2 // pnlSplitter.Panel2.Controls.Add(lblDocName); pnlSplitter.Panel2.Controls.Add(wbHelp); pnlSplitter.Size = new System.Drawing.Size(542, 323); pnlSplitter.SplitterDistance = 209; pnlSplitter.TabIndex = 2; // //lblDocName // lblDocName.Anchor = (AnchorStyles.Top | AnchorStyles.Left) | AnchorStyles.Right; lblDocName.BackColor = System.Drawing.Color.DimGray; lblDocName.Font = new System.Drawing.Font("Segoe UI", 12.0F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, Convert.ToByte(0)); lblDocName.ForeColor = System.Drawing.Color.White; lblDocName.Location = new System.Drawing.Point(1, 1); lblDocName.Name = "lblDocName"; lblDocName.Size = new System.Drawing.Size(327, 35); lblDocName.TabIndex = 2; lblDocName.Text = "Introduction"; lblDocName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // //Help // ClientSize = new System.Drawing.Size(542, 323); Controls.Add(pnlSplitter); Icon = Resources.Help_Icon; Name = "Help"; TabText = "Help"; Text = "Help"; pnlSplitter.Panel1.ResumeLayout(false); pnlSplitter.Panel2.ResumeLayout(false); pnlSplitter.ResumeLayout(false); ResumeLayout(false); }
void IntialOneView() { this.Controls.Clear(); //SplitContainer verticalRoot = new SplitContainer(); _viewContainerRoot = new SplitContainer(); ((System.ComponentModel.ISupportInitialize) (_viewContainerRoot)).BeginInit(); _viewContainerRoot.Panel1.SuspendLayout(); _viewContainerRoot.Panel2.SuspendLayout(); _viewContainerRoot.SuspendLayout(); _viewContainerRoot.Dock = DockStyle.Fill; _viewContainerRoot.Location = new System.Drawing.Point(0, 0); _viewContainerRoot.Name = "VerticalRoot"; _viewContainerRoot.Orientation = Orientation.Vertical; SplitContainer view1 = new ViewContainer("View1", true); // _viewContainerRoot.Panel1.Controls.Add(view1); this.Controls.Add(view1); this.Controls.Add(_viewContainerRoot); view1.Panel1.ResumeLayout(false); view1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize) view1).EndInit(); view1.ResumeLayout(false); _viewContainerRoot.Panel1.ResumeLayout(false); _viewContainerRoot.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize) _viewContainerRoot).EndInit(); _viewContainerRoot.ResumeLayout(false); this.Name = "ViewPanal"; this.InitLayout(); }
/// <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.SplitContainer splitContainer1; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeluxeTreeItemsEditorForm)); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.DeluxTreeToolStrip = new System.Windows.Forms.ToolStrip(); this._addRootButton = new System.Windows.Forms.ToolStripButton(); this._addChildButton = new System.Windows.Forms.ToolStripButton(); this._removeButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this._moveUpButton = new System.Windows.Forms.ToolStripButton(); this._moveDownButton = new System.Windows.Forms.ToolStripButton(); this._indentButton = new System.Windows.Forms.ToolStripButton(); this._unindentButton = new System.Windows.Forms.ToolStripButton(); this._treeView = new System.Windows.Forms.TreeView(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.pictureBox2 = new System.Windows.Forms.PictureBox(); splitContainer1 = new System.Windows.Forms.SplitContainer(); ((System.ComponentModel.ISupportInitialize)(splitContainer1)).BeginInit(); splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); this.tableLayoutPanel3.SuspendLayout(); this.DeluxTreeToolStrip.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // splitContainer1 // splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; splitContainer1.Location = new System.Drawing.Point(0, 0); splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel3); // // splitContainer1.Panel2 // splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel1); splitContainer1.Size = new System.Drawing.Size(518, 366); splitContainer1.SplitterDistance = 257; splitContainer1.TabIndex = 11; // // tableLayoutPanel3 // this.tableLayoutPanel3.ColumnCount = 1; this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 24F)); this.tableLayoutPanel3.Controls.Add(this.DeluxTreeToolStrip, 0, 1); this.tableLayoutPanel3.Controls.Add(this._treeView, 0, 2); this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.RowCount = 4; this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 34F)); this.tableLayoutPanel3.Size = new System.Drawing.Size(257, 366); this.tableLayoutPanel3.TabIndex = 11; // // DeluxTreeToolStrip // this.DeluxTreeToolStrip.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.DeluxTreeToolStrip.Dock = System.Windows.Forms.DockStyle.None; this.DeluxTreeToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.DeluxTreeToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._addRootButton, this._addChildButton, this._removeButton, this.toolStripSeparator1, this._moveUpButton, this._moveDownButton, this._indentButton, this._unindentButton}); this.DeluxTreeToolStrip.Location = new System.Drawing.Point(0, 22); this.DeluxTreeToolStrip.Name = "DeluxTreeToolStrip"; this.DeluxTreeToolStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; this.DeluxTreeToolStrip.Size = new System.Drawing.Size(257, 29); this.DeluxTreeToolStrip.TabIndex = 10; this.DeluxTreeToolStrip.Text = "toolStrip1"; // // _addRootButton // this._addRootButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._addRootButton.Image = ((System.Drawing.Image)(resources.GetObject("_addRootButton.Image"))); this._addRootButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._addRootButton.Name = "_addRootButton"; this._addRootButton.Size = new System.Drawing.Size(23, 26); this._addRootButton.Text = "Add Root Button"; this._addRootButton.Click += new System.EventHandler(this._addRootButton_Click); // // _addChildButton // this._addChildButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._addChildButton.Image = ((System.Drawing.Image)(resources.GetObject("_addChildButton.Image"))); this._addChildButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._addChildButton.Name = "_addChildButton"; this._addChildButton.Size = new System.Drawing.Size(23, 26); this._addChildButton.Text = "Add Child Button"; this._addChildButton.Click += new System.EventHandler(this._addChildButton_Click); // // _removeButton // this._removeButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._removeButton.Image = ((System.Drawing.Image)(resources.GetObject("_removeButton.Image"))); this._removeButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._removeButton.Name = "_removeButton"; this._removeButton.Size = new System.Drawing.Size(23, 26); this._removeButton.Text = "Remove Button"; this._removeButton.Click += new System.EventHandler(this.removeButton_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 29); // // _moveUpButton // this._moveUpButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._moveUpButton.Image = ((System.Drawing.Image)(resources.GetObject("_moveUpButton.Image"))); this._moveUpButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._moveUpButton.Name = "_moveUpButton"; this._moveUpButton.Size = new System.Drawing.Size(23, 26); this._moveUpButton.Text = "Move Up Button"; this._moveUpButton.Click += new System.EventHandler(this._moveUpButton_Click); // // _moveDownButton // this._moveDownButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._moveDownButton.Image = ((System.Drawing.Image)(resources.GetObject("_moveDownButton.Image"))); this._moveDownButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._moveDownButton.Name = "_moveDownButton"; this._moveDownButton.Size = new System.Drawing.Size(23, 26); this._moveDownButton.Text = "Move Down Button"; this._moveDownButton.Click += new System.EventHandler(this._moveDownButton_Click); // // _indentButton // this._indentButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._indentButton.Image = ((System.Drawing.Image)(resources.GetObject("_indentButton.Image"))); this._indentButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._indentButton.Name = "_indentButton"; this._indentButton.Size = new System.Drawing.Size(23, 26); this._indentButton.Text = "Indent Button"; this._indentButton.Click += new System.EventHandler(this._indentButton_Click); // // _unindentButton // this._unindentButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._unindentButton.Image = ((System.Drawing.Image)(resources.GetObject("_unindentButton.Image"))); this._unindentButton.ImageTransparentColor = System.Drawing.Color.Magenta; this._unindentButton.Name = "_unindentButton"; this._unindentButton.Size = new System.Drawing.Size(23, 26); this._unindentButton.Text = "Unindent Button"; this._unindentButton.Click += new System.EventHandler(this._unindentButton_Click); // // _treeView // this._treeView.Dock = System.Windows.Forms.DockStyle.Fill; this._treeView.Location = new System.Drawing.Point(3, 54); this._treeView.Name = "_treeView"; this._treeView.Size = new System.Drawing.Size(251, 275); this._treeView.TabIndex = 0; this._treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this._treeView_AfterSelect); // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.Controls.Add(this.propertyGrid1, 0, 1); this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 2); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(257, 366); this.tableLayoutPanel1.TabIndex = 4; // // propertyGrid1 // this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill; this.propertyGrid1.LineColor = System.Drawing.SystemColors.ScrollBar; this.propertyGrid1.Location = new System.Drawing.Point(3, 25); this.propertyGrid1.Name = "propertyGrid1"; this.propertyGrid1.Size = new System.Drawing.Size(251, 301); this.propertyGrid1.TabIndex = 1; this.propertyGrid1.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid1_ValueChanged); // // tableLayoutPanel2 // this.tableLayoutPanel2.ColumnCount = 2; this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 64.5F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35.5F)); this.tableLayoutPanel2.Controls.Add(this.button1, 0, 0); this.tableLayoutPanel2.Controls.Add(this.button2, 1, 0); this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Right; this.tableLayoutPanel2.Location = new System.Drawing.Point(14, 332); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 1; this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); this.tableLayoutPanel2.Size = new System.Drawing.Size(240, 31); this.tableLayoutPanel2.TabIndex = 2; // // button1 // this.button1.Dock = System.Windows.Forms.DockStyle.Right; this.button1.Location = new System.Drawing.Point(89, 3); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(62, 25); this.button1.TabIndex = 2; this.button1.Text = "完成"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(157, 3); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(63, 24); this.button2.TabIndex = 3; this.button2.Text = "取消"; this.button2.Click += new System.EventHandler(this.button2_Click); // // pictureBox2 // this.pictureBox2.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.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(0, 474); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(462, 0); this.pictureBox2.TabIndex = 9; this.pictureBox2.TabStop = false; // // DeluxeTreeItemsEditorForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(518, 366); this.Controls.Add(splitContainer1); this.Controls.Add(this.pictureBox2); this.Name = "DeluxeTreeItemsEditorForm"; this.Text = "树设计器"; splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(splitContainer1)).EndInit(); splitContainer1.ResumeLayout(false); this.tableLayoutPanel3.ResumeLayout(false); this.tableLayoutPanel3.PerformLayout(); this.DeluxTreeToolStrip.ResumeLayout(false); this.DeluxTreeToolStrip.PerformLayout(); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { cboType = new ComboBox(); lstParameters = new ListBox(); btnChangeEvent = new Button(); lblEventId = new Label(); lblEventName = new Label(); lblParamDescription = new Label(); btnCancel = new Button(); btnDone = new Button(); lblName2 = new Label(); lblName1 = new Label(); valueGrid = new PropertyGrid(); requirementPanel = new Panel(); chkNot = new CheckBox(); label1 = new Label(); cboRequirement = new ComboBox(); offsetPanel = new Panel(); offsetOkay = new Button(); comboBox1 = new ComboBox(); comboBox2 = new ComboBox(); comboBox3 = new ComboBox(); label2 = new Label(); label3 = new Label(); label4 = new Label(); mainPanel = new Panel(); splitContainer1 = new SplitContainer(); typePanel = new Panel(); requirementPanel.SuspendLayout(); offsetPanel.SuspendLayout(); ((ISupportInitialize)splitContainer1).BeginInit(); splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); typePanel.SuspendLayout(); SuspendLayout(); // // cboType // cboType.FormattingEnabled = true; cboType.Items.AddRange(new object[] { "Value", "Scalar", "Drawing.Pointer", "Boolean", "Unknown", "Variable", "Requirement" }); cboType.Location = new Drawing.Point(46, 0); cboType.Name = "cboType"; cboType.Size = new Drawing.Size(82, 21); cboType.TabIndex = 63; cboType.SelectedIndexChanged += new EventHandler(cboType_SelectedIndexChanged); // // lstParameters // lstParameters.Dock = DockStyle.Fill; lstParameters.FormattingEnabled = true; lstParameters.Location = new Drawing.Point(0, 21); lstParameters.Name = "lstParameters"; lstParameters.Size = new Drawing.Size(93, 92); lstParameters.TabIndex = 62; lstParameters.SelectedIndexChanged += new EventHandler(lstParameters_SelectedIndexChanged); // // btnChangeEvent // btnChangeEvent.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Right); btnChangeEvent.Location = new Drawing.Point(171, 2); btnChangeEvent.Name = "btnChangeEvent"; btnChangeEvent.Size = new Drawing.Size(56, 23); btnChangeEvent.TabIndex = 61; btnChangeEvent.Text = "Change"; btnChangeEvent.UseVisualStyleBackColor = true; btnChangeEvent.Click += new EventHandler(btnChangeEvent_Click); // // lblEventId // lblEventId.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Right); lblEventId.BackColor = Color.WhiteSmoke; lblEventId.BorderStyle = BorderStyle.Fixed3D; lblEventId.Location = new Drawing.Point(107, 3); lblEventId.Name = "lblEventId"; lblEventId.Size = new Drawing.Size(66, 20); lblEventId.TabIndex = 60; lblEventId.TextAlign = ContentAlignment.MiddleCenter; // // lblEventName // lblEventName.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); lblEventName.BackColor = Color.WhiteSmoke; lblEventName.BorderStyle = BorderStyle.Fixed3D; lblEventName.Location = new Drawing.Point(2, 3); lblEventName.Name = "lblEventName"; lblEventName.Size = new Drawing.Size(105, 20); lblEventName.TabIndex = 59; lblEventName.TextAlign = ContentAlignment.MiddleLeft; // // lblParamDescription // lblParamDescription.Anchor = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); lblParamDescription.BackColor = SystemColors.Control; lblParamDescription.BorderStyle = BorderStyle.Fixed3D; lblParamDescription.Font = new Font("Microsoft Sans Serif", 9.75F, Drawing.FontStyle.Regular, GraphicsUnit.Point, (byte)0); lblParamDescription.Location = new Drawing.Point(2, 140); lblParamDescription.Name = "lblParamDescription"; lblParamDescription.Size = new Drawing.Size(225, 63); lblParamDescription.TabIndex = 58; // // btnCancel // btnCancel.Anchor = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right); btnCancel.Location = new Drawing.Point(169, 206); btnCancel.Name = "btnCancel"; btnCancel.Size = new Drawing.Size(58, 24); btnCancel.TabIndex = 57; btnCancel.Text = "* - Cancel"; btnCancel.UseVisualStyleBackColor = true; //btnCancel.Click += new EventHandler(btnCancel_Click); // // btnDone // btnDone.Anchor = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right); btnDone.Location = new Drawing.Point(105, 206); btnDone.Name = "btnDone"; btnDone.Size = new Drawing.Size(58, 24); btnDone.TabIndex = 56; btnDone.Text = "* - Done"; btnDone.UseVisualStyleBackColor = true; //btnDone.Click += new EventHandler(btnDone_Click); // // lblName2 // lblName2.BackColor = Color.WhiteSmoke; lblName2.BorderStyle = BorderStyle.Fixed3D; lblName2.Location = new Drawing.Point(0, 0); lblName2.Name = "lblName2"; lblName2.Size = new Drawing.Size(45, 21); lblName2.TabIndex = 55; lblName2.Text = "Type:"; lblName2.TextAlign = ContentAlignment.MiddleRight; // // lblName1 // lblName1.BackColor = Color.WhiteSmoke; lblName1.BorderStyle = BorderStyle.Fixed3D; lblName1.Dock = DockStyle.Top; lblName1.Location = new Drawing.Point(0, 0); lblName1.Name = "lblName1"; lblName1.Size = new Drawing.Size(93, 21); lblName1.TabIndex = 54; lblName1.Text = "Parameter:"; lblName1.TextAlign = ContentAlignment.MiddleLeft; // // valueGrid // valueGrid.Dock = DockStyle.Fill; valueGrid.HelpVisible = false; valueGrid.Location = new Drawing.Point(0, 21); valueGrid.Name = "valueGrid"; valueGrid.Size = new Drawing.Size(128, 92); valueGrid.TabIndex = 8; valueGrid.ToolbarVisible = false; // // requirementPanel // requirementPanel.Controls.Add(chkNot); requirementPanel.Controls.Add(label1); requirementPanel.Controls.Add(cboRequirement); requirementPanel.Dock = DockStyle.Fill; requirementPanel.Location = new Drawing.Point(0, 21); requirementPanel.Name = "requirementPanel"; requirementPanel.Size = new Drawing.Size(128, 92); requirementPanel.TabIndex = 64; // // chkNot // chkNot.AutoSize = true; chkNot.Location = new Drawing.Point(81, 3); chkNot.Name = "chkNot"; chkNot.Size = new Drawing.Size(43, 17); chkNot.TabIndex = 65; chkNot.Text = "Not"; chkNot.UseVisualStyleBackColor = true; chkNot.CheckedChanged += new EventHandler(Requirement_Handle); // // label1 // label1.BackColor = Color.WhiteSmoke; label1.BorderStyle = BorderStyle.Fixed3D; label1.Location = new Drawing.Point(0, 0); label1.Name = "label1"; label1.Size = new Drawing.Size(75, 21); label1.TabIndex = 64; label1.Text = "Requirement:"; label1.TextAlign = ContentAlignment.MiddleLeft; // // cboRequirement // cboRequirement.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); cboRequirement.FormattingEnabled = true; cboRequirement.Location = new Drawing.Point(0, 22); cboRequirement.Name = "cboRequirement"; cboRequirement.Size = new Drawing.Size(128, 21); cboRequirement.TabIndex = 0; cboRequirement.SelectedIndexChanged += new EventHandler(Requirement_Handle); // // offsetPanel // offsetPanel.Controls.Add(offsetOkay); offsetPanel.Controls.Add(comboBox1); offsetPanel.Controls.Add(comboBox2); offsetPanel.Controls.Add(comboBox3); offsetPanel.Controls.Add(label2); offsetPanel.Controls.Add(label3); offsetPanel.Controls.Add(label4); offsetPanel.Dock = DockStyle.Fill; offsetPanel.Location = new Drawing.Point(0, 21); offsetPanel.Name = "offsetPanel"; offsetPanel.Size = new Drawing.Size(128, 92); offsetPanel.TabIndex = 66; // // offsetOkay // offsetOkay.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); offsetOkay.Location = new Drawing.Point(-1, 69); offsetOkay.Name = "offsetOkay"; offsetOkay.Size = new Drawing.Size(129, 23); offsetOkay.TabIndex = 13; offsetOkay.Text = "Okay"; offsetOkay.UseVisualStyleBackColor = true; offsetOkay.Click += new EventHandler(offsetOkay_Click); // // comboBox1 // comboBox1.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); comboBox1.DropDownStyle = ComboBoxStyle.DropDownList; comboBox1.FormattingEnabled = true; comboBox1.Items.AddRange(new object[] { "Actions", "SubActions", "SubRoutines", "External", "Null" }); comboBox1.Location = new Drawing.Point(46, 3); comboBox1.Name = "comboBox1"; comboBox1.Size = new Drawing.Size(82, 21); comboBox1.TabIndex = 7; comboBox1.SelectedIndexChanged += new EventHandler(comboBox1_SelectedIndexChanged); // // comboBox2 // comboBox2.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); comboBox2.DropDownStyle = ComboBoxStyle.DropDownList; comboBox2.FormattingEnabled = true; comboBox2.Location = new Drawing.Point(46, 24); comboBox2.Name = "comboBox2"; comboBox2.Size = new Drawing.Size(82, 21); comboBox2.TabIndex = 9; // // comboBox3 // comboBox3.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); comboBox3.DropDownStyle = ComboBoxStyle.DropDownList; comboBox3.FormattingEnabled = true; comboBox3.Location = new Drawing.Point(46, 45); comboBox3.Name = "comboBox3"; comboBox3.Size = new Drawing.Size(82, 21); comboBox3.TabIndex = 11; // // label2 // label2.BackColor = Color.WhiteSmoke; label2.BorderStyle = BorderStyle.Fixed3D; label2.Location = new Drawing.Point(0, 3); label2.Name = "label2"; label2.Size = new Drawing.Size(45, 21); label2.TabIndex = 8; label2.Text = "List:"; label2.TextAlign = ContentAlignment.MiddleRight; // // label3 // label3.BackColor = Color.WhiteSmoke; label3.BorderStyle = BorderStyle.Fixed3D; label3.Location = new Drawing.Point(0, 24); label3.Name = "label3"; label3.Size = new Drawing.Size(45, 21); label3.TabIndex = 10; label3.Text = "Action:"; label3.TextAlign = ContentAlignment.MiddleRight; // // label4 // label4.BackColor = Color.WhiteSmoke; label4.BorderStyle = BorderStyle.Fixed3D; label4.Location = new Drawing.Point(0, 45); label4.Name = "label4"; label4.Size = new Drawing.Size(45, 21); label4.TabIndex = 12; label4.Text = "Type:"; label4.TextAlign = ContentAlignment.MiddleRight; // // mainPanel // mainPanel.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); mainPanel.Location = new Drawing.Point(2, 25); mainPanel.Name = "mainPanel"; mainPanel.Size = new Drawing.Size(225, 113); mainPanel.TabIndex = 0; // // splitContainer1 // splitContainer1.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); splitContainer1.Location = new Drawing.Point(2, 25); splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // splitContainer1.Panel1.Controls.Add(lstParameters); splitContainer1.Panel1.Controls.Add(lblName1); // // splitContainer1.Panel2 // splitContainer1.Panel2.Controls.Add(offsetPanel); splitContainer1.Panel2.Controls.Add(valueGrid); splitContainer1.Panel2.Controls.Add(requirementPanel); splitContainer1.Panel2.Controls.Add(typePanel); splitContainer1.Size = new Drawing.Size(225, 113); splitContainer1.SplitterDistance = 93; splitContainer1.TabIndex = 9; // // typePanel // typePanel.Controls.Add(lblName2); typePanel.Controls.Add(cboType); typePanel.Dock = DockStyle.Top; typePanel.Location = new Drawing.Point(0, 0); typePanel.Name = "typePanel"; typePanel.Size = new Drawing.Size(128, 21); typePanel.TabIndex = 64; // // EventModifier // AutoSize = true; Controls.Add(splitContainer1); Controls.Add(mainPanel); Controls.Add(btnChangeEvent); Controls.Add(lblEventId); Controls.Add(lblEventName); Controls.Add(lblParamDescription); Controls.Add(btnCancel); Controls.Add(btnDone); Name = "EventModifier"; Size = new Drawing.Size(230, 233); requirementPanel.ResumeLayout(false); requirementPanel.PerformLayout(); offsetPanel.ResumeLayout(false); splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel2.ResumeLayout(false); ((ISupportInitialize)splitContainer1).EndInit(); splitContainer1.ResumeLayout(false); typePanel.ResumeLayout(false); ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { components = new System.ComponentModel.Container(); treeView = new TreeView(); timer = new Timer(components); chart = new ChartContrl(); splitContainer = new SplitContainer(); ((System.ComponentModel.ISupportInitialize)(splitContainer)).BeginInit(); splitContainer.Panel1.SuspendLayout(); splitContainer.Panel2.SuspendLayout(); splitContainer.SuspendLayout(); SuspendLayout(); // // treeView // treeView.Dock = DockStyle.Fill; treeView.Location = new Point(0, 0); treeView.Name = "treeView"; treeView.Size = new Size(175, 288); treeView.TabIndex = 12; treeView.MouseClick += new MouseEventHandler(treeView_MouseClick); // // timer // timer.Interval = 1000; timer.Tick += new System.EventHandler(timer_Tick); // // chart // chart.Dock = DockStyle.Fill; chart.Location = new Point(0, 0); chart.Name = "chart"; chart.Size = new Size(348, 288); chart.TabIndex = 11; // // splitContainer // splitContainer.Dock = DockStyle.Fill; splitContainer.Location = new Point(0, 0); splitContainer.Name = "splitContainer"; // // splitContainer.Panel1 // splitContainer.Panel1.Controls.Add(treeView); // // splitContainer.Panel2 // splitContainer.Panel2.Controls.Add(chart); splitContainer.Size = new Size(527, 288); splitContainer.SplitterDistance = 175; splitContainer.TabIndex = 13; // // ChartForm // AutoScaleDimensions = new SizeF(6F, 13F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(527, 288); Controls.Add(splitContainer); MaximizeBox = false; Name = "ChartForm"; Text = "Performance Counters"; Load += new System.EventHandler(ChartForm_Load); splitContainer.Panel1.ResumeLayout(false); splitContainer.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(splitContainer)).EndInit(); splitContainer.ResumeLayout(false); 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.Windows.Forms.ToolStripSeparator _toolStripSeparator3; System.Windows.Forms.ToolStripSeparator _toolStripSeparator1; System.Windows.Forms.ToolStripSeparator _toolStripSeparator2; System.Windows.Forms.SplitContainer _splitTreeProps; System.Windows.Forms.SplitContainer _splitEditorOutput; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainView)); this._treeView = new MonoGame.Tools.Pipeline.MultiSelectTreeview(); this._propertyGrid = new System.Windows.Forms.PropertyGrid(); this._outputWindow = new System.Windows.Forms.RichTextBox(); this._mainMenu = new System.Windows.Forms.MenuStrip(); this._fileMenu = new System.Windows.Forms.ToolStripMenuItem(); this._newProjectMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._openProjectMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._closeMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this._importProjectMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._saveMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._saveAsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._exitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._undoMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._redoMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this._newItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._addItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this._deleteMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._buildMenu = new System.Windows.Forms.ToolStripMenuItem(); this._buildMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._rebuildMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._cleanMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this._debuggerMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._cancelBuildSeparator = new System.Windows.Forms.ToolStripSeparator(); this._cancelBuildMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._helpMenu = new System.Windows.Forms.ToolStripMenuItem(); this._viewHelpMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._aboutMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this._treeNewItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeAddItemMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeDeleteMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this._treeOpenFileMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._treeOpenFileLocationMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this._treeRebuildMenuItem = new System.Windows.Forms.ToolStripMenuItem(); _toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); _toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); _toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); _splitTreeProps = new System.Windows.Forms.SplitContainer(); _splitEditorOutput = new System.Windows.Forms.SplitContainer(); ((System.ComponentModel.ISupportInitialize)(_splitTreeProps)).BeginInit(); _splitTreeProps.Panel1.SuspendLayout(); _splitTreeProps.Panel2.SuspendLayout(); _splitTreeProps.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(_splitEditorOutput)).BeginInit(); _splitEditorOutput.Panel1.SuspendLayout(); _splitEditorOutput.Panel2.SuspendLayout(); _splitEditorOutput.SuspendLayout(); this._mainMenu.SuspendLayout(); this._treeContextMenu.SuspendLayout(); this.SuspendLayout(); // // _toolStripSeparator3 // _toolStripSeparator3.Name = "_toolStripSeparator3"; _toolStripSeparator3.Size = new System.Drawing.Size(179, 6); // // _toolStripSeparator1 // _toolStripSeparator1.Name = "_toolStripSeparator1"; _toolStripSeparator1.Size = new System.Drawing.Size(179, 6); // // _toolStripSeparator2 // _toolStripSeparator2.Name = "_toolStripSeparator2"; _toolStripSeparator2.Size = new System.Drawing.Size(143, 6); // // _splitTreeProps // _splitTreeProps.Dock = System.Windows.Forms.DockStyle.Fill; _splitTreeProps.Location = new System.Drawing.Point(0, 0); _splitTreeProps.Name = "_splitTreeProps"; _splitTreeProps.Orientation = System.Windows.Forms.Orientation.Horizontal; // // _splitTreeProps.Panel1 // _splitTreeProps.Panel1.Controls.Add(this._treeView); // // _splitTreeProps.Panel2 // _splitTreeProps.Panel2.Controls.Add(this._propertyGrid); _splitTreeProps.Size = new System.Drawing.Size(249, 537); _splitTreeProps.SplitterDistance = 210; _splitTreeProps.TabIndex = 1; _splitTreeProps.TabStop = false; // // _treeView // this._treeView.Dock = System.Windows.Forms.DockStyle.Fill; this._treeView.Location = new System.Drawing.Point(0, 0); this._treeView.Name = "_treeView"; this._treeView.Size = new System.Drawing.Size(249, 210); this._treeView.TabIndex = 0; this._treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeViewAfterSelect); this._treeView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.TreeViewMouseUp); // // _propertyGrid // this._propertyGrid.Dock = System.Windows.Forms.DockStyle.Fill; this._propertyGrid.Location = new System.Drawing.Point(0, 0); this._propertyGrid.Name = "_propertyGrid"; this._propertyGrid.Size = new System.Drawing.Size(249, 323); this._propertyGrid.TabIndex = 0; // // _splitEditorOutput // _splitEditorOutput.Dock = System.Windows.Forms.DockStyle.Fill; _splitEditorOutput.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; _splitEditorOutput.Location = new System.Drawing.Point(0, 24); _splitEditorOutput.Name = "_splitEditorOutput"; // // _splitEditorOutput.Panel1 // _splitEditorOutput.Panel1.Controls.Add(_splitTreeProps); // // _splitEditorOutput.Panel2 // _splitEditorOutput.Panel2.Controls.Add(this._outputWindow); _splitEditorOutput.Size = new System.Drawing.Size(784, 537); _splitEditorOutput.SplitterDistance = 249; _splitEditorOutput.TabIndex = 2; _splitEditorOutput.TabStop = false; // // _outputWindow // this._outputWindow.Dock = System.Windows.Forms.DockStyle.Fill; this._outputWindow.HideSelection = false; this._outputWindow.Location = new System.Drawing.Point(0, 0); this._outputWindow.Name = "_outputWindow"; this._outputWindow.ReadOnly = true; this._outputWindow.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; this._outputWindow.Size = new System.Drawing.Size(531, 537); this._outputWindow.TabIndex = 0; this._outputWindow.TabStop = false; this._outputWindow.Text = ""; // // _mainMenu // this._mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._fileMenu, this.editToolStripMenuItem, this._buildMenu, this._helpMenu}); this._mainMenu.Location = new System.Drawing.Point(0, 0); this._mainMenu.Name = "_mainMenu"; this._mainMenu.Size = new System.Drawing.Size(784, 24); this._mainMenu.TabIndex = 0; this._mainMenu.Text = "menuStrip1"; this._mainMenu.MenuActivate += new System.EventHandler(this.MainMenuMenuActivate); // // _fileMenu // this._fileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._newProjectMenuItem, this._openProjectMenuItem, this._closeMenuItem, this.toolStripSeparator3, this._importProjectMenuItem, _toolStripSeparator3, this._saveMenuItem, this._saveAsMenuItem, _toolStripSeparator1, this._exitMenuItem}); this._fileMenu.Name = "_fileMenu"; this._fileMenu.Size = new System.Drawing.Size(37, 20); this._fileMenu.Text = "&File"; // // _newProjectMenuItem // this._newProjectMenuItem.Name = "_newProjectMenuItem"; this._newProjectMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.N))); this._newProjectMenuItem.Size = new System.Drawing.Size(182, 22); this._newProjectMenuItem.Text = "New..."; this._newProjectMenuItem.Click += new System.EventHandler(this.OnNewProjectClick); // // _openProjectMenuItem // this._openProjectMenuItem.Name = "_openProjectMenuItem"; this._openProjectMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); this._openProjectMenuItem.Size = new System.Drawing.Size(182, 22); this._openProjectMenuItem.Text = "Open..."; this._openProjectMenuItem.Click += new System.EventHandler(this.OnOpenProjectClick); // // _closeMenuItem // this._closeMenuItem.Name = "_closeMenuItem"; this._closeMenuItem.Size = new System.Drawing.Size(182, 22); this._closeMenuItem.Text = "Close"; this._closeMenuItem.Click += new System.EventHandler(this.OnCloseProjectClick); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(179, 6); // // _importProjectMenuItem // this._importProjectMenuItem.Name = "_importProjectMenuItem"; this._importProjectMenuItem.Size = new System.Drawing.Size(182, 22); this._importProjectMenuItem.Text = "Import..."; this._importProjectMenuItem.Click += new System.EventHandler(this.OnImportProjectClick); // // _saveMenuItem // this._saveMenuItem.Name = "_saveMenuItem"; this._saveMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this._saveMenuItem.Size = new System.Drawing.Size(182, 22); this._saveMenuItem.Text = "&Save"; this._saveMenuItem.Click += new System.EventHandler(this.OnSaveProjectClick); // // _saveAsMenuItem // this._saveAsMenuItem.Name = "_saveAsMenuItem"; this._saveAsMenuItem.Size = new System.Drawing.Size(182, 22); this._saveAsMenuItem.Text = "Save &As..."; this._saveAsMenuItem.Click += new System.EventHandler(this.OnSaveAsProjectClick); // // _exitMenuItem // this._exitMenuItem.Name = "_exitMenuItem"; this._exitMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4))); this._exitMenuItem.Size = new System.Drawing.Size(182, 22); this._exitMenuItem.Text = "E&xit"; this._exitMenuItem.Click += new System.EventHandler(this.ExitMenuItemClick); // // editToolStripMenuItem // this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._undoMenuItem, this._redoMenuItem, this.toolStripSeparator2, this._newItemMenuItem, this._addItemMenuItem, this.toolStripSeparator1, this._deleteMenuItem}); this.editToolStripMenuItem.Name = "editToolStripMenuItem"; this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); this.editToolStripMenuItem.Text = "&Edit"; // // _undoMenuItem // this._undoMenuItem.Enabled = false; this._undoMenuItem.Name = "_undoMenuItem"; this._undoMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); this._undoMenuItem.Size = new System.Drawing.Size(144, 22); this._undoMenuItem.Text = "Undo"; this._undoMenuItem.Click += new System.EventHandler(this.OnUndoClick); // // _redoMenuItem // this._redoMenuItem.Enabled = false; this._redoMenuItem.Name = "_redoMenuItem"; this._redoMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); this._redoMenuItem.Size = new System.Drawing.Size(144, 22); this._redoMenuItem.Text = "Redo"; this._redoMenuItem.Click += new System.EventHandler(this.OnRedoClick); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(141, 6); // // _newItemMenuItem // this._newItemMenuItem.Name = "_newItemMenuItem"; this._newItemMenuItem.Size = new System.Drawing.Size(144, 22); this._newItemMenuItem.Text = "&New Item..."; this._newItemMenuItem.Click += new System.EventHandler(this.OnNewItemClick); // // _addItemMenuItem // this._addItemMenuItem.Name = "_addItemMenuItem"; this._addItemMenuItem.Size = new System.Drawing.Size(144, 22); this._addItemMenuItem.Text = "&Add Item..."; this._addItemMenuItem.Click += new System.EventHandler(this.OnAddItemClick); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(141, 6); // // _deleteMenuItem // this._deleteMenuItem.Name = "_deleteMenuItem"; this._deleteMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete; this._deleteMenuItem.Size = new System.Drawing.Size(144, 22); this._deleteMenuItem.Text = "&Delete"; this._deleteMenuItem.Click += new System.EventHandler(this.OnDeleteItemClick); // // _buildMenu // this._buildMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._buildMenuItem, this._rebuildMenuItem, this._cleanMenuItem, this.toolStripSeparator5, this._debuggerMenuItem, this._cancelBuildSeparator, this._cancelBuildMenuItem}); this._buildMenu.Name = "_buildMenu"; this._buildMenu.Size = new System.Drawing.Size(46, 20); this._buildMenu.Text = "&Build"; // // _buildMenuItem // this._buildMenuItem.Name = "_buildMenuItem"; this._buildMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F6; this._buildMenuItem.Size = new System.Drawing.Size(173, 22); this._buildMenuItem.Text = "&Build"; this._buildMenuItem.Click += new System.EventHandler(this.BuildMenuItemClick); // // _rebuildMenuItem // this._rebuildMenuItem.Name = "_rebuildMenuItem"; this._rebuildMenuItem.Size = new System.Drawing.Size(173, 22); this._rebuildMenuItem.Text = "&Rebuild"; this._rebuildMenuItem.Click += new System.EventHandler(this.RebuildMenuItemClick); // // _cleanMenuItem // this._cleanMenuItem.Name = "_cleanMenuItem"; this._cleanMenuItem.Size = new System.Drawing.Size(173, 22); this._cleanMenuItem.Text = "&Clean"; this._cleanMenuItem.Click += new System.EventHandler(this.CleanMenuItemClick); // // toolStripSeparator5 // this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new System.Drawing.Size(170, 6); // // _debuggerMenuItem // this._debuggerMenuItem.CheckOnClick = true; this._debuggerMenuItem.Name = "_debuggerMenuItem"; this._debuggerMenuItem.Size = new System.Drawing.Size(173, 22); this._debuggerMenuItem.Text = "Debug Mode"; // // _cancelBuildSeparator // this._cancelBuildSeparator.Name = "_cancelBuildSeparator"; this._cancelBuildSeparator.Size = new System.Drawing.Size(170, 6); this._cancelBuildSeparator.Visible = false; // // _cancelBuildMenuItem // this._cancelBuildMenuItem.Name = "_cancelBuildMenuItem"; this._cancelBuildMenuItem.ShortcutKeyDisplayString = "Ctrl+Break"; this._cancelBuildMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Pause))); this._cancelBuildMenuItem.Size = new System.Drawing.Size(173, 22); this._cancelBuildMenuItem.Text = "Cancel"; this._cancelBuildMenuItem.Visible = false; this._cancelBuildMenuItem.Click += new System.EventHandler(this.CancelBuildMenuItemClick); // // _helpMenu // this._helpMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._viewHelpMenuItem, _toolStripSeparator2, this._aboutMenuItem}); this._helpMenu.Name = "_helpMenu"; this._helpMenu.Size = new System.Drawing.Size(44, 20); this._helpMenu.Text = "&Help"; // // _viewHelpMenuItem // this._viewHelpMenuItem.Name = "_viewHelpMenuItem"; this._viewHelpMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F1; this._viewHelpMenuItem.Size = new System.Drawing.Size(146, 22); this._viewHelpMenuItem.Text = "&View Help"; this._viewHelpMenuItem.Click += new System.EventHandler(this.ViewHelpMenuItemClick); // // _aboutMenuItem // this._aboutMenuItem.Name = "_aboutMenuItem"; this._aboutMenuItem.Size = new System.Drawing.Size(146, 22); this._aboutMenuItem.Text = "&About..."; this._aboutMenuItem.Click += new System.EventHandler(this.AboutMenuItemClick); // // _treeContextMenu // this._treeContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._treeNewItemMenuItem, this._treeAddItemMenuItem, this._treeDeleteMenuItem, this.toolStripSeparator6, this._treeOpenFileMenuItem, this._treeOpenFileLocationMenuItem, this.toolStripSeparator4, this._treeRebuildMenuItem}); this._treeContextMenu.Name = "itemContextMenu"; this._treeContextMenu.Size = new System.Drawing.Size(174, 148); this._treeContextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.MainMenuMenuActivate); // // _treeNewItemMenuItem // this._treeNewItemMenuItem.Name = "_treeNewItemMenuItem"; this._treeNewItemMenuItem.Size = new System.Drawing.Size(173, 22); this._treeNewItemMenuItem.Text = "New Item..."; this._treeNewItemMenuItem.Click += new System.EventHandler(this.OnNewItemClick); // // _treeAddItemMenuItem // this._treeAddItemMenuItem.Name = "_treeAddItemMenuItem"; this._treeAddItemMenuItem.Size = new System.Drawing.Size(173, 22); this._treeAddItemMenuItem.Text = "&Add Item..."; this._treeAddItemMenuItem.Click += new System.EventHandler(this.OnAddItemClick); // // _treeDeleteMenuItem // this._treeDeleteMenuItem.Name = "_treeDeleteMenuItem"; this._treeDeleteMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete; this._treeDeleteMenuItem.Size = new System.Drawing.Size(173, 22); this._treeDeleteMenuItem.Text = "&Delete"; this._treeDeleteMenuItem.Click += new System.EventHandler(this.OnDeleteItemClick); // // toolStripSeparator6 // this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new System.Drawing.Size(170, 6); // // _treeOpenFileMenuItem // this._treeOpenFileMenuItem.Name = "_treeOpenFileMenuItem"; this._treeOpenFileMenuItem.Size = new System.Drawing.Size(173, 22); this._treeOpenFileMenuItem.Text = "Open File"; this._treeOpenFileMenuItem.Click += new System.EventHandler(this.ContextMenu_OpenFile_Click); // // _treeOpenFileLocationMenuItem // this._treeOpenFileLocationMenuItem.Name = "_treeOpenFileLocationMenuItem"; this._treeOpenFileLocationMenuItem.Size = new System.Drawing.Size(173, 22); this._treeOpenFileLocationMenuItem.Text = "Open File Location"; this._treeOpenFileLocationMenuItem.Click += new System.EventHandler(this.ContextMenu_OpenFileLocation_Click); // // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(170, 6); // // _treeRebuildMenuItem // this._treeRebuildMenuItem.Name = "_treeRebuildMenuItem"; this._treeRebuildMenuItem.Size = new System.Drawing.Size(173, 22); this._treeRebuildMenuItem.Text = "Rebuild"; this._treeRebuildMenuItem.Click += new System.EventHandler(this.RebuildItemsMenuItemClick); // // MainView // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(784, 561); this.Controls.Add(_splitEditorOutput); this.Controls.Add(this._mainMenu); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this._mainMenu; this.MinimumSize = new System.Drawing.Size(320, 240); this.Name = "MainView"; this.Text = "MonoGame Pipeline"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainView_FormClosing); this.Load += new System.EventHandler(this.MainView_Load); this.Shown += new System.EventHandler(this.MainView_Shown); _splitTreeProps.Panel1.ResumeLayout(false); _splitTreeProps.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(_splitTreeProps)).EndInit(); _splitTreeProps.ResumeLayout(false); _splitEditorOutput.Panel1.ResumeLayout(false); _splitEditorOutput.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(_splitEditorOutput)).EndInit(); _splitEditorOutput.ResumeLayout(false); this._mainMenu.ResumeLayout(false); this._mainMenu.PerformLayout(); this._treeContextMenu.ResumeLayout(false); 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() { components = new Container(); ComponentResourceManager resources = new ComponentResourceManager(typeof(frmExplorer)); mainMenu1 = new MainMenu(components); menuItem1 = new MenuItem(); OpenDBmenu = new MenuItem(); CreateDBMenu = new MenuItem(); CheckIntegrity = new MenuItem(); menuItem3 = new MenuItem(); ExitAppMenu = new MenuItem(); menuItem2 = new MenuItem(); AddAreaMenu = new MenuItem(); objExecuteSQL = new MenuItem(); objOpenTableSQL = new MenuItem(); objRenameTableSQL = new MenuItem(); objAddColumnSQL = new MenuItem(); objRemoveColumnSQL = new MenuItem(); objDeleteRowSQL = new MenuItem(); objCreateTableSQL = new MenuItem(); objDeleteTableSQL = new MenuItem(); TreeViewContextMenu = new ContextMenu(); TreeViewTablesMenu = new ContextMenu(); toolBar1 = new ToolBar(); OpenDatabase = new ToolBarButton(); IntegrityCheck = new ToolBarButton(); Separator = new ToolBarButton(); ExecuteSQL = new ToolBarButton(); ToolBarImages = new ImageList(components); sqlStatementTextBox = new FastColoredTextBox(); statusStrip1 = new StatusStrip(); StatusStripLog = new ToolStripStatusLabel(); splitContainer1 = new SplitContainer(); splitContainer2 = new SplitContainer(); SQLAreaTabControl = new TabControlEx(); tabPage1 = new TabPage(); silverMonkeyFCTB1 = new SilverMonkeyFCTB(); SqlResultsListView = new ListView_NoFlicker(); tabControl1 = new TabControl(); tabPage2 = new TabPage(); tabPage3 = new TabPage(); DatabaseTreeView = new TreeView(); ((ISupportInitialize)(sqlStatementTextBox)).BeginInit(); statusStrip1.SuspendLayout(); ((ISupportInitialize)(splitContainer1)).BeginInit(); splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); ((ISupportInitialize)(splitContainer2)).BeginInit(); splitContainer2.Panel1.SuspendLayout(); splitContainer2.Panel2.SuspendLayout(); splitContainer2.SuspendLayout(); SQLAreaTabControl.SuspendLayout(); tabPage1.SuspendLayout(); ((ISupportInitialize)(silverMonkeyFCTB1)).BeginInit(); tabControl1.SuspendLayout(); tabPage2.SuspendLayout(); SuspendLayout(); // // mainMenu1 // mainMenu1.MenuItems.AddRange(new MenuItem[] { menuItem1, menuItem2}); // // menuItem1 // menuItem1.Index = 0; menuItem1.MenuItems.AddRange(new MenuItem[] { OpenDBmenu, CreateDBMenu, CheckIntegrity, menuItem3, ExitAppMenu}); menuItem1.Text = "File"; // // OpenDBmenu // OpenDBmenu.Index = 0; OpenDBmenu.Text = "Open Database"; OpenDBmenu.Click += new EventHandler(OpenDBmenu_Click); // // CreateDBMenu // CreateDBMenu.Index = 1; CreateDBMenu.Text = "Create Database"; CreateDBMenu.Click += new EventHandler(CreateDBMenu_Click); // // CheckIntegrity // CheckIntegrity.Index = 2; CheckIntegrity.Text = "Check DB Integrity"; CheckIntegrity.Click += new EventHandler(CheckIntegrity_Click); // // menuItem3 // menuItem3.Index = 3; menuItem3.Text = "-"; // // ExitAppMenu // ExitAppMenu.Index = 4; ExitAppMenu.Text = "Exit"; ExitAppMenu.Click += new EventHandler(ExitAppMenu_Click); // // menuItem2 // menuItem2.Index = 1; menuItem2.MenuItems.AddRange(new MenuItem[] { AddAreaMenu}); menuItem2.Text = "SQLArea"; // // AddAreaMenu // AddAreaMenu.Index = 0; AddAreaMenu.Text = "Add Area"; AddAreaMenu.Click += new EventHandler(AddAreaMenu_Click); // // objExecuteSQL // objExecuteSQL.Index = -1; objExecuteSQL.Text = "Execute"; objExecuteSQL.Click += new EventHandler(objExecuteSQL_Click); // // objOpenTableSQL // objOpenTableSQL.Index = 0; objOpenTableSQL.Text = "Open Table"; objOpenTableSQL.Click += new EventHandler(objOpenTableSQL_Click); // // objRenameTableSQL // objRenameTableSQL.Index = 1; objRenameTableSQL.Text = "Rename"; objRenameTableSQL.Click += new EventHandler(objRenameTableSQL_Click); // // objAddColumnSQL // objAddColumnSQL.Index = 2; objAddColumnSQL.Text = "Add Column"; objAddColumnSQL.Click += new EventHandler(objAddColumnSQL_Click); // // objRemoveColumnSQL // objRemoveColumnSQL.Index = 3; objRemoveColumnSQL.Text = "Remove Column"; objRemoveColumnSQL.Click += new EventHandler(objRemoveColumnSQL_Click); // // objDeleteRowSQL // objDeleteRowSQL.Index = -1; objDeleteRowSQL.Text = "Delete Row"; objDeleteRowSQL.Click += new EventHandler(objDeleteRowSQL_Click); // // objCreateTableSQL // objCreateTableSQL.Index = 0; objCreateTableSQL.Text = "Create Table"; objCreateTableSQL.Click += new EventHandler(objCreateTableSQL_Click); // // objDeleteTableSQL // objDeleteTableSQL.Index = 4; objDeleteTableSQL.Text = "Delete Table"; objDeleteTableSQL.Click += new EventHandler(objDeleteTableSQL_Click); // // TreeViewContextMenu // TreeViewContextMenu.MenuItems.AddRange(new MenuItem[] { objOpenTableSQL, objRenameTableSQL, objAddColumnSQL, objRemoveColumnSQL, objDeleteTableSQL}); // // TreeViewTablesMenu // TreeViewTablesMenu.MenuItems.AddRange(new MenuItem[] { objCreateTableSQL}); // // toolBar1 // toolBar1.Buttons.AddRange(new ToolBarButton[] { OpenDatabase, IntegrityCheck, Separator, ExecuteSQL}); toolBar1.DropDownArrows = true; toolBar1.ImageList = ToolBarImages; toolBar1.Location = new Point(0, 0); toolBar1.Name = "toolBar1"; toolBar1.ShowToolTips = true; toolBar1.Size = new Size(840, 28); toolBar1.TabIndex = 11; toolBar1.ButtonClick += new ToolBarButtonClickEventHandler(toolBar1_ButtonClick); // // OpenDatabase // OpenDatabase.ImageIndex = 0; OpenDatabase.Name = "OpenDatabase"; OpenDatabase.Tag = "OpenDatabase"; OpenDatabase.ToolTipText = "Open Database"; // // IntegrityCheck // IntegrityCheck.ImageIndex = 3; IntegrityCheck.Name = "IntegrityCheck"; IntegrityCheck.Tag = "IntegrityCheck"; IntegrityCheck.ToolTipText = "Integrity Check"; // // Separator // Separator.Name = "Separator"; Separator.Style = ToolBarButtonStyle.Separator; // // ExecuteSQL // ExecuteSQL.ImageIndex = 1; ExecuteSQL.Name = "ExecuteSQL"; ExecuteSQL.Tag = "ExecuteSQL"; ExecuteSQL.ToolTipText = "Execute SQL"; // // ToolBarImages // ToolBarImages.ImageStream = ((ImageListStreamer)(resources.GetObject("ToolBarImages.ImageStream"))); ToolBarImages.TransparentColor = System.Drawing.Color.Transparent; ToolBarImages.Images.SetKeyName(0, ""); ToolBarImages.Images.SetKeyName(1, ""); ToolBarImages.Images.SetKeyName(2, ""); ToolBarImages.Images.SetKeyName(3, ""); // // sqlStatementTextBox // sqlStatementTextBox.AutoCompleteBracketsList = new char[] { '(', ')', '{', '}', '[', ']', '\"', '\"', '\'', '\''}; sqlStatementTextBox.AutoScrollMinSize = new Size(2, 14); sqlStatementTextBox.BackBrush = null; sqlStatementTextBox.CharHeight = 14; sqlStatementTextBox.CharWidth = 8; sqlStatementTextBox.Cursor = Cursors.IBeam; sqlStatementTextBox.DisabledColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180))))); sqlStatementTextBox.Font = new System.Drawing.Font("Courier New", 9.75F); sqlStatementTextBox.IsReplaceMode = false; sqlStatementTextBox.Location = new Point(0, 0); sqlStatementTextBox.Name = "sqlStatementTextBox"; sqlStatementTextBox.Paddings = new Padding(0); sqlStatementTextBox.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); sqlStatementTextBox.ServiceColors = ((ServiceColors)(resources.GetObject("sqlStatementTextBox.ServiceColors"))); sqlStatementTextBox.Size = new Size(150, 150); sqlStatementTextBox.TabIndex = 0; sqlStatementTextBox.Zoom = 100; // // statusStrip1 // statusStrip1.Items.AddRange(new ToolStripItem[] { StatusStripLog}); statusStrip1.Location = new Point(0, 361); statusStrip1.Name = "statusStrip1"; statusStrip1.Size = new Size(840, 22); statusStrip1.TabIndex = 18; statusStrip1.Text = "statusStrip1"; // // StatusStripLog // StatusStripLog.Name = "StatusStripLog"; StatusStripLog.Size = new Size(50, 17); StatusStripLog.Text = "Execute: Ready"; // // splitContainer1 // splitContainer1.Dock = DockStyle.Fill; splitContainer1.Location = new Point(0, 28); splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // splitContainer1.Panel1.Controls.Add(tabControl1); // // splitContainer1.Panel2 // splitContainer1.Panel2.Controls.Add(splitContainer2); splitContainer1.Size = new Size(840, 333); splitContainer1.SplitterDistance = 280; splitContainer1.TabIndex = 19; // // splitContainer2 // splitContainer2.Dock = DockStyle.Fill; splitContainer2.Location = new Point(0, 0); splitContainer2.Name = "splitContainer2"; splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer2.Panel1 // splitContainer2.Panel1.Controls.Add(SQLAreaTabControl); splitContainer2.Panel1.Padding = new Padding(5); // // splitContainer2.Panel2 // splitContainer2.Panel2.Controls.Add(SqlResultsListView); splitContainer2.Size = new Size(556, 333); splitContainer2.SplitterDistance = 158; splitContainer2.TabIndex = 21; // // SQLAreaTabControl // SQLAreaTabControl.Controls.Add(tabPage1); SQLAreaTabControl.Dock = DockStyle.Fill; SQLAreaTabControl.Location = new Point(5, 5); SQLAreaTabControl.Name = "SQLAreaTabControl"; SQLAreaTabControl.SelectedIndex = 0; SQLAreaTabControl.Size = new Size(546, 148); SQLAreaTabControl.TabIndex = 0; SQLAreaTabControl.CloseButtonClick += SQLAreaTabControl_CloseButtonClick; SQLAreaTabControl.MouseDown += new MouseEventHandler(SQLAreaTabControl_MouseDown); // // tabPage1 // tabPage1.Controls.Add(silverMonkeyFCTB1); tabPage1.Location = new Point(4, 22); tabPage1.Name = "tabPage1"; tabPage1.Padding = new Padding(3); tabPage1.Size = new Size(538, 122); tabPage1.TabIndex = 0; tabPage1.Text = "SQL "; tabPage1.UseVisualStyleBackColor = true; // // silverMonkeyFCTB1 // silverMonkeyFCTB1.AutoCompleteBracketsList = new char[] { '(', ')', '{', '}', '[', ']', '\"', '\"', '\'', '\''}; silverMonkeyFCTB1.AutoIndentCharsPatterns = ""; silverMonkeyFCTB1.AutoScrollMinSize = new Size(27, 14); silverMonkeyFCTB1.BackBrush = null; silverMonkeyFCTB1.CharHeight = 14; silverMonkeyFCTB1.CharWidth = 8; silverMonkeyFCTB1.CommentPrefix = "--"; silverMonkeyFCTB1.Cursor = Cursors.IBeam; silverMonkeyFCTB1.DisabledColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180))))); silverMonkeyFCTB1.Dock = DockStyle.Fill; silverMonkeyFCTB1.IsReplaceMode = false; silverMonkeyFCTB1.Language = FastColoredTextBoxNS.Language.SQL; silverMonkeyFCTB1.LeftBracket = '('; silverMonkeyFCTB1.Location = new Point(3, 3); silverMonkeyFCTB1.Name = "silverMonkeyFCTB1"; silverMonkeyFCTB1.Paddings = new Padding(0); silverMonkeyFCTB1.RightBracket = ')'; silverMonkeyFCTB1.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); silverMonkeyFCTB1.ServiceColors = ((ServiceColors)(resources.GetObject("silverMonkeyFCTB1.ServiceColors"))); silverMonkeyFCTB1.Size = new Size(532, 116); silverMonkeyFCTB1.TabIndex = 0; silverMonkeyFCTB1.Zoom = 100; // // SqlResultsListView // SqlResultsListView.Dock = DockStyle.Fill; SqlResultsListView.FullRowSelect = true; SqlResultsListView.GridLines = true; SqlResultsListView.LabelEdit = true; SqlResultsListView.LargeImageList = ToolBarImages; SqlResultsListView.Location = new Point(0, 0); SqlResultsListView.Name = "SqlResultsListView"; SqlResultsListView.Size = new Size(556, 171); SqlResultsListView.TabIndex = 0; SqlResultsListView.UseCompatibleStateImageBehavior = false; SqlResultsListView.View = View.Details; // // tabControl1 // tabControl1.Controls.Add(tabPage2); tabControl1.Controls.Add(tabPage3); tabControl1.Dock = DockStyle.Fill; tabControl1.Location = new Point(0, 0); tabControl1.Name = "tabControl1"; tabControl1.SelectedIndex = 0; tabControl1.Size = new Size(280, 333); tabControl1.TabIndex = 1; // // tabPage2 // tabPage2.Controls.Add(DatabaseTreeView); tabPage2.Location = new Point(4, 22); tabPage2.Name = "tabPage2"; tabPage2.Padding = new Padding(3); tabPage2.Size = new Size(272, 307); tabPage2.TabIndex = 0; tabPage2.Text = "Database"; tabPage2.UseVisualStyleBackColor = true; // // tabPage3 // tabPage3.Location = new Point(4, 22); tabPage3.Name = "tabPage3"; tabPage3.Padding = new Padding(3); tabPage3.Size = new Size(272, 307); tabPage3.TabIndex = 1; tabPage3.Text = "Templates"; tabPage3.UseVisualStyleBackColor = true; // // DatabaseTreeView // DatabaseTreeView.Dock = DockStyle.Fill; DatabaseTreeView.Location = new Point(3, 3); DatabaseTreeView.Name = "DatabaseTreeView"; DatabaseTreeView.Size = new Size(266, 301); DatabaseTreeView.TabIndex = 1; DatabaseTreeView.MouseDown += new MouseEventHandler(DatabaseTreeView_MouseDown); DatabaseTreeView.MouseDoubleClick += DatabaseTreeView_MouseDoubleClick; DatabaseTreeView.AfterExpand += DatabaseTreeView_AfterExpand; // // frmExplorer // AutoScaleBaseSize = new Size(5, 13); ClientSize = new Size(840, 383); Controls.Add(splitContainer1); Controls.Add(statusStrip1); Controls.Add(toolBar1); Icon = ((Icon)(resources.GetObject("$this.Icon"))); Menu = mainMenu1; Name = "frmExplorer"; Text = "TSProjects: Data Monkey"; ((ISupportInitialize)(sqlStatementTextBox)).EndInit(); statusStrip1.ResumeLayout(false); statusStrip1.PerformLayout(); splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel2.ResumeLayout(false); ((ISupportInitialize)(splitContainer1)).EndInit(); splitContainer1.ResumeLayout(false); splitContainer2.Panel1.ResumeLayout(false); splitContainer2.Panel2.ResumeLayout(false); ((ISupportInitialize)(splitContainer2)).EndInit(); splitContainer2.ResumeLayout(false); SQLAreaTabControl.ResumeLayout(false); tabPage1.ResumeLayout(false); ((ISupportInitialize)(silverMonkeyFCTB1)).EndInit(); tabControl1.ResumeLayout(false); tabPage2.ResumeLayout(false); ResumeLayout(false); PerformLayout(); }
private void Init() { if (s_schemaLoader == null) s_schemaLoader = new SchemaLoader(); m_PropertyGrid = new PropertyGrid(PropertyGridMode.PropertySorting | PropertyGridMode.DisplayDescriptions | PropertyGridMode.HideResetAllButton); m_treeControl = new TreeControl(); m_menu = new MenuStrip(); var fileMenu = new ToolStripMenuItem(); var newMenu = new ToolStripMenuItem(); var openMenu = new ToolStripMenuItem(); var exitMenu = new ToolStripMenuItem(); var splitter = new SplitContainer(); m_menu.SuspendLayout(); splitter.BeginInit(); splitter.Panel1.SuspendLayout(); splitter.Panel2.SuspendLayout(); splitter.SuspendLayout(); SuspendLayout(); // m_menu m_menu.Location = new System.Drawing.Point(0, 0); m_menu.Name = "m_menu"; m_menu.TabIndex = 0; m_menu.Text = "m_menu"; m_menu.Items.Add(fileMenu); // file fileMenu.Name = "fileToolStripMenuItem"; fileMenu.Size = new System.Drawing.Size(37, 20); fileMenu.Text = "File".Localize(); fileMenu.DropDownOpening += new EventHandler(fileMenu_DropDownOpening); fileMenu.DropDownItems.AddRange(new ToolStripItem[] { newMenu, openMenu, m_openFolderMenu, m_saveMenu, m_saveAsMenu, exitMenu }); // new newMenu.Name = "newToolStripMenuItem"; newMenu.ShortcutKeys = Keys.Control | Keys.N; newMenu.Text = "New".Localize(); newMenu.Click += NewToolStripMenuItem_Click; //open openMenu.Name = "openToolStripMenuItem"; openMenu.ShortcutKeys = Keys.Control | Keys.O; openMenu.Text = "Open...".Localize(); openMenu.Click += OpenToolStripMenuItem_Click; // open containing folder m_openFolderMenu.Name = "OpenFolderMenu"; m_openFolderMenu.Text = "Open Containing Folder".Localize(); m_openFolderMenu.Click += new EventHandler(OpenFolderMenu_Click); //save m_saveMenu.Name = "saveToolStripMenuItem"; m_saveMenu.ShortcutKeys = Keys.Control | Keys.S; m_saveMenu.Text = "Save".Localize(); m_saveMenu.Click += SaveToolStripMenuItem_Click; // save as m_saveAsMenu.Name = "saveAsToolStripMenuItem"; m_saveAsMenu.Text = "Save As...".Localize(); m_saveAsMenu.Click += SaveAsToolStripMenuItem_Click; // exit exitMenu.Name = "exitToolStripMenuItem"; exitMenu.Text = "Exit".Localize(); exitMenu.Click += ExitToolStripMenuItem_Click; // tree control m_treeControl.Dock = DockStyle.Fill; m_treeControl.Name = "m_treeControl"; m_treeControl.TabIndex = 1; m_treeControl.Width = 150; m_treeControl.ShowRoot = false; m_treeControl.AllowDrop = false; m_treeControl.SelectionMode = SelectionMode.One; m_treeControlAdapter = new TreeControlAdapter(m_treeControl); // propertyGrid1 m_PropertyGrid.Dock = DockStyle.Fill; m_PropertyGrid.Name = "propertyGrid1"; m_PropertyGrid.TabIndex = 3; m_PropertyGrid.PropertySorting = PropertySorting.None; // splitter splitter.Dock = DockStyle.Fill; splitter.Name = "splitContainer1"; splitter.Panel1.Controls.Add(m_treeControl); splitter.Panel2.Controls.Add(m_PropertyGrid); splitter.SplitterDistance = 100; splitter.TabIndex = 1; AutoScaleMode = AutoScaleMode.Font; ClientSize = new System.Drawing.Size(600, 400); Controls.Add(splitter); Controls.Add(m_menu); MainMenuStrip = m_menu; Name = "SkinEditor"; Icon = GdiUtil.CreateIcon(ResourceUtil.GetImage(Sce.Atf.Resources.AtfIconImage)); UpdateTitleText(); m_menu.ResumeLayout(false); m_menu.PerformLayout(); splitter.Panel1.ResumeLayout(false); splitter.Panel2.ResumeLayout(false); splitter.EndInit(); splitter.ResumeLayout(false); ResumeLayout(false); PerformLayout(); splitter.SplitterDistance = 170; }
/// <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 panelControls; System.Windows.Forms.GroupBox filtersGroup; System.Windows.Forms.SplitContainer splitContainer; System.Windows.Forms.TableLayoutPanel tableLeft; System.Windows.Forms.TableLayoutPanel tableRight; this.episodesTree = new System.Windows.Forms.TreeView(); this.episodesCountLabel = new System.Windows.Forms.Label(); this.refreshButton = new System.Windows.Forms.Button(); this.hideWholeSeasons = new System.Windows.Forms.CheckBox(); this.hideLocked = new System.Windows.Forms.CheckBox(); this.hidePart2 = new System.Windows.Forms.CheckBox(); this.hideSeason0 = new System.Windows.Forms.CheckBox(); this.hideUnaired = new System.Windows.Forms.CheckBox(); this.duplicatesButton = new System.Windows.Forms.Button(); this.missingButton = new System.Windows.Forms.Button(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); panelControls = new System.Windows.Forms.Panel(); filtersGroup = new System.Windows.Forms.GroupBox(); splitContainer = new System.Windows.Forms.SplitContainer(); tableLeft = new System.Windows.Forms.TableLayoutPanel(); tableRight = new System.Windows.Forms.TableLayoutPanel(); panelControls.SuspendLayout(); filtersGroup.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(splitContainer)).BeginInit(); splitContainer.Panel1.SuspendLayout(); splitContainer.Panel2.SuspendLayout(); splitContainer.SuspendLayout(); tableLeft.SuspendLayout(); tableRight.SuspendLayout(); this.SuspendLayout(); // // episodesTree // this.episodesTree.Dock = System.Windows.Forms.DockStyle.Fill; this.episodesTree.Location = new System.Drawing.Point(3, 36); this.episodesTree.Name = "episodesTree"; this.episodesTree.Size = new System.Drawing.Size(232, 497); this.episodesTree.TabIndex = 0; this.toolTip.SetToolTip(this.episodesTree, "Shows the results of the search"); // // episodesCountLabel // this.episodesCountLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.episodesCountLabel.AutoSize = true; this.episodesCountLabel.Location = new System.Drawing.Point(3, 20); this.episodesCountLabel.Name = "episodesCountLabel"; this.episodesCountLabel.Size = new System.Drawing.Size(114, 13); this.episodesCountLabel.TabIndex = 1; this.episodesCountLabel.Text = "Number of Episodes: 0"; // // refreshButton // this.refreshButton.Anchor = System.Windows.Forms.AnchorStyles.Left; this.refreshButton.Location = new System.Drawing.Point(3, 5); this.refreshButton.Name = "refreshButton"; this.refreshButton.Size = new System.Drawing.Size(144, 23); this.refreshButton.TabIndex = 1; this.refreshButton.Text = "Refresh Episode Counts"; this.toolTip.SetToolTip(this.refreshButton, "Searches the Output Directories for episodes and updates their file count numbers" + ". \r\nThis is used to determine the results of the missing and duplicate episode\r\n" + "searches."); this.refreshButton.UseVisualStyleBackColor = true; this.refreshButton.Click += new System.EventHandler(this.RefreshButtonClick); // // panelControls // panelControls.Controls.Add(filtersGroup); panelControls.Controls.Add(this.duplicatesButton); panelControls.Controls.Add(this.missingButton); panelControls.Dock = System.Windows.Forms.DockStyle.Fill; panelControls.Location = new System.Drawing.Point(0, 33); panelControls.Margin = new System.Windows.Forms.Padding(0); panelControls.Name = "panelControls"; panelControls.Size = new System.Drawing.Size(468, 503); panelControls.TabIndex = 2; // // filtersGroup // filtersGroup.Controls.Add(this.hideWholeSeasons); filtersGroup.Controls.Add(this.hideLocked); filtersGroup.Controls.Add(this.hidePart2); filtersGroup.Controls.Add(this.hideSeason0); filtersGroup.Controls.Add(this.hideUnaired); filtersGroup.Location = new System.Drawing.Point(3, 32); filtersGroup.Name = "filtersGroup"; filtersGroup.Size = new System.Drawing.Size(294, 136); filtersGroup.TabIndex = 4; filtersGroup.TabStop = false; filtersGroup.Text = "Missing Episode Filters"; // // hideWholeSeasons // this.hideWholeSeasons.AutoSize = true; this.hideWholeSeasons.Location = new System.Drawing.Point(6, 111); this.hideWholeSeasons.Name = "hideWholeSeasons"; this.hideWholeSeasons.Size = new System.Drawing.Size(156, 17); this.hideWholeSeasons.TabIndex = 4; this.hideWholeSeasons.Text = "Hide entire missing seasons"; this.toolTip.SetToolTip(this.hideWholeSeasons, "Hides episodes where and entire season is missing. This can be useful for long ru" + "nning where you don\'t have early seasons."); this.hideWholeSeasons.UseVisualStyleBackColor = true; // // hideLocked // this.hideLocked.AutoSize = true; this.hideLocked.Location = new System.Drawing.Point(6, 88); this.hideLocked.Name = "hideLocked"; this.hideLocked.Size = new System.Drawing.Size(116, 17); this.hideLocked.TabIndex = 3; this.hideLocked.Text = "Hide locked shows"; this.toolTip.SetToolTip(this.hideLocked, "Hides the episodes from shows that are locked."); this.hideLocked.UseVisualStyleBackColor = true; // // hidePart2 // this.hidePart2.AutoSize = true; this.hidePart2.Location = new System.Drawing.Point(6, 65); this.hidePart2.Name = "hidePart2"; this.hidePart2.Size = new System.Drawing.Size(165, 17); this.hidePart2.TabIndex = 2; this.hidePart2.Text = "Hide episodes ending with (2)"; this.toolTip.SetToolTip(this.hidePart2, "Hides episodes with the name ending in (2). \r\nIt is possible these aren\'t missing" + " but the filename\r\ndoesn\'t contain both episode numbers and so\r\nTVSorter isn\'t a" + "ble to match it."); this.hidePart2.UseVisualStyleBackColor = true; // // hideSeason0 // this.hideSeason0.AutoSize = true; this.hideSeason0.Location = new System.Drawing.Point(6, 42); this.hideSeason0.Name = "hideSeason0"; this.hideSeason0.Size = new System.Drawing.Size(143, 17); this.hideSeason0.TabIndex = 1; this.hideSeason0.Text = "Hide season 0 (Specials)"; this.toolTip.SetToolTip(this.hideSeason0, "Hides episode in season 0. These are generally specials."); this.hideSeason0.UseVisualStyleBackColor = true; // // hideUnaired // this.hideUnaired.AutoSize = true; this.hideUnaired.Location = new System.Drawing.Point(6, 19); this.hideUnaired.Name = "hideUnaired"; this.hideUnaired.Size = new System.Drawing.Size(109, 17); this.hideUnaired.TabIndex = 0; this.hideUnaired.Text = "Hide not yet aired"; this.toolTip.SetToolTip(this.hideUnaired, "Hides episodes from the results whose air date is in the future"); this.hideUnaired.UseVisualStyleBackColor = true; // // duplicatesButton // this.duplicatesButton.Location = new System.Drawing.Point(153, 3); this.duplicatesButton.Name = "duplicatesButton"; this.duplicatesButton.Size = new System.Drawing.Size(144, 23); this.duplicatesButton.TabIndex = 3; this.duplicatesButton.Text = "Display Duplicate Episodes"; this.toolTip.SetToolTip(this.duplicatesButton, "Searches for duplicate episodes"); this.duplicatesButton.UseVisualStyleBackColor = true; this.duplicatesButton.Click += new System.EventHandler(this.DuplicatesButtonClick); // // missingButton // this.missingButton.Location = new System.Drawing.Point(3, 3); this.missingButton.Name = "missingButton"; this.missingButton.Size = new System.Drawing.Size(144, 23); this.missingButton.TabIndex = 2; this.missingButton.Text = "Display Missing Episodes"; this.toolTip.SetToolTip(this.missingButton, "Searches for missing episodes."); this.missingButton.UseVisualStyleBackColor = true; this.missingButton.Click += new System.EventHandler(this.MissingButtonClick); // // splitContainer // splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; splitContainer.Location = new System.Drawing.Point(0, 0); splitContainer.Name = "splitContainer"; // // splitContainer.Panel1 // splitContainer.Panel1.Controls.Add(tableLeft); // // splitContainer.Panel2 // splitContainer.Panel2.Controls.Add(tableRight); splitContainer.Size = new System.Drawing.Size(710, 536); splitContainer.SplitterDistance = 238; splitContainer.TabIndex = 5; // // tableLeft // tableLeft.ColumnCount = 1; tableLeft.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableLeft.Controls.Add(this.episodesTree, 0, 1); tableLeft.Controls.Add(this.episodesCountLabel, 0, 0); tableLeft.Dock = System.Windows.Forms.DockStyle.Fill; tableLeft.Location = new System.Drawing.Point(0, 0); tableLeft.Name = "tableLeft"; tableLeft.RowCount = 2; tableLeft.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 33F)); tableLeft.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableLeft.Size = new System.Drawing.Size(238, 536); tableLeft.TabIndex = 0; // // tableRight // tableRight.ColumnCount = 1; tableRight.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableRight.Controls.Add(panelControls, 0, 1); tableRight.Controls.Add(this.refreshButton, 0, 0); tableRight.Dock = System.Windows.Forms.DockStyle.Fill; tableRight.Location = new System.Drawing.Point(0, 0); tableRight.Name = "tableRight"; tableRight.RowCount = 2; tableRight.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 33F)); tableRight.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableRight.Size = new System.Drawing.Size(468, 536); tableRight.TabIndex = 0; // // MissingDuplicateEpisodes // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(splitContainer); this.Name = "MissingDuplicateEpisodes"; this.Size = new System.Drawing.Size(710, 536); this.Load += new System.EventHandler(this.MissingDuplicateEpisodesLoad); panelControls.ResumeLayout(false); filtersGroup.ResumeLayout(false); filtersGroup.PerformLayout(); splitContainer.Panel1.ResumeLayout(false); splitContainer.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(splitContainer)).EndInit(); splitContainer.ResumeLayout(false); tableLeft.ResumeLayout(false); tableLeft.PerformLayout(); tableRight.ResumeLayout(false); this.ResumeLayout(false); }
public ColumnLinkTabPage(GlossaryManagerUI ui) : base() { this.ui = ui; this.Text = "Column Links"; var splitContainer = new System.Windows.Forms.SplitContainer() { Orientation = Orientation.Horizontal, Size = new System.Drawing.Size(500, 500), FixedPanel = FixedPanel.None, Name = "splitContainer", SplitterDistance = 200, SplitterWidth = 6, Panel1MinSize = 200, Panel2MinSize = 100 }; // set here else SplitterDistance causes issues splitContainer.Dock = DockStyle.Fill; splitContainer.SuspendLayout(); splitContainer.SplitterMoved += new SplitterEventHandler(splitterMoved); splitContainer.SplitterMoving += new SplitterCancelEventHandler(splitterMoving); this.Controls.Add(splitContainer); this.addToolbar(); // prepare TreeView icons this.treeIcons = new ImageList(); this.treeIcons.Images.Add( "data item", (System.Drawing.Image) this.ui.resources.GetObject("dataItem.Image") ); this.treeIcons.Images.Add( "table", (System.Drawing.Image) this.ui.resources.GetObject("table.Image") ); this.treeIcons.Images.Add( "column", (System.Drawing.Image) this.ui.resources.GetObject("column.Image") ); this.tree = new TreeView() { Dock = DockStyle.Fill, HideSelection = false, ImageList = this.treeIcons }; this.tree.AfterSelect += new TreeViewEventHandler(this.showDetail); this.tree.KeyDown += new KeyEventHandler(this.treeKeyDown); this.Controls.Add(tree); this.ui.NewContext += new NewContextHandler(this.handleContextChange); this.createForm(); splitContainer.Panel1.Controls.Add(this.tree); splitContainer.Panel2.Controls.Add(this.form); splitContainer.ResumeLayout(false); }
private void button1_Click(object sender, EventArgs e) { if (ModelingForm == null) { ModelingForm = new Form(); ModelingForm.StartPosition = FormStartPosition.Manual; ModelingForm.Left = Cursor.Position.X + 5; ModelingForm.Top = Cursor.Position.Y + 5; ModelingForm.FormBorderStyle = FormBorderStyle.Sizable; ModelingForm.Name = "frmModeling"; ModelingForm.BackColor = System.Drawing.Color.LightGray; RichTextBox eee = new RichTextBox(); eee.Margin = new System.Windows.Forms.Padding(0); eee.Font = new System.Drawing.Font("Calibri", 10); eee.Multiline = true; eee.ReadOnly = true; TabControl tbc = new TabControl(); SplitContainer sc = new SplitContainer(); TableLayoutPanel tbl = new TableLayoutPanel(); Button b = new Button(); b.Text = "Hello"; b.Dock = DockStyle.Fill; tbl.Controls.Add(b, 0, 0); tbl.Controls.Add(new Button(), 0, 1); tbl.Controls.Add(new Button(), 0, 2); tbl.Controls.Add(new Button(), 0, 3); tbl.AutoSize = true; TableLayoutPanel tbl2 = new TableLayoutPanel(); b = new Button(); b.Text = "Hello"; tbl2.Controls.Add(b, 0, 0); tbl2.Controls.Add(new Button(), 0, 1); tbl2.Controls.Add(new Button(), 0, 2); tbl2.Controls.Add(new Button(), 0, 3); tbl2.AutoSize = true; tbl2.SuspendLayout(); tbl.SuspendLayout(); sc.Panel2.Controls.Add(tbl2); sc.Panel1.Controls.Add(tbl); sc.Panel1.AutoSize = true; sc.AutoSize = true; tbl2.ResumeLayout(); tbl.ResumeLayout(); sc.BorderStyle = BorderStyle.Fixed3D; sc.AutoSize = true; string aaa = @" ================================================================ MainCallEndByExtension - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : byCallType = INTERNAL sDeviceExtension = 3312 sDeviceDistantOptional = sDeviceExtLst = bIncludeDistConnectnsFromToDevIfInternal = True bSearchConnctnsForwards = False bOnlyConsiderNonAnsweredGroupCalls = False ppMainCallIDsDeleted = ================================================================ DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDevice = [CONF] sCallIDTelSys = 9D1CE0BF47B8039EDB48 sDeviceDistantEnd = 3312 bUseDistantEndAlsoIfUsingCallID = True bCallInInfoOverride = False sCallInInfoGrp = sCallInInfoDDIDigits = bIgnoreNonCallConnections = True bSearchForwards = False bSearchAllCallConnections = True bClearByDevFirstRung = False bClearDistantEndConnectionIfFlagsMatch = False iClearDistantEndConnectionIfFlagsMatch = 0 bDoNotAttemptOnHookCalculation = False ================================================================ DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDevice = 3312 sCallIDTelSys = 9D1CE0BF47B8039EDB48 sDeviceDistantEnd = bUseDistantEndAlsoIfUsingCallID = False bCallInInfoOverride = False sCallInInfoGrp = sCallInInfoDDIDigits = bIgnoreNonCallConnections = True bSearchForwards = False bSearchAllCallConnections = True bClearByDevFirstRung = False bClearDistantEndConnectionIfFlagsMatch = False iClearDistantEndConnectionIfFlagsMatch = 0 bDoNotAttemptOnHookCalculation = False ================================================================ MainCallEndByExtension - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : byCallType = INTERNAL sDeviceExtension = 3321 sDeviceDistantOptional = sDeviceExtLst = bIncludeDistConnectnsFromToDevIfInternal = True bSearchConnctnsForwards = False bOnlyConsiderNonAnsweredGroupCalls = False ppMainCallIDsDeleted = ================================================================ DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDevice = [CONF] sCallIDTelSys = 9D1CE0BF47B8039EDB48 sDeviceDistantEnd = 3321 bUseDistantEndAlsoIfUsingCallID = True bCallInInfoOverride = False sCallInInfoGrp = sCallInInfoDDIDigits = bIgnoreNonCallConnections = True bSearchForwards = False bSearchAllCallConnections = True bClearByDevFirstRung = False bClearDistantEndConnectionIfFlagsMatch = False iClearDistantEndConnectionIfFlagsMatch = 0 bDoNotAttemptOnHookCalculation = False ================================================================ DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDevice = 3321 sCallIDTelSys = 9D1CE0BF47B8039EDB48 sDeviceDistantEnd = bUseDistantEndAlsoIfUsingCallID = False bCallInInfoOverride = False sCallInInfoGrp = sCallInInfoDDIDigits = bIgnoreNonCallConnections = True bSearchForwards = False bSearchAllCallConnections = True bClearByDevFirstRung = False bClearDistantEndConnectionIfFlagsMatch = False iClearDistantEndConnectionIfFlagsMatch = 0 bDoNotAttemptOnHookCalculation = False ================================================================ DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDevice = [CONF] sCallIDTelSys = 9D1CE0BF47B8039EDB48 sDeviceDistantEnd = bUseDistantEndAlsoIfUsingCallID = False bCallInInfoOverride = False sCallInInfoGrp = sCallInInfoDDIDigits = bIgnoreNonCallConnections = True bSearchForwards = False bSearchAllCallConnections = True bClearByDevFirstRung = False bClearDistantEndConnectionIfFlagsMatch = False iClearDistantEndConnectionIfFlagsMatch = 0 bDoNotAttemptOnHookCalculation = False ================================================================ DevCallAnswer - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDeviceLocal = 3311, LegID = sDeviceDistant = 3321, LegID = sDeviceGroup = , LegID = bAlwaysUseDevGrpToCalcGrpDistrib = False iCallModellingFlags = 15 sCallIDTelSys = 9D1CE0BF47B8039EDB48 bCalcMainCallIDFromConnectns = True bMarkAnsweredIn = True bMarkAnsweredOut = True bMarkUnHeldIn = True bMarkUnHeldOut = True bDeleteCallConnectnsElsewhere = False bUseCallAnswerFlagForCallConnectns = False bDegenerateCallConference = True bSegAlgrthmRun = True iSegAlgrthmFlags = 257 ================================================================ MainCallEnd - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sCallIDTelSys = 9D1CE0BF47B8039EDB48 pSDeviceDistant = [CONF], LegID = pSDeviceLocal = 3311, LegID = sDeviceExtLst = "; string[] bbb = System.Text.RegularExpressions.Regex.Split(aaa, String.Format("{1}+{0}{1}+", @"={2,}\s*", Environment.NewLine));//, System.Text.RegularExpressions.RegexOptions.Multiline); int counter = 1; foreach (string item in bbb) { eee.Text += item; if (!String.IsNullOrWhiteSpace(item)) { string []info = item.Split(new string[]{" - "}, StringSplitOptions.RemoveEmptyEntries); if (info.Length == 2) { TabPage tb = new TabPage(counter.ToString()); RichTextBox tbText = new RichTextBox(); tbText.Text = info[0] + Environment.NewLine; tbText.Text += " " + info[1]; tbText.Size = tbText.PreferredSize; tb.Controls.Add(tbText); tbc.TabPages.Add(tb); tb.Dock = DockStyle.Fill; counter++; } } } //tbc.Size = tbc.GetPreferredSize(tbc.Size); tbc.Dock = DockStyle.Fill; //tbc.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; //int globalindex = 0; //foreach (string line in eee.Lines) //{ // int index = line.IndexOf(" = ", 0); // if (index > -1) // { // eee.SelectionStart = globalindex + index + 3; // eee.SelectionLength = line.Length - index - 3; // eee.SelectionFont = new System.Drawing.Font(eee.Font, FontStyle.Bold); // } // globalindex += line.Length + 1; //} eee.Size = eee.PreferredSize; ModelingForm.SuspendLayout(); sc.Size = sc.PreferredSize; sc.SuspendLayout(); //ModelingForm.Controls.AddRange(new Control[] { eee, tbc }); //ModelingForm.Controls.AddRange(new Control[] { tbc }); ModelingForm.Controls.AddRange(new Control[] { sc }); ModelingForm.Show(this); sc.ResumeLayout(); ModelingForm.ResumeLayout(); } else { ModelingForm.Close(); ModelingForm = null; } }
private void InitializeComponent() { splitContainer1 = new System.Windows.Forms.SplitContainer(); treeView1 = new System.Windows.Forms.TreeView(); splitContainer2 = new MySplitContainer(); listView1 = new System.Windows.Forms.ListView(); listView2 = new System.Windows.Forms.ListView(); splitContainer1.SuspendLayout(); splitContainer2.SuspendLayout(); SuspendLayout(); // Basic SplitContainer properties. // This is a vertical splitter that moves in 10-pixel increments. // This splitter needs no explicit Orientation property because Vertical is the default. splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; splitContainer1.ForeColor = System.Drawing.SystemColors.Control; splitContainer1.Location = new System.Drawing.Point(0, 0); splitContainer1.Name = "splitContainer1"; // You can drag the splitter no nearer than 30 pixels from the left edge of the container. splitContainer1.Panel1MinSize = 30; // You can drag the splitter no nearer than 20 pixels from the right edge of the container. splitContainer1.Panel2MinSize = 20; splitContainer1.Size = new System.Drawing.Size(292, 273); splitContainer1.SplitterDistance = 79; // This splitter moves in 10-pixel increments. splitContainer1.SplitterIncrement = 10; splitContainer1.SplitterWidth = 6; // splitContainer1 is the first control in the tab order. splitContainer1.TabIndex = 0; splitContainer1.Text = "splitContainer1"; // When the splitter moves, the cursor changes shape. splitContainer1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(splitContainer1_SplitterMoved); splitContainer1.SplitterMoving += new System.Windows.Forms.SplitterCancelEventHandler(splitContainer1_SplitterMoving); // Add a TreeView control to the left panel. splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.Control; // Add a TreeView control to Panel1. splitContainer1.Panel1.Controls.Add(treeView1); splitContainer1.Panel1.Name = "splitterPanel1"; // Controls placed on Panel1 support right-to-left fonts. splitContainer1.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; // Add a SplitContainer to the right panel. splitContainer1.Panel2.Controls.Add(splitContainer2); splitContainer1.Panel2.Name = "splitterPanel2"; // This TreeView control is in Panel1 of splitContainer1. treeView1.Dock = System.Windows.Forms.DockStyle.Fill; treeView1.ForeColor = System.Drawing.SystemColors.InfoText; treeView1.ImageIndex = -1; treeView1.Location = new System.Drawing.Point(0, 0); treeView1.Name = "treeView1"; treeView1.SelectedImageIndex = -1; treeView1.Size = new System.Drawing.Size(79, 273); treeView1.BeginUpdate(); treeView1.Nodes.Add("Parent"); treeView1.Nodes[0].Nodes.Add("Child 1"); treeView1.Nodes[0].Nodes.Add("Child 2"); treeView1.Nodes[0].Nodes[1].Nodes.Add("Grandchild"); treeView1.Nodes[0].Nodes[1].Nodes[0].Nodes.Add("Great Grandchild"); treeView1.EndUpdate(); // treeView1 is the second control in the tab order. treeView1.TabIndex = 1; // Basic SplitContainer properties. // This is a horizontal splitter whose top and bottom panels are ListView controls. The top panel is fixed. splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; // The top panel remains the same size when the form is resized. splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; splitContainer2.Location = new System.Drawing.Point(0, 0); splitContainer2.Name = "splitContainer2"; // Create the horizontal splitter. splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; splitContainer2.Size = new System.Drawing.Size(207, 273); splitContainer2.SplitterDistance = 125; splitContainer2.SplitterWidth = 6; // splitContainer2 is the third control in the tab order. //splitContainer2.TabIndex = 2; splitContainer2.TabStop = false; splitContainer2.Text = "splitContainer2"; // This splitter panel contains the top ListView control. splitContainer2.Panel1.Controls.Add(listView1); splitContainer2.Panel1.Name = "splitterPanel3"; // This splitter panel contains the bottom ListView control. splitContainer2.Panel2.Controls.Add(listView2); splitContainer2.Panel2.Name = "splitterPanel4"; // This ListView control is in the top panel of splitContainer2. listView1.Dock = System.Windows.Forms.DockStyle.Fill; listView1.Location = new System.Drawing.Point(0, 0); listView1.Name = "listView1"; listView1.Size = new System.Drawing.Size(207, 125); listView1.View = View.Details; // Display grid lines. listView1.GridLines = true; // Create three items and three sets of subitems for each item. ListViewItem item1 = new ListViewItem("item1", 0); // Place a check mark next to the item. item1.Checked = true; item1.SubItems.Add("1"); item1.SubItems.Add("2"); item1.SubItems.Add("3"); ListViewItem item2 = new ListViewItem("item2", 1); item2.SubItems.Add("4"); item2.SubItems.Add("5"); item2.SubItems.Add("6"); ListViewItem item3 = new ListViewItem("item3", 0); // Place a check mark next to the item. item3.Checked = true; item3.SubItems.Add("7"); item3.SubItems.Add("8"); item3.SubItems.Add("9"); // Create columns for the items and subitems. // Width of -2 indicates auto-size. listView1.Columns.Add("Item Column", -2, HorizontalAlignment.Left); listView1.Columns.Add("Column 2", -2, HorizontalAlignment.Left); listView1.Columns.Add("Column 3", -2, HorizontalAlignment.Left); listView1.Columns.Add("Column 4", -2, HorizontalAlignment.Center); //Add the items to the ListView. listView1.Items.AddRange(new ListViewItem[] { item1, item2, item3 }); // listView1 is the fourth control in the tab order. listView1.TabIndex = 3; // This ListView control is in the bottom panel of splitContainer2. listView2.Dock = System.Windows.Forms.DockStyle.Fill; listView2.Location = new System.Drawing.Point(0, 0); listView2.Name = "listView2"; listView2.Size = new System.Drawing.Size(207, 142); listView2.View = View.Details; // Display grid lines. listView2.GridLines = true; // Create three items and three sets of subitems for each item. item1 = new ListViewItem("item1", 0); // Place a check mark next to the item. item1.Checked = true; item1.SubItems.Add("1"); item1.SubItems.Add("2"); item1.SubItems.Add("3"); item2 = new ListViewItem("item2", 1); item2.SubItems.Add("4"); item2.SubItems.Add("5"); item2.SubItems.Add("6"); item3 = new ListViewItem("item3", 0); // Place a check mark next to the item. item3.Checked = true; item3.SubItems.Add("7"); item3.SubItems.Add("8"); item3.SubItems.Add("9"); // Create columns for the items and subitems. // Width of -2 indicates auto-size. listView2.Columns.Add("Item Column", -2, HorizontalAlignment.Left); listView2.Columns.Add("Column 2", -2, HorizontalAlignment.Left); listView2.Columns.Add("Column 3", -2, HorizontalAlignment.Left); listView2.Columns.Add("Column 4", -2, HorizontalAlignment.Center); //Add the items to the ListView. listView2.Items.AddRange(new ListViewItem[] { item1, item2, item3 }); // listView2 is the fifth control in the tab order. listView2.TabIndex = 4; // These are basic properties of the form. //ClientSize = new System.Drawing.Size(292, 273); this.WindowState = FormWindowState.Maximized; Controls.Add(splitContainer1); Name = "Form1"; Text = "Form1"; splitContainer1.ResumeLayout(false); splitContainer2.ResumeLayout(false); ResumeLayout(false); }
//SplitContainer getView(string ViewNm) //{ // SplitContainer result; // ToolStripMenuItem cam_List = new ToolStripMenuItem(); // ToolStripMenuItem cam_Front = new ToolStripMenuItem(); // ToolStripMenuItem cam_Persp = new ToolStripMenuItem(); // ToolStripMenuItem cam_Side = new ToolStripMenuItem(); // ToolStripMenuItem cam_Top = new ToolStripMenuItem(); // MenuStrip menuStrip = new MenuStrip(); // menuStrip.SuspendLayout(); // // // //StripMenuItem: Cam_Persp // // // cam_Persp.Name = "Cam_Persp"; // cam_Persp.Size = new System.Drawing.Size(152, 22); // cam_Persp.Text = "Persp"; // // // //StripMenuItem: Cam_Top // // // cam_Top.Name = "Cam_Top"; // cam_Top.Size = new System.Drawing.Size(152, 22); // cam_Top.Text = "Top"; // // // //StripMenuItem: Cam_Side // // // cam_Side.Name = "Cam_Side"; // cam_Side.Size = new System.Drawing.Size(152, 22); // cam_Side.Text = "Side"; // // // //StripMenuItem: Cam_Front // // // cam_Front.Name = "Cam_Front"; // cam_Front.Size = new System.Drawing.Size(152, 22); // cam_Front.Text = "Front"; // // // //StripMenuItem: CamList // // // cam_List.DropDownItems.AddRange(new ToolStripMenuItem[] // { // cam_Front, // cam_Persp, // cam_Side, // cam_Top // }); // cam_List.Name = "CamListStripMenu"; // cam_List.Size = new System.Drawing.Size(37, 20); // cam_List.Text = "Cams"; // // // //MenuStrip // // // menuStrip.Items.AddRange(new ToolStripItem[] // { // cam_List // }); // menuStrip.Location = new System.Drawing.Point(0, 0); // menuStrip.Name = "ViewMenuStrip"; // menuStrip.Size = new System.Drawing.Size(650, 25); // menuStrip.TabIndex = 3; // menuStrip.Text = "ViewMenuStrip"; // result = new SplitContainer(); // ((System.ComponentModel.ISupportInitialize) // (result)).BeginInit(); // result.Panel1.SuspendLayout(); // result.Panel2.SuspendLayout(); // result.SuspendLayout(); // result.Dock = DockStyle.Fill; // result.Location = new System.Drawing.Point(0, 0); // result.Name = "SplitView"; // result.Orientation = Orientation.Horizontal; // result.Panel1.Controls.Add(menuStrip); // SceneEntry scene; // //a = _entry; // //result.Panel2.Controls.Add(_entry); // scene = new WinFormsContentLoading.SceneEntry(); // scene.Dock = System.Windows.Forms.DockStyle.Fill; // scene.Location = new System.Drawing.Point(0, 0); // scene.Name = ViewNm; // scene.Size = new System.Drawing.Size(642, 407); // scene.TabIndex = 11; // scene.Text = "modelViewerControl"; // result.Panel2.Controls.Add(scene); // result.Size = new System.Drawing.Size(640, 480); // result.SplitterDistance = 10; // result.TabIndex = 3; // result.AutoScaleMode = AutoScaleMode.Font; // menuStrip.ResumeLayout(false); // menuStrip.PerformLayout(); // return result; //} void IntialTwoView() { this.Controls.Clear(); //SplitContainer verticalRoot = new SplitContainer(); _viewContainerRoot = new SplitContainer(); ((System.ComponentModel.ISupportInitialize) (_viewContainerRoot)).BeginInit(); _viewContainerRoot.Panel1.SuspendLayout(); _viewContainerRoot.Panel2.SuspendLayout(); _viewContainerRoot.SuspendLayout(); _viewContainerRoot.Dock = DockStyle.Fill; _viewContainerRoot.Location = new System.Drawing.Point(0, 0); _viewContainerRoot.Name = "VerticalRoot"; _viewContainerRoot.Orientation = Orientation.Vertical; SplitContainer view1 = new ViewContainer("View1", true); //getView("View1"); SplitContainer view2 = new ViewContainer("View2", false); //getView("View2"); _viewContainerRoot.Panel1.Controls.Add(view1); _viewContainerRoot.Panel2.Controls.Add(view2); this.Controls.Add(_viewContainerRoot); view1.Panel1.ResumeLayout(false); view1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize) view1).EndInit(); view1.ResumeLayout(false); view2.Panel1.ResumeLayout(false); view2.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize) view2).EndInit(); view2.ResumeLayout(false); _viewContainerRoot.Panel1.ResumeLayout(false); _viewContainerRoot.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize) _viewContainerRoot).EndInit(); _viewContainerRoot.ResumeLayout(false); this.Name = "ViewPanal"; this.InitLayout(); // Rectangle a= // ((SceneEntry)((SplitContainer)_viewContainerRoot.Panel1.Controls[0]).Panel2.Controls[0]).ActiveRegion; }
private void InitializeComponent() { components = new System.ComponentModel.Container(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AppWin_SPITool_PRO)); grbRegisterFilter = new System.Windows.Forms.GroupBox(); btnCheckUncheck = new System.Windows.Forms.Button(); chbStatus = new System.Windows.Forms.CheckBox(); chbTest = new System.Windows.Forms.CheckBox(); chbMisc = new System.Windows.Forms.CheckBox(); chbDigital = new System.Windows.Forms.CheckBox(); chbRF = new System.Windows.Forms.CheckBox(); dgvRegisterList = new System.Windows.Forms.DataGridView(); Mark = new System.Windows.Forms.DataGridViewCheckBoxColumn(); Addr = new System.Windows.Forms.DataGridViewTextBoxColumn(); Hex = new System.Windows.Forms.DataGridViewTextBoxColumn(); RName = new System.Windows.Forms.DataGridViewTextBoxColumn(); bit7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); bit6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); bit5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); bit4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); bit3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); bit2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); bit1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); bit0 = new System.Windows.Forms.DataGridViewTextBoxColumn(); Read = new System.Windows.Forms.DataGridViewButtonColumn(); Write = new System.Windows.Forms.DataGridViewButtonColumn(); B1 = new System.Windows.Forms.DataGridViewButtonColumn(); B2 = new System.Windows.Forms.DataGridViewButtonColumn(); B3 = new System.Windows.Forms.DataGridViewButtonColumn(); B4 = new System.Windows.Forms.DataGridViewButtonColumn(); regListId = new System.Windows.Forms.DataGridViewTextBoxColumn(); groupBox1 = new System.Windows.Forms.GroupBox(); chbMarked = new System.Windows.Forms.CheckBox(); chbCUAll = new System.Windows.Forms.CheckBox(); spcMainContainer = new System.Windows.Forms.SplitContainer(); grbLog = new System.Windows.Forms.GroupBox(); btnClearLog2 = new System.Windows.Forms.Button(); chbDisableLogging2 = new System.Windows.Forms.CheckBox(); rtbLogWindow2 = new System.Windows.Forms.RichTextBox(); btnLoadDefaultRegister = new System.Windows.Forms.Button(); btnWriteAllRegister = new System.Windows.Forms.Button(); btnReadAllRegister = new System.Windows.Forms.Button(); tbcMain = new System.Windows.Forms.TabControl(); tabPage4 = new System.Windows.Forms.TabPage(); grbBatch = new System.Windows.Forms.GroupBox(); pnlBatchMain = new System.Windows.Forms.Panel(); pnlBatch4 = new System.Windows.Forms.Panel(); txbBatch4 = new System.Windows.Forms.TextBox(); btnRunB4 = new System.Windows.Forms.Button(); chbLoopB4 = new System.Windows.Forms.CheckBox(); rtbBatchList4 = new System.Windows.Forms.TextBox(); pnlBatch3 = new System.Windows.Forms.Panel(); txbBatch3 = new System.Windows.Forms.TextBox(); chbLoopB3 = new System.Windows.Forms.CheckBox(); btnRunB3 = new System.Windows.Forms.Button(); rtbBatchList3 = new System.Windows.Forms.TextBox(); pnlBatch2 = new System.Windows.Forms.Panel(); txbBatch2 = new System.Windows.Forms.TextBox(); chbLoopB2 = new System.Windows.Forms.CheckBox(); btnRunB2 = new System.Windows.Forms.Button(); rtbBatchList2 = new System.Windows.Forms.TextBox(); pnlBatch1 = new System.Windows.Forms.Panel(); txbBatch1 = new System.Windows.Forms.TextBox(); rtbBatchList1 = new System.Windows.Forms.TextBox(); btnRunB1 = new System.Windows.Forms.Button(); chbLoopB1 = new System.Windows.Forms.CheckBox(); vrbViewBatch = new System.Windows.Forms.GroupBox(); label5 = new System.Windows.Forms.Label(); label3 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); label1 = new System.Windows.Forms.Label(); chbViewB4 = new System.Windows.Forms.CheckBox(); chbViewB3 = new System.Windows.Forms.CheckBox(); chbViewB2 = new System.Windows.Forms.CheckBox(); chbViewB1 = new System.Windows.Forms.CheckBox(); grbSaveLoad = new System.Windows.Forms.GroupBox(); btnSaveBatch = new System.Windows.Forms.Button(); rdbSaveOpenB4 = new System.Windows.Forms.RadioButton(); btnOpenBatch = new System.Windows.Forms.Button(); rdbSaveOpenB3 = new System.Windows.Forms.RadioButton(); rdbSaveOpenB2 = new System.Windows.Forms.RadioButton(); rdbSaveOpenB1 = new System.Windows.Forms.RadioButton(); grbLoopControl = new System.Windows.Forms.GroupBox(); nudLoopLimit = new System.Windows.Forms.NumericUpDown(); btnResetLoop = new System.Windows.Forms.Button(); txbLoopCount = new System.Windows.Forms.TextBox(); label4 = new System.Windows.Forms.Label(); chbLoopLimit = new System.Windows.Forms.CheckBox(); tbpFIFO = new System.Windows.Forms.TabPage(); pnlBerPer = new System.Windows.Forms.Panel(); btnResetFifo = new System.Windows.Forms.Button(); lblBER = new System.Windows.Forms.Label(); lblBitError = new System.Windows.Forms.Label(); lblDatabits = new System.Windows.Forms.Label(); txbBitErrors = new System.Windows.Forms.TextBox(); txbBER = new System.Windows.Forms.TextBox(); txbDatabits = new System.Windows.Forms.TextBox(); lblPER = new System.Windows.Forms.Label(); lblLost = new System.Windows.Forms.Label(); lblPackets = new System.Windows.Forms.Label(); txbLost = new System.Windows.Forms.TextBox(); txbPER = new System.Windows.Forms.TextBox(); txbPackets = new System.Windows.Forms.TextBox(); pnlRXFIFO = new System.Windows.Forms.Panel(); dgvRX = new System.Windows.Forms.DataGridView(); dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); xpdC = new System.Windows.Forms.DataGridViewTextBoxColumn(); errC = new System.Windows.Forms.DataGridViewTextBoxColumn(); btnSaveRead = new System.Windows.Forms.Button(); btnOpenRead = new System.Windows.Forms.Button(); btnRead = new System.Windows.Forms.Button(); pnlTXFIFO = new System.Windows.Forms.Panel(); dgvTX = new System.Windows.Forms.DataGridView(); numC = new System.Windows.Forms.DataGridViewTextBoxColumn(); dataC = new System.Windows.Forms.DataGridViewTextBoxColumn(); btnSaveWrite = new System.Windows.Forms.Button(); btnOpenWrite = new System.Windows.Forms.Button(); btnWrite = new System.Windows.Forms.Button(); tbpDescription = new System.Windows.Forms.TabPage(); txbDescription = new System.Windows.Forms.RichTextBox(); chbDisableLogging = new System.Windows.Forms.CheckBox(); lblTermWin = new System.Windows.Forms.Label(); btnClearLog = new System.Windows.Forms.Button(); rtbLogWindow = new System.Windows.Forms.RichTextBox(); spiStatusBar = new System.Windows.Forms.StatusBar(); statusBarPanel1 = new System.Windows.Forms.StatusBarPanel(); sbChipRevPane = new System.Windows.Forms.StatusBarPanel(); sbDeviceStatePane = new System.Windows.Forms.StatusBarPanel(); statusBarPanel4 = new StatusBarTest.StatusBarProgressPanel(); tmrCommon = new System.Windows.Forms.Timer(components); ttpMainToolTip = new System.Windows.Forms.ToolTip(components); tsrMainToolStrip = new NewWDS.Applications.App_Common.AppToolStrip.ApplicationToolStrip(); grbRegisterFilter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(dgvRegisterList)).BeginInit(); groupBox1.SuspendLayout(); spcMainContainer.Panel1.SuspendLayout(); spcMainContainer.Panel2.SuspendLayout(); spcMainContainer.SuspendLayout(); grbLog.SuspendLayout(); tbcMain.SuspendLayout(); tabPage4.SuspendLayout(); grbBatch.SuspendLayout(); pnlBatchMain.SuspendLayout(); pnlBatch4.SuspendLayout(); pnlBatch3.SuspendLayout(); pnlBatch2.SuspendLayout(); pnlBatch1.SuspendLayout(); vrbViewBatch.SuspendLayout(); grbSaveLoad.SuspendLayout(); grbLoopControl.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(nudLoopLimit)).BeginInit(); tbpFIFO.SuspendLayout(); pnlBerPer.SuspendLayout(); pnlRXFIFO.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(dgvRX)).BeginInit(); pnlTXFIFO.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(dgvTX)).BeginInit(); tbpDescription.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(statusBarPanel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(sbChipRevPane)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(sbDeviceStatePane)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(statusBarPanel4)).BeginInit(); SuspendLayout(); // // grbRegisterFilter // grbRegisterFilter.Controls.Add(btnCheckUncheck); grbRegisterFilter.Controls.Add(chbStatus); grbRegisterFilter.Controls.Add(chbTest); grbRegisterFilter.Controls.Add(chbMisc); grbRegisterFilter.Controls.Add(chbDigital); grbRegisterFilter.Controls.Add(chbRF); grbRegisterFilter.Location = new System.Drawing.Point(900, 7); grbRegisterFilter.Name = "grbRegisterFilter"; grbRegisterFilter.Size = new System.Drawing.Size(81, 166); grbRegisterFilter.TabIndex = 9; grbRegisterFilter.TabStop = false; grbRegisterFilter.Text = "Filter"; // // btnCheckUncheck // btnCheckUncheck.Location = new System.Drawing.Point(2, 134); btnCheckUncheck.Name = "btnCheckUncheck"; btnCheckUncheck.Size = new System.Drawing.Size(75, 23); btnCheckUncheck.TabIndex = 3; btnCheckUncheck.Text = "UnCheck"; btnCheckUncheck.UseVisualStyleBackColor = true; btnCheckUncheck.Click += new System.EventHandler(btnCheckUncheck_Click); // // chbStatus // chbStatus.AutoSize = true; chbStatus.Checked = true; chbStatus.CheckState = System.Windows.Forms.CheckState.Checked; chbStatus.Location = new System.Drawing.Point(3, 111); chbStatus.Name = "chbStatus"; chbStatus.Size = new System.Drawing.Size(70, 21); chbStatus.TabIndex = 5; chbStatus.Text = "Status"; chbStatus.UseVisualStyleBackColor = true; chbStatus.CheckedChanged += new System.EventHandler(chbFilter_CheckedChanged); // // chbTest // chbTest.AutoSize = true; chbTest.Checked = true; chbTest.CheckState = System.Windows.Forms.CheckState.Checked; chbTest.Location = new System.Drawing.Point(3, 88); chbTest.Name = "chbTest"; chbTest.Size = new System.Drawing.Size(58, 21); chbTest.TabIndex = 4; chbTest.Text = "Test"; chbTest.UseVisualStyleBackColor = true; chbTest.CheckedChanged += new System.EventHandler(chbFilter_CheckedChanged); // // chbMisc // chbMisc.AutoSize = true; chbMisc.Checked = true; chbMisc.CheckState = System.Windows.Forms.CheckState.Checked; chbMisc.Location = new System.Drawing.Point(3, 65); chbMisc.Name = "chbMisc"; chbMisc.Size = new System.Drawing.Size(62, 21); chbMisc.TabIndex = 3; chbMisc.Text = "Misc."; chbMisc.UseVisualStyleBackColor = true; chbMisc.CheckedChanged += new System.EventHandler(chbFilter_CheckedChanged); // // chbDigital // chbDigital.AutoSize = true; chbDigital.Checked = true; chbDigital.CheckState = System.Windows.Forms.CheckState.Checked; chbDigital.Location = new System.Drawing.Point(3, 42); chbDigital.Name = "chbDigital"; chbDigital.Size = new System.Drawing.Size(69, 21); chbDigital.TabIndex = 2; chbDigital.Text = "Digital"; chbDigital.UseVisualStyleBackColor = true; chbDigital.CheckedChanged += new System.EventHandler(chbFilter_CheckedChanged); // // chbRF // chbRF.AutoSize = true; chbRF.Checked = true; chbRF.CheckState = System.Windows.Forms.CheckState.Checked; chbRF.Location = new System.Drawing.Point(3, 19); chbRF.Name = "chbRF"; chbRF.Size = new System.Drawing.Size(48, 21); chbRF.TabIndex = 1; chbRF.Text = "RF"; chbRF.UseVisualStyleBackColor = true; chbRF.CheckedChanged += new System.EventHandler(chbFilter_CheckedChanged); // // dgvRegisterList // dgvRegisterList.AllowUserToAddRows = false; dgvRegisterList.AllowUserToDeleteRows = false; dgvRegisterList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvRegisterList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { Mark, Addr, Hex, RName, bit7, bit6, bit5, bit4, bit3, bit2, bit1, bit0, Read, Write, B1, B2, B3, B4, regListId}); dgvRegisterList.Location = new System.Drawing.Point(3, 8); dgvRegisterList.MultiSelect = false; dgvRegisterList.Name = "dgvRegisterList"; dgvRegisterList.RowHeadersWidth = 25; dgvRegisterList.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText; dgvRegisterList.RowsDefaultCellStyle = dataGridViewCellStyle1; dgvRegisterList.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; dgvRegisterList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; dgvRegisterList.Size = new System.Drawing.Size(893, 220); dgvRegisterList.TabIndex = 10; dgvRegisterList.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(dgvRegisterList_CellBeginEdit); dgvRegisterList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(dgvRegisterList_CellClick); dgvRegisterList.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(dgvRegisterList_CellDoubleClick); dgvRegisterList.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(dgvRegisterList_CellEndEdit); dgvRegisterList.SelectionChanged += new System.EventHandler(dgvRegisterList_SelectionChanged); dgvRegisterList.Sorted += new System.EventHandler(dgvRegisterList_Sorted); // // Mark // Mark.HeaderText = "M"; Mark.Name = "Mark"; Mark.Width = 20; // // Addr // Addr.HeaderText = "Addr."; Addr.Name = "Addr"; Addr.ReadOnly = true; Addr.Width = 38; // // Hex // Hex.HeaderText = "Hex"; Hex.Name = "Hex"; Hex.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; Hex.Width = 38; // // RName // RName.HeaderText = "Name"; RName.Name = "RName"; RName.ReadOnly = true; RName.Width = 200; // // bit7 // bit7.HeaderText = "bit7"; bit7.Name = "bit7"; bit7.ReadOnly = true; bit7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; bit7.Width = 50; // // bit6 // bit6.HeaderText = "bit6"; bit6.Name = "bit6"; bit6.ReadOnly = true; bit6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; bit6.Width = 50; // // bit5 // bit5.HeaderText = "bit5"; bit5.Name = "bit5"; bit5.ReadOnly = true; bit5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; bit5.Width = 50; // // bit4 // bit4.HeaderText = "bit4"; bit4.Name = "bit4"; bit4.ReadOnly = true; bit4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; bit4.Width = 50; // // bit3 // bit3.HeaderText = "bit3"; bit3.Name = "bit3"; bit3.ReadOnly = true; bit3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; bit3.Width = 50; // // bit2 // bit2.HeaderText = "bit2"; bit2.Name = "bit2"; bit2.ReadOnly = true; bit2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; bit2.Width = 50; // // bit1 // bit1.HeaderText = "bit1"; bit1.Name = "bit1"; bit1.ReadOnly = true; bit1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; bit1.Width = 50; // // bit0 // bit0.HeaderText = "bit0"; bit0.Name = "bit0"; bit0.ReadOnly = true; bit0.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; bit0.Width = 50; // // Read // Read.HeaderText = "R"; Read.Name = "Read"; Read.Width = 29; // // Write // Write.HeaderText = "W"; Write.Name = "Write"; Write.Width = 29; // // B1 // B1.HeaderText = "1"; B1.Name = "B1"; B1.Width = 24; // // B2 // B2.HeaderText = "2"; B2.Name = "B2"; B2.Width = 24; // // B3 // B3.HeaderText = "3"; B3.Name = "B3"; B3.Width = 24; // // B4 // B4.HeaderText = "4"; B4.Name = "B4"; B4.Width = 24; // // regListId // regListId.HeaderText = "LId"; regListId.Name = "regListId"; regListId.ReadOnly = true; regListId.Visible = false; // // groupBox1 // groupBox1.Controls.Add(chbMarked); groupBox1.Controls.Add(chbCUAll); groupBox1.Location = new System.Drawing.Point(3, 234); groupBox1.Name = "groupBox1"; groupBox1.Size = new System.Drawing.Size(382, 46); groupBox1.TabIndex = 23; groupBox1.TabStop = false; groupBox1.Text = "Grid View Control"; // // chbMarked // chbMarked.AutoSize = true; chbMarked.Location = new System.Drawing.Point(194, 19); chbMarked.Name = "chbMarked"; chbMarked.Size = new System.Drawing.Size(170, 21); chbMarked.TabIndex = 23; chbMarked.Text = "View Marked / View All"; chbMarked.UseVisualStyleBackColor = true; chbMarked.CheckedChanged += new System.EventHandler(chbMarked_CheckedChanged); // // chbCUAll // chbCUAll.AutoSize = true; chbCUAll.Location = new System.Drawing.Point(29, 19); chbCUAll.Name = "chbCUAll"; chbCUAll.Size = new System.Drawing.Size(141, 21); chbCUAll.TabIndex = 6; chbCUAll.Text = "Mark / Unmark All"; chbCUAll.UseVisualStyleBackColor = true; chbCUAll.CheckedChanged += new System.EventHandler(chbCUAll_CheckedChanged); // // spcMainContainer // spcMainContainer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(38)))), ((int)(((byte)(51))))); spcMainContainer.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; spcMainContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; spcMainContainer.Location = new System.Drawing.Point(0, 31); spcMainContainer.Name = "spcMainContainer"; // // spcMainContainer.Panel1 // spcMainContainer.Panel1.BackColor = System.Drawing.SystemColors.Control; spcMainContainer.Panel1.Controls.Add(grbLog); spcMainContainer.Panel1.Controls.Add(dgvRegisterList); spcMainContainer.Panel1.Controls.Add(btnLoadDefaultRegister); spcMainContainer.Panel1.Controls.Add(btnWriteAllRegister); spcMainContainer.Panel1.Controls.Add(grbRegisterFilter); spcMainContainer.Panel1.Controls.Add(groupBox1); spcMainContainer.Panel1.Controls.Add(btnReadAllRegister); spcMainContainer.Panel1.Controls.Add(tbcMain); // // spcMainContainer.Panel2 // spcMainContainer.Panel2.BackColor = System.Drawing.SystemColors.Control; spcMainContainer.Panel2.Controls.Add(chbDisableLogging); spcMainContainer.Panel2.Controls.Add(lblTermWin); spcMainContainer.Panel2.Controls.Add(btnClearLog); spcMainContainer.Panel2.Controls.Add(rtbLogWindow); spcMainContainer.Panel2MinSize = 2; spcMainContainer.Size = new System.Drawing.Size(1000, 628); spcMainContainer.SplitterDistance = 988; spcMainContainer.SplitterWidth = 6; spcMainContainer.TabIndex = 25; spcMainContainer.TabStop = false; // // grbLog // grbLog.Controls.Add(btnClearLog2); grbLog.Controls.Add(chbDisableLogging2); grbLog.Controls.Add(rtbLogWindow2); grbLog.Location = new System.Drawing.Point(638, 312); grbLog.Name = "grbLog"; grbLog.Size = new System.Drawing.Size(333, 288); grbLog.TabIndex = 25; grbLog.TabStop = false; grbLog.Text = "Log window"; // // btnClearLog2 // btnClearLog2.AccessibleRole = System.Windows.Forms.AccessibleRole.None; btnClearLog2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); btnClearLog2.Location = new System.Drawing.Point(227, 250); btnClearLog2.Name = "btnClearLog2"; btnClearLog2.Size = new System.Drawing.Size(90, 25); btnClearLog2.TabIndex = 6; btnClearLog2.Text = "Clear Log"; btnClearLog2.UseVisualStyleBackColor = true; btnClearLog2.Click += new System.EventHandler(btnClearLog2_Click); // // chbDisableLogging2 // chbDisableLogging2.Appearance = System.Windows.Forms.Appearance.Button; chbDisableLogging2.AutoSize = true; chbDisableLogging2.BackColor = System.Drawing.Color.Red; chbDisableLogging2.Checked = true; chbDisableLogging2.CheckState = System.Windows.Forms.CheckState.Checked; chbDisableLogging2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); chbDisableLogging2.Location = new System.Drawing.Point(15, 251); chbDisableLogging2.Name = "chbDisableLogging2"; chbDisableLogging2.Size = new System.Drawing.Size(117, 27); chbDisableLogging2.TabIndex = 7; chbDisableLogging2.Text = "Enable Logging"; chbDisableLogging2.UseVisualStyleBackColor = false; chbDisableLogging2.CheckedChanged += new System.EventHandler(chbDisableLogging2_CheckedChanged); // // rtbLogWindow2 // rtbLogWindow2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); rtbLogWindow2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); rtbLogWindow2.Location = new System.Drawing.Point(15, 19); rtbLogWindow2.Name = "rtbLogWindow2"; rtbLogWindow2.ReadOnly = true; rtbLogWindow2.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; rtbLogWindow2.Size = new System.Drawing.Size(302, 225); rtbLogWindow2.TabIndex = 3; rtbLogWindow2.Text = ""; // // btnLoadDefaultRegister // btnLoadDefaultRegister.Image = ((System.Drawing.Image)(resources.GetObject("btnLoadDefaultRegister.Image"))); btnLoadDefaultRegister.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; btnLoadDefaultRegister.Location = new System.Drawing.Point(596, 234); btnLoadDefaultRegister.Name = "btnLoadDefaultRegister"; btnLoadDefaultRegister.Size = new System.Drawing.Size(100, 46); btnLoadDefaultRegister.TabIndex = 24; btnLoadDefaultRegister.Text = "Load Defaults"; btnLoadDefaultRegister.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; btnLoadDefaultRegister.UseVisualStyleBackColor = true; btnLoadDefaultRegister.Click += new System.EventHandler(btnLoadDefaultRegister_Click); // // btnWriteAllRegister // btnWriteAllRegister.Image = ((System.Drawing.Image)(resources.GetObject("btnWriteAllRegister.Image"))); btnWriteAllRegister.ImageAlign = System.Drawing.ContentAlignment.TopCenter; btnWriteAllRegister.Location = new System.Drawing.Point(800, 234); btnWriteAllRegister.Name = "btnWriteAllRegister"; btnWriteAllRegister.Size = new System.Drawing.Size(100, 46); btnWriteAllRegister.TabIndex = 22; btnWriteAllRegister.Text = "Write All Visible"; btnWriteAllRegister.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; btnWriteAllRegister.UseVisualStyleBackColor = true; btnWriteAllRegister.Click += new System.EventHandler(btnWriteAllRegister_Click); // // btnReadAllRegister // btnReadAllRegister.Image = ((System.Drawing.Image)(resources.GetObject("btnReadAllRegister.Image"))); btnReadAllRegister.ImageAlign = System.Drawing.ContentAlignment.TopCenter; btnReadAllRegister.Location = new System.Drawing.Point(698, 234); btnReadAllRegister.Name = "btnReadAllRegister"; btnReadAllRegister.Size = new System.Drawing.Size(100, 46); btnReadAllRegister.TabIndex = 21; btnReadAllRegister.Text = "Read All Visible"; btnReadAllRegister.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; btnReadAllRegister.UseVisualStyleBackColor = true; btnReadAllRegister.Click += new System.EventHandler(btnReadAllRegister_Click); // // tbcMain // tbcMain.Controls.Add(tabPage4); tbcMain.Controls.Add(tbpFIFO); tbcMain.Controls.Add(tbpDescription); tbcMain.Location = new System.Drawing.Point(3, 286); tbcMain.Name = "tbcMain"; tbcMain.SelectedIndex = 0; tbcMain.Size = new System.Drawing.Size(629, 335); tbcMain.TabIndex = 5; // // tabPage4 // tabPage4.Controls.Add(grbBatch); tabPage4.Location = new System.Drawing.Point(4, 26); tabPage4.Name = "tabPage4"; tabPage4.Size = new System.Drawing.Size(621, 305); tabPage4.TabIndex = 3; tabPage4.Text = "Batch Editor"; // // grbBatch // grbBatch.Controls.Add(pnlBatchMain); grbBatch.Controls.Add(vrbViewBatch); grbBatch.Controls.Add(grbSaveLoad); grbBatch.Controls.Add(grbLoopControl); grbBatch.Location = new System.Drawing.Point(3, 8); grbBatch.Name = "grbBatch"; grbBatch.Size = new System.Drawing.Size(612, 298); grbBatch.TabIndex = 2; grbBatch.TabStop = false; grbBatch.Text = "Batch Command Execution"; // // pnlBatchMain // pnlBatchMain.Controls.Add(pnlBatch4); pnlBatchMain.Controls.Add(pnlBatch3); pnlBatchMain.Controls.Add(pnlBatch2); pnlBatchMain.Controls.Add(pnlBatch1); pnlBatchMain.Location = new System.Drawing.Point(6, 19); pnlBatchMain.Name = "pnlBatchMain"; pnlBatchMain.Size = new System.Drawing.Size(492, 265); pnlBatchMain.TabIndex = 31; // // pnlBatch4 // pnlBatch4.Controls.Add(txbBatch4); pnlBatch4.Controls.Add(btnRunB4); pnlBatch4.Controls.Add(chbLoopB4); pnlBatch4.Controls.Add(rtbBatchList4); pnlBatch4.Dock = System.Windows.Forms.DockStyle.Left; pnlBatch4.Location = new System.Drawing.Point(369, 0); pnlBatch4.Name = "pnlBatch4"; pnlBatch4.Size = new System.Drawing.Size(123, 265); pnlBatch4.TabIndex = 33; // // txbBatch4 // txbBatch4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); txbBatch4.BackColor = System.Drawing.SystemColors.Window; txbBatch4.Location = new System.Drawing.Point(3, 3); txbBatch4.Name = "txbBatch4"; txbBatch4.Size = new System.Drawing.Size(116, 23); txbBatch4.TabIndex = 12; txbBatch4.Text = "Batch 4"; txbBatch4.Click += new System.EventHandler(BatchList_Click); txbBatch4.Leave += new System.EventHandler(txbBatch_Leave); txbBatch4.MouseHover += new System.EventHandler(txbBatch_MouseHover); // // btnRunB4 // btnRunB4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); btnRunB4.Location = new System.Drawing.Point(4, 238); btnRunB4.Name = "btnRunB4"; btnRunB4.Size = new System.Drawing.Size(50, 25); btnRunB4.TabIndex = 14; btnRunB4.Text = "Run"; btnRunB4.UseVisualStyleBackColor = true; btnRunB4.Click += new System.EventHandler(RunPauseBatch); // // chbLoopB4 // chbLoopB4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); chbLoopB4.AutoSize = true; chbLoopB4.Location = new System.Drawing.Point(58, 240); chbLoopB4.Name = "chbLoopB4"; chbLoopB4.Size = new System.Drawing.Size(62, 21); chbLoopB4.TabIndex = 15; chbLoopB4.Text = "Loop"; chbLoopB4.UseVisualStyleBackColor = true; chbLoopB4.Visible = false; // // rtbBatchList4 // rtbBatchList4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); rtbBatchList4.Location = new System.Drawing.Point(3, 26); rtbBatchList4.MaxLength = 5000; rtbBatchList4.Multiline = true; rtbBatchList4.Name = "rtbBatchList4"; rtbBatchList4.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; rtbBatchList4.Size = new System.Drawing.Size(116, 207); rtbBatchList4.TabIndex = 29; rtbBatchList4.WordWrap = false; rtbBatchList4.Click += new System.EventHandler(BatchList_Click); // // pnlBatch3 // pnlBatch3.Controls.Add(txbBatch3); pnlBatch3.Controls.Add(chbLoopB3); pnlBatch3.Controls.Add(btnRunB3); pnlBatch3.Controls.Add(rtbBatchList3); pnlBatch3.Dock = System.Windows.Forms.DockStyle.Left; pnlBatch3.Location = new System.Drawing.Point(246, 0); pnlBatch3.Name = "pnlBatch3"; pnlBatch3.Size = new System.Drawing.Size(123, 265); pnlBatch3.TabIndex = 32; // // txbBatch3 // txbBatch3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); txbBatch3.BackColor = System.Drawing.SystemColors.Window; txbBatch3.Location = new System.Drawing.Point(3, 3); txbBatch3.Name = "txbBatch3"; txbBatch3.Size = new System.Drawing.Size(116, 23); txbBatch3.TabIndex = 8; txbBatch3.Text = "Batch 3"; txbBatch3.Click += new System.EventHandler(BatchList_Click); txbBatch3.Leave += new System.EventHandler(txbBatch_Leave); txbBatch3.MouseHover += new System.EventHandler(txbBatch_MouseHover); // // chbLoopB3 // chbLoopB3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); chbLoopB3.AutoSize = true; chbLoopB3.Location = new System.Drawing.Point(58, 240); chbLoopB3.Name = "chbLoopB3"; chbLoopB3.Size = new System.Drawing.Size(62, 21); chbLoopB3.TabIndex = 11; chbLoopB3.Text = "Loop"; chbLoopB3.UseVisualStyleBackColor = true; chbLoopB3.Visible = false; // // btnRunB3 // btnRunB3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); btnRunB3.Location = new System.Drawing.Point(4, 238); btnRunB3.Name = "btnRunB3"; btnRunB3.Size = new System.Drawing.Size(50, 25); btnRunB3.TabIndex = 10; btnRunB3.Text = "Run"; btnRunB3.UseVisualStyleBackColor = true; btnRunB3.Click += new System.EventHandler(RunPauseBatch); // // rtbBatchList3 // rtbBatchList3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); rtbBatchList3.Location = new System.Drawing.Point(3, 26); rtbBatchList3.MaxLength = 5000; rtbBatchList3.Multiline = true; rtbBatchList3.Name = "rtbBatchList3"; rtbBatchList3.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; rtbBatchList3.Size = new System.Drawing.Size(116, 207); rtbBatchList3.TabIndex = 28; rtbBatchList3.WordWrap = false; rtbBatchList3.Click += new System.EventHandler(BatchList_Click); // // pnlBatch2 // pnlBatch2.Controls.Add(txbBatch2); pnlBatch2.Controls.Add(chbLoopB2); pnlBatch2.Controls.Add(btnRunB2); pnlBatch2.Controls.Add(rtbBatchList2); pnlBatch2.Dock = System.Windows.Forms.DockStyle.Left; pnlBatch2.Location = new System.Drawing.Point(123, 0); pnlBatch2.Name = "pnlBatch2"; pnlBatch2.Size = new System.Drawing.Size(123, 265); pnlBatch2.TabIndex = 31; // // txbBatch2 // txbBatch2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); txbBatch2.BackColor = System.Drawing.SystemColors.Window; txbBatch2.Location = new System.Drawing.Point(3, 3); txbBatch2.Name = "txbBatch2"; txbBatch2.Size = new System.Drawing.Size(116, 23); txbBatch2.TabIndex = 4; txbBatch2.Text = "Batch 2"; txbBatch2.Click += new System.EventHandler(BatchList_Click); txbBatch2.Leave += new System.EventHandler(txbBatch_Leave); txbBatch2.MouseHover += new System.EventHandler(txbBatch_MouseHover); // // chbLoopB2 // chbLoopB2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); chbLoopB2.AutoSize = true; chbLoopB2.Location = new System.Drawing.Point(58, 240); chbLoopB2.Name = "chbLoopB2"; chbLoopB2.Size = new System.Drawing.Size(62, 21); chbLoopB2.TabIndex = 7; chbLoopB2.Text = "Loop"; chbLoopB2.UseVisualStyleBackColor = true; chbLoopB2.Visible = false; // // btnRunB2 // btnRunB2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); btnRunB2.Location = new System.Drawing.Point(4, 238); btnRunB2.Name = "btnRunB2"; btnRunB2.Size = new System.Drawing.Size(50, 25); btnRunB2.TabIndex = 6; btnRunB2.Text = "Run"; btnRunB2.UseVisualStyleBackColor = true; btnRunB2.Click += new System.EventHandler(RunPauseBatch); // // rtbBatchList2 // rtbBatchList2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); rtbBatchList2.Location = new System.Drawing.Point(3, 26); rtbBatchList2.MaxLength = 5000; rtbBatchList2.Multiline = true; rtbBatchList2.Name = "rtbBatchList2"; rtbBatchList2.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; rtbBatchList2.Size = new System.Drawing.Size(116, 207); rtbBatchList2.TabIndex = 27; rtbBatchList2.WordWrap = false; rtbBatchList2.Click += new System.EventHandler(BatchList_Click); // // pnlBatch1 // pnlBatch1.Controls.Add(txbBatch1); pnlBatch1.Controls.Add(rtbBatchList1); pnlBatch1.Controls.Add(btnRunB1); pnlBatch1.Controls.Add(chbLoopB1); pnlBatch1.Dock = System.Windows.Forms.DockStyle.Left; pnlBatch1.Location = new System.Drawing.Point(0, 0); pnlBatch1.Name = "pnlBatch1"; pnlBatch1.Size = new System.Drawing.Size(123, 265); pnlBatch1.TabIndex = 30; // // txbBatch1 // txbBatch1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); txbBatch1.BackColor = System.Drawing.SystemColors.Window; txbBatch1.Location = new System.Drawing.Point(3, 3); txbBatch1.Name = "txbBatch1"; txbBatch1.Size = new System.Drawing.Size(116, 23); txbBatch1.TabIndex = 0; txbBatch1.Text = "Batch 1"; ttpMainToolTip.SetToolTip(txbBatch1, "r"); txbBatch1.Click += new System.EventHandler(BatchList_Click); txbBatch1.Leave += new System.EventHandler(txbBatch_Leave); txbBatch1.MouseHover += new System.EventHandler(txbBatch_MouseHover); // // rtbBatchList1 // rtbBatchList1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); rtbBatchList1.Location = new System.Drawing.Point(3, 26); rtbBatchList1.MaxLength = 5000; rtbBatchList1.Multiline = true; rtbBatchList1.Name = "rtbBatchList1"; rtbBatchList1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; rtbBatchList1.Size = new System.Drawing.Size(116, 207); rtbBatchList1.TabIndex = 26; rtbBatchList1.WordWrap = false; rtbBatchList1.Click += new System.EventHandler(BatchList_Click); // // btnRunB1 // btnRunB1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); btnRunB1.Location = new System.Drawing.Point(5, 238); btnRunB1.Name = "btnRunB1"; btnRunB1.Size = new System.Drawing.Size(50, 25); btnRunB1.TabIndex = 2; btnRunB1.Text = "Run"; btnRunB1.UseVisualStyleBackColor = true; btnRunB1.Click += new System.EventHandler(RunPauseBatch); // // chbLoopB1 // chbLoopB1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); chbLoopB1.AutoSize = true; chbLoopB1.Location = new System.Drawing.Point(58, 241); chbLoopB1.Name = "chbLoopB1"; chbLoopB1.Size = new System.Drawing.Size(62, 21); chbLoopB1.TabIndex = 3; chbLoopB1.Text = "Loop"; chbLoopB1.UseVisualStyleBackColor = true; chbLoopB1.Visible = false; // // vrbViewBatch // vrbViewBatch.Controls.Add(label5); vrbViewBatch.Controls.Add(label3); vrbViewBatch.Controls.Add(label2); vrbViewBatch.Controls.Add(label1); vrbViewBatch.Controls.Add(chbViewB4); vrbViewBatch.Controls.Add(chbViewB3); vrbViewBatch.Controls.Add(chbViewB2); vrbViewBatch.Controls.Add(chbViewB1); vrbViewBatch.Location = new System.Drawing.Point(506, 12); vrbViewBatch.Name = "vrbViewBatch"; vrbViewBatch.Size = new System.Drawing.Size(102, 59); vrbViewBatch.TabIndex = 30; vrbViewBatch.TabStop = false; vrbViewBatch.Text = "View Batch"; // // label5 // label5.AutoSize = true; label5.Location = new System.Drawing.Point(73, 36); label5.Name = "label5"; label5.Size = new System.Drawing.Size(16, 17); label5.TabIndex = 7; label5.Text = "4"; // // label3 // label3.AutoSize = true; label3.Location = new System.Drawing.Point(54, 36); label3.Name = "label3"; label3.Size = new System.Drawing.Size(16, 17); label3.TabIndex = 6; label3.Text = "3"; // // label2 // label2.AutoSize = true; label2.Location = new System.Drawing.Point(32, 36); label2.Name = "label2"; label2.Size = new System.Drawing.Size(16, 17); label2.TabIndex = 5; label2.Text = "2"; // // label1 // label1.AutoSize = true; label1.Location = new System.Drawing.Point(12, 36); label1.Name = "label1"; label1.Size = new System.Drawing.Size(16, 17); label1.TabIndex = 4; label1.Text = "1"; // // chbViewB4 // chbViewB4.AutoSize = true; chbViewB4.Checked = true; chbViewB4.CheckState = System.Windows.Forms.CheckState.Checked; chbViewB4.Location = new System.Drawing.Point(72, 19); chbViewB4.Name = "chbViewB4"; chbViewB4.Size = new System.Drawing.Size(18, 17); chbViewB4.TabIndex = 3; chbViewB4.UseVisualStyleBackColor = true; chbViewB4.CheckedChanged += new System.EventHandler(chbView_CheckedChanged); // // chbViewB3 // chbViewB3.AutoSize = true; chbViewB3.Checked = true; chbViewB3.CheckState = System.Windows.Forms.CheckState.Checked; chbViewB3.Location = new System.Drawing.Point(52, 19); chbViewB3.Name = "chbViewB3"; chbViewB3.Size = new System.Drawing.Size(18, 17); chbViewB3.TabIndex = 2; chbViewB3.UseVisualStyleBackColor = true; chbViewB3.CheckedChanged += new System.EventHandler(chbView_CheckedChanged); // // chbViewB2 // chbViewB2.AutoSize = true; chbViewB2.Checked = true; chbViewB2.CheckState = System.Windows.Forms.CheckState.Checked; chbViewB2.Location = new System.Drawing.Point(32, 19); chbViewB2.Name = "chbViewB2"; chbViewB2.Size = new System.Drawing.Size(18, 17); chbViewB2.TabIndex = 1; chbViewB2.UseVisualStyleBackColor = true; chbViewB2.CheckedChanged += new System.EventHandler(chbView_CheckedChanged); // // chbViewB1 // chbViewB1.AutoSize = true; chbViewB1.Checked = true; chbViewB1.CheckState = System.Windows.Forms.CheckState.Checked; chbViewB1.Location = new System.Drawing.Point(12, 19); chbViewB1.Name = "chbViewB1"; chbViewB1.Size = new System.Drawing.Size(18, 17); chbViewB1.TabIndex = 0; chbViewB1.UseVisualStyleBackColor = true; chbViewB1.CheckedChanged += new System.EventHandler(chbView_CheckedChanged); // // grbSaveLoad // grbSaveLoad.Controls.Add(btnSaveBatch); grbSaveLoad.Controls.Add(rdbSaveOpenB4); grbSaveLoad.Controls.Add(btnOpenBatch); grbSaveLoad.Controls.Add(rdbSaveOpenB3); grbSaveLoad.Controls.Add(rdbSaveOpenB2); grbSaveLoad.Controls.Add(rdbSaveOpenB1); grbSaveLoad.Location = new System.Drawing.Point(506, 75); grbSaveLoad.Name = "grbSaveLoad"; grbSaveLoad.Size = new System.Drawing.Size(102, 78); grbSaveLoad.TabIndex = 17; grbSaveLoad.TabStop = false; grbSaveLoad.Text = "Save/Load Batch"; // // btnSaveBatch // btnSaveBatch.Image = ((System.Drawing.Image)(resources.GetObject("btnSaveBatch.Image"))); btnSaveBatch.Location = new System.Drawing.Point(51, 46); btnSaveBatch.Name = "btnSaveBatch"; btnSaveBatch.Size = new System.Drawing.Size(26, 26); btnSaveBatch.TabIndex = 22; btnSaveBatch.UseVisualStyleBackColor = true; btnSaveBatch.Click += new System.EventHandler(btnSaveBatch_Click); // // rdbSaveOpenB4 // rdbSaveOpenB4.AutoSize = true; rdbSaveOpenB4.Location = new System.Drawing.Point(71, 27); rdbSaveOpenB4.Name = "rdbSaveOpenB4"; rdbSaveOpenB4.Size = new System.Drawing.Size(17, 16); rdbSaveOpenB4.TabIndex = 3; rdbSaveOpenB4.TabStop = true; rdbSaveOpenB4.UseVisualStyleBackColor = true; rdbSaveOpenB4.CheckedChanged += new System.EventHandler(rdbSaveOpen_CheckedChanged); // // btnOpenBatch // btnOpenBatch.Image = ((System.Drawing.Image)(resources.GetObject("btnOpenBatch.Image"))); btnOpenBatch.Location = new System.Drawing.Point(19, 46); btnOpenBatch.Name = "btnOpenBatch"; btnOpenBatch.Size = new System.Drawing.Size(26, 26); btnOpenBatch.TabIndex = 21; btnOpenBatch.UseVisualStyleBackColor = true; btnOpenBatch.Click += new System.EventHandler(btnOpenBatch_Click); // // rdbSaveOpenB3 // rdbSaveOpenB3.AutoSize = true; rdbSaveOpenB3.Location = new System.Drawing.Point(51, 27); rdbSaveOpenB3.Name = "rdbSaveOpenB3"; rdbSaveOpenB3.Size = new System.Drawing.Size(17, 16); rdbSaveOpenB3.TabIndex = 2; rdbSaveOpenB3.TabStop = true; rdbSaveOpenB3.UseVisualStyleBackColor = true; rdbSaveOpenB3.CheckedChanged += new System.EventHandler(rdbSaveOpen_CheckedChanged); // // rdbSaveOpenB2 // rdbSaveOpenB2.AutoSize = true; rdbSaveOpenB2.Location = new System.Drawing.Point(31, 27); rdbSaveOpenB2.Name = "rdbSaveOpenB2"; rdbSaveOpenB2.Size = new System.Drawing.Size(17, 16); rdbSaveOpenB2.TabIndex = 1; rdbSaveOpenB2.TabStop = true; rdbSaveOpenB2.UseVisualStyleBackColor = true; rdbSaveOpenB2.CheckedChanged += new System.EventHandler(rdbSaveOpen_CheckedChanged); // // rdbSaveOpenB1 // rdbSaveOpenB1.AutoSize = true; rdbSaveOpenB1.Checked = true; rdbSaveOpenB1.Location = new System.Drawing.Point(11, 27); rdbSaveOpenB1.Name = "rdbSaveOpenB1"; rdbSaveOpenB1.Size = new System.Drawing.Size(17, 16); rdbSaveOpenB1.TabIndex = 0; rdbSaveOpenB1.TabStop = true; rdbSaveOpenB1.UseVisualStyleBackColor = true; rdbSaveOpenB1.CheckedChanged += new System.EventHandler(rdbSaveOpen_CheckedChanged); // // grbLoopControl // grbLoopControl.Controls.Add(chbLoopLimit); grbLoopControl.Controls.Add(btnResetLoop); grbLoopControl.Controls.Add(txbLoopCount); grbLoopControl.Controls.Add(label4); grbLoopControl.Controls.Add(nudLoopLimit); grbLoopControl.Location = new System.Drawing.Point(506, 154); grbLoopControl.Name = "grbLoopControl"; grbLoopControl.Size = new System.Drawing.Size(102, 130); grbLoopControl.TabIndex = 16; grbLoopControl.TabStop = false; grbLoopControl.Text = "Loop control"; grbLoopControl.Visible = false; // // nudLoopLimit // nudLoopLimit.Location = new System.Drawing.Point(33, 39); nudLoopLimit.Maximum = new decimal(new int[] { 9999, 0, 0, 0}); nudLoopLimit.Minimum = new decimal(new int[] { 1, 0, 0, 0}); nudLoopLimit.Name = "nudLoopLimit"; nudLoopLimit.ReadOnly = true; nudLoopLimit.Size = new System.Drawing.Size(47, 23); nudLoopLimit.TabIndex = 5; nudLoopLimit.Value = new decimal(new int[] { 1, 0, 0, 0}); nudLoopLimit.ValueChanged += new System.EventHandler(nudLoopLimit_ValueChanged); // // btnResetLoop // btnResetLoop.Location = new System.Drawing.Point(12, 103); btnResetLoop.Margin = new System.Windows.Forms.Padding(0); btnResetLoop.Name = "btnResetLoop"; btnResetLoop.Size = new System.Drawing.Size(74, 24); btnResetLoop.TabIndex = 4; btnResetLoop.Text = "Stop/Reset"; btnResetLoop.UseVisualStyleBackColor = true; btnResetLoop.Click += new System.EventHandler(btnResetLoop_Click); // // txbLoopCount // txbLoopCount.Enabled = false; txbLoopCount.Location = new System.Drawing.Point(33, 75); txbLoopCount.Margin = new System.Windows.Forms.Padding(1); txbLoopCount.Name = "txbLoopCount"; txbLoopCount.ReadOnly = true; txbLoopCount.Size = new System.Drawing.Size(47, 23); txbLoopCount.TabIndex = 3; txbLoopCount.Text = "0"; txbLoopCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // label4 // label4.AutoSize = true; label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F); label4.Location = new System.Drawing.Point(9, 60); label4.Margin = new System.Windows.Forms.Padding(1, 0, 1, 0); label4.Name = "label4"; label4.Size = new System.Drawing.Size(71, 15); label4.TabIndex = 2; label4.Text = "Loop count:"; // // chbLoopLimit // chbLoopLimit.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); chbLoopLimit.Location = new System.Drawing.Point(33, 18); chbLoopLimit.Margin = new System.Windows.Forms.Padding(1); chbLoopLimit.MaximumSize = new System.Drawing.Size(0, 17); chbLoopLimit.Name = "chbLoopLimit"; chbLoopLimit.Size = new System.Drawing.Size(64, 17); chbLoopLimit.TabIndex = 0; chbLoopLimit.Text = "Limit"; chbLoopLimit.UseVisualStyleBackColor = true; chbLoopLimit.CheckedChanged += new System.EventHandler(chbLoopLimit_CheckedChanged); // // tbpFIFO // tbpFIFO.BackColor = System.Drawing.SystemColors.Control; tbpFIFO.Controls.Add(pnlBerPer); tbpFIFO.Controls.Add(pnlRXFIFO); tbpFIFO.Controls.Add(pnlTXFIFO); tbpFIFO.Location = new System.Drawing.Point(4, 25); tbpFIFO.Name = "tbpFIFO"; tbpFIFO.Padding = new System.Windows.Forms.Padding(3); tbpFIFO.Size = new System.Drawing.Size(621, 306); tbpFIFO.TabIndex = 0; tbpFIFO.Text = "FIFO"; // // pnlBerPer // pnlBerPer.Controls.Add(btnResetFifo); pnlBerPer.Controls.Add(lblBER); pnlBerPer.Controls.Add(lblBitError); pnlBerPer.Controls.Add(lblDatabits); pnlBerPer.Controls.Add(txbBitErrors); pnlBerPer.Controls.Add(txbBER); pnlBerPer.Controls.Add(txbDatabits); pnlBerPer.Controls.Add(lblPER); pnlBerPer.Controls.Add(lblLost); pnlBerPer.Controls.Add(lblPackets); pnlBerPer.Controls.Add(txbLost); pnlBerPer.Controls.Add(txbPER); pnlBerPer.Controls.Add(txbPackets); pnlBerPer.Location = new System.Drawing.Point(367, 19); pnlBerPer.Name = "pnlBerPer"; pnlBerPer.Size = new System.Drawing.Size(124, 263); pnlBerPer.TabIndex = 28; // // btnResetFifo // btnResetFifo.Location = new System.Drawing.Point(58, 199); btnResetFifo.Name = "btnResetFifo"; btnResetFifo.Size = new System.Drawing.Size(45, 26); btnResetFifo.TabIndex = 27; btnResetFifo.Text = "Reset"; btnResetFifo.UseVisualStyleBackColor = true; btnResetFifo.Click += new System.EventHandler(btnResetFifo_Click); // // lblBER // lblBER.AutoSize = true; lblBER.Location = new System.Drawing.Point(7, 176); lblBER.Name = "lblBER"; lblBER.Size = new System.Drawing.Size(40, 17); lblBER.TabIndex = 26; lblBER.Text = "BER:"; // // lblBitError // lblBitError.AutoSize = true; lblBitError.Location = new System.Drawing.Point(7, 150); lblBitError.Name = "lblBitError"; lblBitError.Size = new System.Drawing.Size(70, 17); lblBitError.TabIndex = 25; lblBitError.Text = "Bit errors:"; // // lblDatabits // lblDatabits.AutoSize = true; lblDatabits.Location = new System.Drawing.Point(7, 122); lblDatabits.Name = "lblDatabits"; lblDatabits.Size = new System.Drawing.Size(64, 17); lblDatabits.TabIndex = 24; lblDatabits.Text = "Databits:"; // // txbBitErrors // txbBitErrors.BackColor = System.Drawing.SystemColors.Control; txbBitErrors.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); txbBitErrors.Location = new System.Drawing.Point(58, 145); txbBitErrors.Name = "txbBitErrors"; txbBitErrors.ReadOnly = true; txbBitErrors.Size = new System.Drawing.Size(60, 23); txbBitErrors.TabIndex = 23; txbBitErrors.Text = "0"; txbBitErrors.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // txbBER // txbBER.BackColor = System.Drawing.SystemColors.Control; txbBER.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); txbBER.ForeColor = System.Drawing.Color.Red; txbBER.Location = new System.Drawing.Point(58, 173); txbBER.Name = "txbBER"; txbBER.ReadOnly = true; txbBER.Size = new System.Drawing.Size(60, 23); txbBER.TabIndex = 22; txbBER.Text = "0"; txbBER.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // txbDatabits // txbDatabits.BackColor = System.Drawing.SystemColors.Control; txbDatabits.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); txbDatabits.Location = new System.Drawing.Point(58, 119); txbDatabits.Name = "txbDatabits"; txbDatabits.ReadOnly = true; txbDatabits.Size = new System.Drawing.Size(60, 23); txbDatabits.TabIndex = 21; txbDatabits.Text = "0"; txbDatabits.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // lblPER // lblPER.AutoSize = true; lblPER.Location = new System.Drawing.Point(7, 94); lblPER.Name = "lblPER"; lblPER.Size = new System.Drawing.Size(40, 17); lblPER.TabIndex = 20; lblPER.Text = "PER:"; // // lblLost // lblLost.AutoSize = true; lblLost.Location = new System.Drawing.Point(7, 68); lblLost.Name = "lblLost"; lblLost.Size = new System.Drawing.Size(39, 17); lblLost.TabIndex = 19; lblLost.Text = "Lost:"; // // lblPackets // lblPackets.AutoSize = true; lblPackets.Location = new System.Drawing.Point(7, 40); lblPackets.Name = "lblPackets"; lblPackets.Size = new System.Drawing.Size(62, 17); lblPackets.TabIndex = 18; lblPackets.Text = "Packets:"; // // txbLost // txbLost.BackColor = System.Drawing.SystemColors.Control; txbLost.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); txbLost.Location = new System.Drawing.Point(58, 65); txbLost.Name = "txbLost"; txbLost.ReadOnly = true; txbLost.Size = new System.Drawing.Size(60, 23); txbLost.TabIndex = 17; txbLost.Text = "0"; txbLost.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // txbPER // txbPER.BackColor = System.Drawing.SystemColors.Control; txbPER.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); txbPER.ForeColor = System.Drawing.Color.Red; txbPER.Location = new System.Drawing.Point(58, 91); txbPER.Name = "txbPER"; txbPER.ReadOnly = true; txbPER.Size = new System.Drawing.Size(60, 23); txbPER.TabIndex = 16; txbPER.Text = "0"; txbPER.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // txbPackets // txbPackets.BackColor = System.Drawing.SystemColors.Control; txbPackets.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); txbPackets.Location = new System.Drawing.Point(58, 37); txbPackets.Name = "txbPackets"; txbPackets.ReadOnly = true; txbPackets.Size = new System.Drawing.Size(60, 23); txbPackets.TabIndex = 15; txbPackets.Text = "0"; txbPackets.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // pnlRXFIFO // pnlRXFIFO.Controls.Add(dgvRX); pnlRXFIFO.Controls.Add(btnSaveRead); pnlRXFIFO.Controls.Add(btnOpenRead); pnlRXFIFO.Controls.Add(btnRead); pnlRXFIFO.Location = new System.Drawing.Point(147, 19); pnlRXFIFO.Name = "pnlRXFIFO"; pnlRXFIFO.Size = new System.Drawing.Size(177, 263); pnlRXFIFO.TabIndex = 27; // // dgvRX // dgvRX.AllowUserToAddRows = false; dgvRX.AllowUserToDeleteRows = false; dgvRX.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvRX.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { dataGridViewTextBoxColumn1, dataGridViewTextBoxColumn2, xpdC, errC}); dgvRX.Location = new System.Drawing.Point(3, 3); dgvRX.MultiSelect = false; dgvRX.Name = "dgvRX"; dgvRX.RowHeadersWidth = 25; dgvRX.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; dgvRX.Size = new System.Drawing.Size(168, 224); dgvRX.TabIndex = 26; dgvRX.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(dgvRX_CellEndEdit); dgvRX.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(dgvRX_ColumnHeaderMouseClick); // // dataGridViewTextBoxColumn1 // dataGridViewTextBoxColumn1.HeaderText = "#"; dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; dataGridViewTextBoxColumn1.ReadOnly = true; dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; dataGridViewTextBoxColumn1.Width = 32; // // dataGridViewTextBoxColumn2 // dataGridViewTextBoxColumn2.HeaderText = "Hex"; dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; dataGridViewTextBoxColumn2.ReadOnly = true; dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; dataGridViewTextBoxColumn2.Width = 30; // // xpdC // xpdC.HeaderText = "Xpd"; xpdC.Name = "xpdC"; xpdC.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; xpdC.Width = 30; // // errC // errC.HeaderText = "Err"; errC.Name = "errC"; errC.ReadOnly = true; errC.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; errC.Width = 30; // // btnSaveRead // btnSaveRead.Image = ((System.Drawing.Image)(resources.GetObject("btnSaveRead.Image"))); btnSaveRead.Location = new System.Drawing.Point(103, 234); btnSaveRead.Name = "btnSaveRead"; btnSaveRead.Size = new System.Drawing.Size(26, 26); btnSaveRead.TabIndex = 25; btnSaveRead.UseVisualStyleBackColor = true; btnSaveRead.Click += new System.EventHandler(btnSaveRead_Click); // // btnOpenRead // btnOpenRead.Image = ((System.Drawing.Image)(resources.GetObject("btnOpenRead.Image"))); btnOpenRead.Location = new System.Drawing.Point(78, 234); btnOpenRead.Name = "btnOpenRead"; btnOpenRead.Size = new System.Drawing.Size(26, 26); btnOpenRead.TabIndex = 24; btnOpenRead.UseVisualStyleBackColor = true; btnOpenRead.Click += new System.EventHandler(btnOpenRead_Click); // // btnRead // btnRead.Location = new System.Drawing.Point(32, 234); btnRead.Name = "btnRead"; btnRead.Size = new System.Drawing.Size(45, 26); btnRead.TabIndex = 23; btnRead.Text = "Read"; btnRead.UseVisualStyleBackColor = true; btnRead.Click += new System.EventHandler(btnRead_Click); // // pnlTXFIFO // pnlTXFIFO.Controls.Add(dgvTX); pnlTXFIFO.Controls.Add(btnSaveWrite); pnlTXFIFO.Controls.Add(btnOpenWrite); pnlTXFIFO.Controls.Add(btnWrite); pnlTXFIFO.Location = new System.Drawing.Point(25, 19); pnlTXFIFO.Name = "pnlTXFIFO"; pnlTXFIFO.Size = new System.Drawing.Size(116, 263); pnlTXFIFO.TabIndex = 26; // // dgvTX // dgvTX.AllowUserToAddRows = false; dgvTX.AllowUserToDeleteRows = false; dgvTX.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dgvTX.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { numC, dataC}); dgvTX.Location = new System.Drawing.Point(5, 3); dgvTX.MultiSelect = false; dgvTX.Name = "dgvTX"; dgvTX.RowHeadersWidth = 25; dgvTX.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; dgvTX.Size = new System.Drawing.Size(106, 224); dgvTX.TabIndex = 25; dgvTX.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(dgvTX_CellEndEdit); dgvTX.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(dgvTX_ColumnHeaderMouseClick); // // numC // numC.HeaderText = "#"; numC.Name = "numC"; numC.ReadOnly = true; numC.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; numC.Width = 30; // // dataC // dataC.HeaderText = "Hex"; dataC.Name = "dataC"; dataC.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; dataC.Width = 32; // // btnSaveWrite // btnSaveWrite.Image = ((System.Drawing.Image)(resources.GetObject("btnSaveWrite.Image"))); btnSaveWrite.Location = new System.Drawing.Point(79, 234); btnSaveWrite.Name = "btnSaveWrite"; btnSaveWrite.Size = new System.Drawing.Size(26, 26); btnSaveWrite.TabIndex = 24; btnSaveWrite.UseVisualStyleBackColor = true; btnSaveWrite.Click += new System.EventHandler(btnSaveWrite_Click); // // btnOpenWrite // btnOpenWrite.Image = ((System.Drawing.Image)(resources.GetObject("btnOpenWrite.Image"))); btnOpenWrite.Location = new System.Drawing.Point(54, 234); btnOpenWrite.Name = "btnOpenWrite"; btnOpenWrite.Size = new System.Drawing.Size(26, 26); btnOpenWrite.TabIndex = 23; btnOpenWrite.UseVisualStyleBackColor = true; btnOpenWrite.Click += new System.EventHandler(btnOpenWrite_Click); // // btnWrite // btnWrite.Location = new System.Drawing.Point(8, 234); btnWrite.Name = "btnWrite"; btnWrite.Size = new System.Drawing.Size(45, 26); btnWrite.TabIndex = 22; btnWrite.Text = "Write"; btnWrite.UseVisualStyleBackColor = true; btnWrite.Click += new System.EventHandler(btnWrite_Click); // // tbpDescription // tbpDescription.BackColor = System.Drawing.SystemColors.Control; tbpDescription.Controls.Add(txbDescription); tbpDescription.Location = new System.Drawing.Point(4, 25); tbpDescription.Name = "tbpDescription"; tbpDescription.Padding = new System.Windows.Forms.Padding(3); tbpDescription.Size = new System.Drawing.Size(621, 306); tbpDescription.TabIndex = 1; tbpDescription.Text = "Register Description"; // // txbDescription // txbDescription.BackColor = System.Drawing.SystemColors.Window; txbDescription.Location = new System.Drawing.Point(6, 6); txbDescription.Name = "txbDescription"; txbDescription.ReadOnly = true; txbDescription.Size = new System.Drawing.Size(609, 290); txbDescription.TabIndex = 1; txbDescription.Text = "test"; txbDescription.WordWrap = false; // // chbDisableLogging // chbDisableLogging.Appearance = System.Windows.Forms.Appearance.Button; chbDisableLogging.AutoSize = true; chbDisableLogging.BackColor = System.Drawing.Color.Red; chbDisableLogging.Checked = true; chbDisableLogging.CheckState = System.Windows.Forms.CheckState.Checked; chbDisableLogging.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); chbDisableLogging.Location = new System.Drawing.Point(16, 525); chbDisableLogging.Name = "chbDisableLogging"; chbDisableLogging.Size = new System.Drawing.Size(117, 27); chbDisableLogging.TabIndex = 5; chbDisableLogging.Text = "Enable Logging"; chbDisableLogging.UseVisualStyleBackColor = false; chbDisableLogging.CheckedChanged += new System.EventHandler(chbDisableLogging_CheckedChanged); // // lblTermWin // lblTermWin.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); lblTermWin.AutoSize = true; lblTermWin.Location = new System.Drawing.Point(38, 7); lblTermWin.Margin = new System.Windows.Forms.Padding(3); lblTermWin.Name = "lblTermWin"; lblTermWin.Size = new System.Drawing.Size(85, 17); lblTermWin.TabIndex = 2; lblTermWin.Text = "Log window:"; lblTermWin.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // btnClearLog // btnClearLog.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); btnClearLog.Location = new System.Drawing.Point(-315, 525); btnClearLog.Name = "btnClearLog"; btnClearLog.Size = new System.Drawing.Size(75, 23); btnClearLog.TabIndex = 1; btnClearLog.Text = "Clear Log"; btnClearLog.UseVisualStyleBackColor = true; btnClearLog.Click += new System.EventHandler(btnClearLog_Click); // // rtbLogWindow // rtbLogWindow.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); rtbLogWindow.Location = new System.Drawing.Point(16, 25); rtbLogWindow.Name = "rtbLogWindow"; rtbLogWindow.ReadOnly = true; rtbLogWindow.Size = new System.Drawing.Size(0, 494); rtbLogWindow.TabIndex = 0; rtbLogWindow.Text = ""; // // spiStatusBar // spiStatusBar.Location = new System.Drawing.Point(0, 660); spiStatusBar.Name = "spiStatusBar"; spiStatusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { statusBarPanel1, sbChipRevPane, sbDeviceStatePane, statusBarPanel4}); spiStatusBar.ShowPanels = true; spiStatusBar.Size = new System.Drawing.Size(996, 22); spiStatusBar.TabIndex = 28; // // statusBarPanel1 // statusBarPanel1.Name = "statusBarPanel1"; statusBarPanel1.Text = " Device: Type=SIMULATION"; statusBarPanel1.Width = 170; // // sbChipRevPane // sbChipRevPane.Name = "sbChipRevPane"; sbChipRevPane.Text = "Chip Revision: A"; // // sbDeviceStatePane // sbDeviceStatePane.Name = "sbDeviceStatePane"; sbDeviceStatePane.Text = "Status: Ready"; sbDeviceStatePane.Width = 630; // // statusBarPanel4 // statusBarPanel4.Alignment = System.Windows.Forms.HorizontalAlignment.Right; statusBarPanel4.AnimationStyle = StatusBarTest.ProgressDisplayStyle.LeftToRight; statusBarPanel4.AnimationTick = System.TimeSpan.Parse("00:00:00.5000000"); statusBarPanel4.EndPoint = ((long)(100)); statusBarPanel4.Name = "statusBarPanel4"; statusBarPanel4.ProgressPosition = ((long)(0)); statusBarPanel4.ShowText = true; statusBarPanel4.StartPoint = ((long)(0)); statusBarPanel4.StepSize = ((long)(10)); statusBarPanel4.Style = System.Windows.Forms.StatusBarPanelStyle.OwnerDraw; statusBarPanel4.TextFont = new System.Drawing.Font("Arial", 8F); // // tmrCommon // tmrCommon.Interval = 2000; tmrCommon.Tick += new System.EventHandler(tsrMainToolStrip_IdentifyRequested); // // ttpMainToolTip // ttpMainToolTip.AutoPopDelay = 5000; ttpMainToolTip.InitialDelay = 0; ttpMainToolTip.ReshowDelay = 0; // // tsrMainToolStrip // tsrMainToolStrip.AmmeteringEnabled = true; tsrMainToolStrip.AmmeteringVisible = true; tsrMainToolStrip.AutoSize = false; tsrMainToolStrip.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; tsrMainToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; tsrMainToolStrip.IdentifyEnabled = true; tsrMainToolStrip.IdentifyVisible = true; tsrMainToolStrip.Location = new System.Drawing.Point(0, 0); tsrMainToolStrip.Name = "tsrMainToolStrip"; tsrMainToolStrip.Nickname = "Nickname"; tsrMainToolStrip.OpenEnabled = true; tsrMainToolStrip.OpenVisible = true; tsrMainToolStrip.ResetEnabled = true; tsrMainToolStrip.ResetVisible = true; tsrMainToolStrip.SaveEnabled = true; tsrMainToolStrip.SaveVisible = true; tsrMainToolStrip.Size = new System.Drawing.Size(996, 31); tsrMainToolStrip.SwitchEnabled = true; tsrMainToolStrip.SwitchVisible = true; tsrMainToolStrip.TabIndex = 30; tsrMainToolStrip.Text = "applicationToolStrip1"; tsrMainToolStrip.VoltageEnabled = true; tsrMainToolStrip.VoltageVisible = true; tsrMainToolStrip.AmmeteringRequested += new System.EventHandler(tsrMainToolStrip_AmmeteringRequested); tsrMainToolStrip.IdentifyRequested += new System.EventHandler(tsrMainToolStrip_IdentifyRequested); tsrMainToolStrip.OpenRequested += new System.EventHandler(tsrMainToolStrip_OpenRequested); tsrMainToolStrip.ResetRequested += new System.EventHandler(tsrMainToolStrip_ResetRequested); tsrMainToolStrip.SaveRequested += new System.EventHandler(tsrMainToolStrip_SaveRequested); tsrMainToolStrip.SetVoltageRequested += new NewWDS.Applications.App_Common.AppToolStrip.ApplicationToolStrip.SetVoltageEventHandler(tsrMainToolStrip_SetVoltageRequested); tsrMainToolStrip.SwitchMouseEnterRequested += new System.EventHandler(tsrMainToolStrip_SwitchMouseEnterRequested); tsrMainToolStrip.SwitchRequested += new System.EventHandler(tsrMainToolStrip_SwitchRequested); // // AppWin_SPITool_PRO // AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; ClientSize = new System.Drawing.Size(996, 682); Controls.Add(tsrMainToolStrip); Controls.Add(spiStatusBar); Controls.Add(spcMainContainer); Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; MaximizeBox = false; Name = "AppWin_SPITool_PRO"; ShowIcon = false; Text = "Si4XXX Register Setting Panel"; FormClosing += new System.Windows.Forms.FormClosingEventHandler(formClosingEventHandler); Load += new System.EventHandler(SPI_Form_Load); grbRegisterFilter.ResumeLayout(false); grbRegisterFilter.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(dgvRegisterList)).EndInit(); groupBox1.ResumeLayout(false); groupBox1.PerformLayout(); spcMainContainer.Panel1.ResumeLayout(false); spcMainContainer.Panel2.ResumeLayout(false); spcMainContainer.Panel2.PerformLayout(); spcMainContainer.ResumeLayout(false); grbLog.ResumeLayout(false); grbLog.PerformLayout(); tbcMain.ResumeLayout(false); tabPage4.ResumeLayout(false); grbBatch.ResumeLayout(false); pnlBatchMain.ResumeLayout(false); pnlBatch4.ResumeLayout(false); pnlBatch4.PerformLayout(); pnlBatch3.ResumeLayout(false); pnlBatch3.PerformLayout(); pnlBatch2.ResumeLayout(false); pnlBatch2.PerformLayout(); pnlBatch1.ResumeLayout(false); pnlBatch1.PerformLayout(); vrbViewBatch.ResumeLayout(false); vrbViewBatch.PerformLayout(); grbSaveLoad.ResumeLayout(false); grbSaveLoad.PerformLayout(); grbLoopControl.ResumeLayout(false); grbLoopControl.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(nudLoopLimit)).EndInit(); tbpFIFO.ResumeLayout(false); pnlBerPer.ResumeLayout(false); pnlBerPer.PerformLayout(); pnlRXFIFO.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(dgvRX)).EndInit(); pnlTXFIFO.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(dgvTX)).EndInit(); tbpDescription.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(statusBarPanel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(sbChipRevPane)).EndInit(); ((System.ComponentModel.ISupportInitialize)(sbDeviceStatePane)).EndInit(); ((System.ComponentModel.ISupportInitialize)(statusBarPanel4)).EndInit(); ResumeLayout(false); }
private void InitializeComponent() { _splitContainer = new SplitContainer(); _tableData_DataGridView = new DataGridView(); _rows_LayoutPanel = new TableLayoutPanel(); button1 = new Button(); _splitContainer.Panel1.SuspendLayout(); _splitContainer.Panel2.SuspendLayout(); _splitContainer.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(_tableData_DataGridView)).BeginInit(); SuspendLayout(); // // _splitContainer // _splitContainer.Dock = DockStyle.Fill; _splitContainer.FixedPanel = FixedPanel.Panel2; _splitContainer.Location = new Point(0, 0); _splitContainer.Name = "_splitContainer"; // // _splitContainer.Panel1 // _splitContainer.Panel1.Controls.Add(button1); _splitContainer.Panel1.Controls.Add(_tableData_DataGridView); // // _splitContainer.Panel2 // _splitContainer.Panel2.Controls.Add(_rows_LayoutPanel); _splitContainer.Size = new Size(869, 640); _splitContainer.SplitterDistance = 543; _splitContainer.TabIndex = 0; // // _tableData_DataGridView // _tableData_DataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; _tableData_DataGridView.Dock = DockStyle.Fill; _tableData_DataGridView.Location = new Point(0, 0); _tableData_DataGridView.Name = "_tableData_DataGridView"; _tableData_DataGridView.Size = new Size(543, 640); _tableData_DataGridView.TabIndex = 0; _tableData_DataGridView.CellDoubleClick += _tableData_DataGridView_CellDoubleClick; _tableData_DataGridView.SelectionChanged += _tableData_DataGridView_SelectionChanged; _tableData_DataGridView.KeyUp += _tableData_DataGridView_KeyUp; // // _rows_LayoutPanel // _rows_LayoutPanel.AutoScroll = true; _rows_LayoutPanel.ColumnCount = 2; _rows_LayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); _rows_LayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); _rows_LayoutPanel.Dock = DockStyle.Fill; _rows_LayoutPanel.Location = new Point(0, 0); _rows_LayoutPanel.Name = "_rows_LayoutPanel"; _rows_LayoutPanel.RowCount = 1; _rows_LayoutPanel.RowStyles.Add(new RowStyle()); _rows_LayoutPanel.Size = new Size(322, 640); _rows_LayoutPanel.TabIndex = 0; // // button1 // button1.Anchor = AnchorStyles.Right; button1.FlatStyle = FlatStyle.Popup; button1.Location = new Point(533, 298); button1.Name = "button1"; button1.Size = new Size(10, 54); button1.TabIndex = 1; button1.UseVisualStyleBackColor = true; button1.Click += _toggleRowViewButton_Click; // // DatafileEditor // Controls.Add(_splitContainer); Name = "DatafileEditor"; Size = new Size(869, 640); _splitContainer.Panel1.ResumeLayout(false); _splitContainer.Panel2.ResumeLayout(false); _splitContainer.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(_tableData_DataGridView)).EndInit(); ResumeLayout(false); }