当前位置: 首页>>代码示例>>C#>>正文


C# TableLayoutPanel.SetRowSpan方法代码示例

本文整理汇总了C#中System.Windows.Forms.TableLayoutPanel.SetRowSpan方法的典型用法代码示例。如果您正苦于以下问题:C# TableLayoutPanel.SetRowSpan方法的具体用法?C# TableLayoutPanel.SetRowSpan怎么用?C# TableLayoutPanel.SetRowSpan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Forms.TableLayoutPanel的用法示例。


在下文中一共展示了TableLayoutPanel.SetRowSpan方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(PasswordDialog));
     this.chkShowPassword = new CheckBox();
     this.txtPassword = new TextBoxEx();
     this.lblPassword = new Label();
     this.imgKeys = new PictureBox();
     this.chkRememberPassword = new CheckBox();
     Button button = new Button();
     Button button2 = new Button();
     TableLayoutPanel panel = new TableLayoutPanel();
     TableLayoutPanel panel2 = new TableLayoutPanel();
     Bevel bevel = new Bevel();
     panel.SuspendLayout();
     ((ISupportInitialize) this.imgKeys).BeginInit();
     panel2.SuspendLayout();
     base.SuspendLayout();
     button.DialogResult = DialogResult.OK;
     manager.ApplyResources(button, "btnOk");
     button.Name = "btnOk";
     button.UseVisualStyleBackColor = true;
     button2.DialogResult = DialogResult.Cancel;
     manager.ApplyResources(button2, "btnCancel");
     button2.Name = "btnCancel";
     button2.UseVisualStyleBackColor = true;
     manager.ApplyResources(panel, "tlpBack");
     panel.Controls.Add(this.chkShowPassword, 1, 2);
     panel.Controls.Add(this.txtPassword, 1, 1);
     panel.Controls.Add(this.lblPassword, 1, 0);
     panel.Controls.Add(this.imgKeys, 0, 0);
     panel.Controls.Add(this.chkRememberPassword, 1, 3);
     panel.Name = "tlpBack";
     manager.ApplyResources(this.chkShowPassword, "chkShowPassword");
     this.chkShowPassword.Name = "chkShowPassword";
     this.chkShowPassword.UseVisualStyleBackColor = true;
     this.chkShowPassword.CheckedChanged += new EventHandler(this.chkShowPassword_CheckedChanged);
     manager.ApplyResources(this.txtPassword, "txtPassword");
     this.txtPassword.Name = "txtPassword";
     this.txtPassword.UseSystemPasswordChar = true;
     manager.ApplyResources(this.lblPassword, "lblPassword");
     this.lblPassword.Name = "lblPassword";
     manager.ApplyResources(this.imgKeys, "imgKeys");
     this.imgKeys.Name = "imgKeys";
     panel.SetRowSpan(this.imgKeys, 4);
     this.imgKeys.TabStop = false;
     manager.ApplyResources(this.chkRememberPassword, "chkRememberPassword");
     this.chkRememberPassword.Checked = true;
     this.chkRememberPassword.CheckState = CheckState.Checked;
     this.chkRememberPassword.Name = "chkRememberPassword";
     this.chkRememberPassword.UseVisualStyleBackColor = true;
     manager.ApplyResources(panel2, "tlpButtons");
     panel2.Controls.Add(button, 1, 0);
     panel2.Controls.Add(button2, 2, 0);
     panel2.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     panel2.Name = "tlpButtons";
     manager.ApplyResources(bevel, "bvlButtons");
     bevel.ForeColor = SystemColors.ControlDarkDark;
     bevel.Name = "bvlButtons";
     bevel.Sides = Border3DSide.Top;
     bevel.Style = Border3DStyle.Flat;
     base.AcceptButton = button;
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = button2;
     base.Controls.Add(panel2);
     base.Controls.Add(bevel);
     base.Controls.Add(panel);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "PasswordDialog";
     base.ShowInTaskbar = false;
     base.Shown += new EventHandler(this.PasswordDialog_Shown);
     base.FormClosed += new FormClosedEventHandler(this.PasswordDialog_FormClosed);
     panel.ResumeLayout(false);
     panel.PerformLayout();
     ((ISupportInitialize) this.imgKeys).EndInit();
     panel2.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:81,代码来源:PasswordDialog.cs

示例2: InitializeComponent

 private void InitializeComponent()
 {
     this.components = new Container();
     ComponentResourceManager manager = new ComponentResourceManager(typeof(ManageColumnsDialog));
     this.lvItems = new ListViewEx();
     this.imgAligns = new ImageList(this.components);
     this.btnUp = new Button();
     this.btnHide = new Button();
     this.btnShow = new Button();
     this.btnDown = new Button();
     this.tsAlign = new ToolStrip();
     this.tsbLeftAlign = new ToolStripButton();
     this.tsbCenter = new ToolStripButton();
     this.tsbRightAlign = new ToolStripButton();
     this.chkRememberColumns = new CheckBox();
     this.chkAutosizeColumns = new CheckBox();
     this.cmbTemplate = new TemplateComboBox();
     this.btnDeleteTemplate = new Button();
     this.btnSaveTemplate = new Button();
     this.bvlButtons = new Bevel();
     this.btnOk = new Button();
     this.btnCancel = new Button();
     this.tlpButtons = new TableLayoutPanel();
     this.bvlTemplate = new Bevel();
     TableLayoutPanel panel = new TableLayoutPanel();
     ColumnHeader header = new ColumnHeader();
     ColumnHeader header2 = new ColumnHeader();
     Label control = new Label();
     TableLayoutPanel panel2 = new TableLayoutPanel();
     Label label2 = new Label();
     panel.SuspendLayout();
     this.tsAlign.SuspendLayout();
     panel2.SuspendLayout();
     this.tlpButtons.SuspendLayout();
     base.SuspendLayout();
     manager.ApplyResources(panel, "tlpBack");
     panel.Controls.Add(this.lvItems, 0, 1);
     panel.Controls.Add(this.btnUp, 1, 1);
     panel.Controls.Add(this.btnHide, 1, 4);
     panel.Controls.Add(this.btnShow, 1, 3);
     panel.Controls.Add(this.btnDown, 1, 2);
     panel.Controls.Add(this.tsAlign, 1, 5);
     panel.Controls.Add(this.chkRememberColumns, 0, 8);
     panel.Controls.Add(this.chkAutosizeColumns, 0, 7);
     panel.Controls.Add(control, 0, 0);
     panel.Name = "tlpBack";
     this.lvItems.AllowDrop = true;
     this.lvItems.CheckBoxes = true;
     this.lvItems.CollapsibleGroups = true;
     this.lvItems.Columns.AddRange(new ColumnHeader[] { header, header2 });
     manager.ApplyResources(this.lvItems, "lvItems");
     this.lvItems.ExplorerTheme = true;
     this.lvItems.FullRowSelect = true;
     this.lvItems.HeaderStyle = ColumnHeaderStyle.None;
     this.lvItems.HideSelection = false;
     this.lvItems.MultiSelect = false;
     this.lvItems.Name = "lvItems";
     panel.SetRowSpan(this.lvItems, 6);
     this.lvItems.SmallImageList = this.imgAligns;
     this.lvItems.UseCompatibleStateImageBehavior = false;
     this.lvItems.View = View.Details;
     this.lvItems.ItemCheck += new ItemCheckEventHandler(this.lvItems_ItemCheck);
     this.lvItems.KeyDown += new KeyEventHandler(this.lvItems_KeyDown);
     this.lvItems.ItemDrag += new ItemDragEventHandler(this.lvItems_ItemDrag);
     this.lvItems.SelectedIndexChanged += new EventHandler(this.lvItems_SelectedIndexChanged);
     this.lvItems.ItemChecked += new ItemCheckedEventHandler(this.lvItems_ItemChecked);
     this.lvItems.ClientSizeChanged += new EventHandler(this.lvItems_ClientSizeChanged);
     manager.ApplyResources(header, "NameColumn");
     manager.ApplyResources(header2, "WidthColumn");
     this.imgAligns.ColorDepth = ColorDepth.Depth32Bit;
     manager.ApplyResources(this.imgAligns, "imgAligns");
     this.imgAligns.TransparentColor = Color.Transparent;
     manager.ApplyResources(this.btnUp, "btnUp");
     this.btnUp.Name = "btnUp";
     this.btnUp.UseVisualStyleBackColor = true;
     this.btnUp.Click += new EventHandler(this.btnMove_Click);
     manager.ApplyResources(this.btnHide, "btnHide");
     this.btnHide.Name = "btnHide";
     this.btnHide.UseVisualStyleBackColor = true;
     this.btnHide.Click += new EventHandler(this.btnHide_Click);
     manager.ApplyResources(this.btnShow, "btnShow");
     this.btnShow.Name = "btnShow";
     this.btnShow.UseVisualStyleBackColor = true;
     this.btnShow.Click += new EventHandler(this.btnShow_Click);
     manager.ApplyResources(this.btnDown, "btnDown");
     this.btnDown.Name = "btnDown";
     this.btnDown.Tag = "1";
     this.btnDown.UseVisualStyleBackColor = true;
     this.btnDown.Click += new EventHandler(this.btnMove_Click);
     this.tsAlign.BackColor = SystemColors.Control;
     this.tsAlign.GripStyle = ToolStripGripStyle.Hidden;
     this.tsAlign.Items.AddRange(new ToolStripItem[] { this.tsbLeftAlign, this.tsbCenter, this.tsbRightAlign });
     manager.ApplyResources(this.tsAlign, "tsAlign");
     this.tsAlign.Name = "tsAlign";
     this.tsAlign.TabStop = true;
     this.tsbLeftAlign.DisplayStyle = ToolStripItemDisplayStyle.Image;
     manager.ApplyResources(this.tsbLeftAlign, "tsbLeftAlign");
     this.tsbLeftAlign.Image = Resources.ImageThrobber;
     this.tsbLeftAlign.Name = "tsbLeftAlign";
     this.tsbLeftAlign.Paint += new PaintEventHandler(this.tsbAlign_Paint);
//.........这里部分代码省略.........
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:101,代码来源:ManageColumnsDialog.cs

示例3: Initialize


//.........这里部分代码省略.........
            Padding p = new Padding(0, 5, 0, 0);
            _label1.Margin = p;
            _label2.Margin = p;
            _label3.Margin = p;
            _label4.Margin = p;

            _label1.TextAlign = ContentAlignment.TopRight;
            _label2.TextAlign = ContentAlignment.TopRight;
            _label3.TextAlign = ContentAlignment.TopRight;
            _label4.TextAlign = ContentAlignment.TopRight;

            _label1.Dock = DockStyle.Right;
            _label2.Dock = DockStyle.Right;
            _label3.Dock = DockStyle.Right;
            _label4.Dock = DockStyle.Right;

            _textBox1 = new TextBox();
            _textBox2 = new TextBox();
            _textBox3 = new TextBox();
            _textBox4 = new TextBox();

            _textBox1.Enabled = false;
            _textBox2.Enabled = false;
            _textBox3.Enabled = false;
            _textBox4.Enabled = false;

            _textBox1.Dock = DockStyle.Left;
            _textBox2.Dock = DockStyle.Left;
            _textBox3.Dock = DockStyle.Left;
            _textBox4.Dock = DockStyle.Left;

            _label1.Text = "Parameter 1";
            _label2.Text = "Parameter 2";
            _label3.Text = "Parameter 3";
            _label4.Text = "Time Step";

            Label boxTitle = new Label();
            boxTitle.Text = "Creating axis:";
            boxTitle.Font = new Font("Tahoma", 10);
            boxTitle.Size = new Size(boxTitle.PreferredWidth, boxTitle.PreferredHeight);
            boxTitle.AutoSize = true;
            boxTitle.TextAlign = ContentAlignment.BottomRight;
            boxTitle.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            boxTitle.Dock = DockStyle.Fill;
            boxTitle.Margin = new Padding(0, 0, 0, 25);

            _box = new ComboBox();
            _box.Items.Add(string.Format("Axis 1"));
            _box.Items.Add(string.Format("Axis 2"));
            _box.Items.Add(string.Format("Axis 3"));
            _box.Width = 200;
            _box.Dock = DockStyle.Right;
            _box.Anchor = AnchorStyles.Top | AnchorStyles.Right;

            Label title = new Label();
            title.Text = "Select an item from the list on the left, input the values for each parameter, and click \"Create Axis\" to create that axis";
            title.Font = new Font("Tahoma", 10);
            title.Size = new Size(title.PreferredWidth, title.PreferredHeight);
            title.AutoSize = true;
            title.TextAlign = ContentAlignment.BottomCenter;
            title.Dock = DockStyle.Bottom;
            title.Anchor = AnchorStyles.Bottom;
            title.Margin = new Padding(0, 0, 0, 25);

            Button button = new Button();
            button.Text = "Create Axis";
            button.Click += new EventHandler(button_Click);
            button.Anchor = AnchorStyles.Top | AnchorStyles.Left;

            Button finish = new Button();
            finish.Text = "Finish Creating Axes";
            finish.Click += new EventHandler(finish_Click);
            finish.Anchor = AnchorStyles.Top | AnchorStyles.Left;

            _panel.Controls.Add(_view, 0, 1);
            _panel.SetColumnSpan(_view, 2);
            _panel.SetRowSpan(_view, 6);

            _panel.Controls.Add(_label1, 2, 2);
            _panel.Controls.Add(_label2, 2, 3);
            _panel.Controls.Add(_label3, 2, 4);
            _panel.Controls.Add(_label4, 2, 5);

            _panel.Controls.Add(_textBox1, 3, 2);
            _panel.Controls.Add(_textBox2, 3, 3);
            _panel.Controls.Add(_textBox3, 3, 4);
            _panel.Controls.Add(_textBox4, 3, 5);

            _panel.Controls.Add(boxTitle, 4, 2);
            _panel.Controls.Add(_box, 4, 3);

            _panel.Controls.Add(_boxTitle, 4, 4);
            _panel.Controls.Add(_boxAccel, 4, 5);

            _panel.Controls.Add(title, 2, 1);
            _panel.SetColumnSpan(title, 2);

            _panel.Controls.Add(button, 3, 6);
            _panel.Controls.Add(finish, 4, 6);
        }
开发者ID:MDSchechtman,项目名称:Aerotech-Motor-Sizer,代码行数:101,代码来源:ParameterInputScene.cs

示例4: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(ExceptionDialog));
     this.imgIcon = new PictureBox();
     this.btnDetails = new Button();
     this.txtErrorDetails = new TextBox();
     this.lblErrorMessage = new Label();
     this.lblErrorNote = new Label();
     this.lblSendError = new LinkLabel();
     this.btnContinue = new Button();
     this.btnCopyToClipboard = new Button();
     this.btnQuit = new Button();
     TableLayoutPanel panel = new TableLayoutPanel();
     panel.SuspendLayout();
     ((ISupportInitialize) this.imgIcon).BeginInit();
     base.SuspendLayout();
     manager.ApplyResources(panel, "tlpBack");
     panel.Controls.Add(this.imgIcon, 0, 0);
     panel.Controls.Add(this.btnDetails, 0, 3);
     panel.Controls.Add(this.txtErrorDetails, 0, 4);
     panel.Controls.Add(this.lblErrorMessage, 1, 1);
     panel.Controls.Add(this.lblErrorNote, 1, 0);
     panel.Controls.Add(this.lblSendError, 1, 2);
     panel.Controls.Add(this.btnContinue, 5, 3);
     panel.Controls.Add(this.btnCopyToClipboard, 4, 3);
     panel.Controls.Add(this.btnQuit, 3, 3);
     panel.MaximumSize = new Size(0x1a8, 0);
     panel.Name = "tlpBack";
     manager.ApplyResources(this.imgIcon, "imgIcon");
     this.imgIcon.Name = "imgIcon";
     panel.SetRowSpan(this.imgIcon, 2);
     this.imgIcon.TabStop = false;
     manager.ApplyResources(this.btnDetails, "btnDetails");
     panel.SetColumnSpan(this.btnDetails, 2);
     this.btnDetails.Image = Resources.SmallDownArrow;
     this.btnDetails.Name = "btnDetails";
     this.btnDetails.UseVisualStyleBackColor = true;
     this.btnDetails.Click += new EventHandler(this.btnDetails_Click);
     panel.SetColumnSpan(this.txtErrorDetails, 6);
     manager.ApplyResources(this.txtErrorDetails, "txtErrorDetails");
     this.txtErrorDetails.Name = "txtErrorDetails";
     this.txtErrorDetails.ReadOnly = true;
     manager.ApplyResources(this.lblErrorMessage, "lblErrorMessage");
     panel.SetColumnSpan(this.lblErrorMessage, 5);
     this.lblErrorMessage.MaximumSize = new Size(0x16c, 0);
     this.lblErrorMessage.Name = "lblErrorMessage";
     manager.ApplyResources(this.lblErrorNote, "lblErrorNote");
     panel.SetColumnSpan(this.lblErrorNote, 5);
     this.lblErrorNote.MaximumSize = new Size(0x16c, 0);
     this.lblErrorNote.Name = "lblErrorNote";
     manager.ApplyResources(this.lblSendError, "lblSendError");
     panel.SetColumnSpan(this.lblSendError, 5);
     this.lblSendError.MaximumSize = new Size(0x16c, 0);
     this.lblSendError.Name = "lblSendError";
     this.lblSendError.Tag = "mailto:[email protected]?subject=Exception: {0}";
     this.lblSendError.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lblSendError_LinkClicked);
     manager.ApplyResources(this.btnContinue, "btnContinue");
     this.btnContinue.DialogResult = DialogResult.Ignore;
     this.btnContinue.Name = "btnContinue";
     this.btnContinue.UseVisualStyleBackColor = true;
     manager.ApplyResources(this.btnCopyToClipboard, "btnCopyToClipboard");
     this.btnCopyToClipboard.Name = "btnCopyToClipboard";
     this.btnCopyToClipboard.UseVisualStyleBackColor = true;
     this.btnCopyToClipboard.Click += new EventHandler(this.btnCopyToClipboard_Click);
     manager.ApplyResources(this.btnQuit, "btnQuit");
     this.btnQuit.DialogResult = DialogResult.Abort;
     this.btnQuit.Name = "btnQuit";
     this.btnQuit.UseVisualStyleBackColor = true;
     base.AcceptButton = this.btnContinue;
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.btnContinue;
     base.Controls.Add(panel);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "ExceptionDialog";
     base.ShowInTaskbar = false;
     panel.ResumeLayout(false);
     panel.PerformLayout();
     ((ISupportInitialize) this.imgIcon).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:84,代码来源:ExceptionDialog.cs

示例5: dashboardMarketEdit


//.........这里部分代码省略.........
            MarketSubmissions.Controls.Add (SubLabel);
            MarketSubmissions.Controls.Add (Destinations);

            //
            // MAIN TABlE
            //

            //	Panel EasyMarketEdit = new Panel();

            //	EasyMarketEdit.BackColor = Color.Green;
            //	EasyMarketEdit.Height = 200;

            //	EasyMarketEdit.Dock = DockStyle.Fill;

            //	EasyMarketEdit.Controls.Add (Tabs);

            //	tmpEditor.Enabled = false;
            tmpEditor.BringToFront ();

            AddMarket = new Button ();
            AddMarket.Dock = DockStyle.Bottom;
            AddMarket.Text = Loc.Instance.GetString ("Add Market");
            AddMarket.Click += HandleAddMarketClick;

            EditMarket = new Button ();
            EditMarket.Text = Loc.Instance.GetString ("Save Edits");
            EditMarket.Dock = DockStyle.Fill;
            EditMarket.Enabled = false;
            EditMarket.Click += HandleEditMarketClick;

            EditMarketCancel = new Button ();
            EditMarketCancel.Dock = DockStyle.Fill;
            EditMarketCancel.Text = Loc.Instance.GetString ("Cancel Edit");
            EditMarketCancel.Enabled = false;
            EditMarketCancel.Click += HandleEditMarketCancelClick;

            TableLayoutPanel MarketListPanel = new TableLayoutPanel ();

            MarketListPanel.RowCount = 2;
            MarketListPanel.ColumnCount = 3;

            MarketListPanel.Controls.Add (EditMarket, 1, 0);
            MarketListPanel.Controls.Add (AddMarket, 0, 0);
            MarketListPanel.Controls.Add (EditMarketCancel, 2, 0);

            //MarketListPanel.Controls.Add (EditMarketCancel, 1, 0);

            //MarketListPanel.Controls.Add (ListOfMarkets, 0, 1);
            MarketListPanel.Controls.Add (Tabs, 1, 1);
            MarketListPanel.SetColumnSpan (Tabs, 2);

            //	MarketListPanel.Controls.Add (PreviousSubmissions, 1, 2);

            //	MarketListPanel.Controls.Add (AddMarket, 0, 3);

            Panel RightSide = new Panel();

            RightSide.Controls.Add (MarketFilters);
            RightSide.Controls.Add (ListOfMarkets);

            ListOfMarkets.Dock = DockStyle.Fill;
            ListOfMarkets.BringToFront();
            RightSide.Dock = DockStyle.Fill;
            RightSide.BringToFront ();

            MarketListPanel.Controls.Add (RightSide, 0, 1);

            MarketListPanel.SetRowSpan(Tabs, 2);
            MarketListPanel.SetRowSpan(RightSide, 2);
            MarketListPanel.Dock = DockStyle.Fill;

            //this.Controls.Add (AddMarket);

            //NewMessage.Show ("boo2");
            this.Controls.Add (MarketListPanel);
            MarketListPanel.BringToFront();
            //	AddMarket.SendToBack();

            //
            // Setup Market Notes Pages
            //

            richBox = new RichTextBox();
            MarketNotes.Controls.Add (richBox);
            richBox.Dock = DockStyle.Fill;
            richBox.KeyDown+= HandleNotesKeyDown;

            MarketListPanel.ColumnStyles.Clear();
            for (int i = 0; i < MarketListPanel.ColumnCount; i++)
            {
                ColumnStyle style = new ColumnStyle(SizeType.Percent, 33.0f);
                MarketListPanel.ColumnStyles.Add(style);
            }

            MarketListPanel.RowStyles.Clear();
            for (int i = 0; i < MarketListPanel.RowCount; i++)
            {
                MarketListPanel.RowStyles.Add(new RowStyle(SizeType.AutoSize));
            }
        }
开发者ID:BrentKnowles,项目名称:Addin_Submissions,代码行数:101,代码来源:dashboardMarketEdit.cs

示例6: TestCellPositioning16

		public void TestCellPositioning16 ()
		{
			// Row span = 2, but control is in the last row, creates new row
			TableLayoutPanel p = new TableLayoutPanel ();
			Control c1 = new Button ();
			Control c2 = new Button ();
			Control c3 = new Button ();

			p.ColumnCount = 2;
			p.RowCount = 2;

			p.SetRowSpan (c3, 2);
			p.SetCellPosition (c3, new TableLayoutPanelCellPosition (0, 1));

			p.Controls.Add (c1);
			p.Controls.Add (c2);
			p.Controls.Add (c3);

			Assert.AreEqual (new TableLayoutPanelCellPosition (0, 0), p.GetPositionFromControl (c1), "C1");
			Assert.AreEqual (new TableLayoutPanelCellPosition (1, 0), p.GetPositionFromControl (c2), "C2");
			Assert.AreEqual (new TableLayoutPanelCellPosition (0, 1), p.GetPositionFromControl (c3), "C3");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:22,代码来源:TableLayoutTest.cs

示例7: TestExtenderMethods

		public void TestExtenderMethods ()
		{
			TableLayoutPanel p = new TableLayoutPanel ();
			Control c = new Button ();

			Assert.AreEqual (new TableLayoutPanelCellPosition (-1, -1), p.GetCellPosition (c), "A1");
			Assert.AreEqual (-1, p.GetColumn (c), "A2");
			Assert.AreEqual (1, p.GetColumnSpan (c), "A3");
			Assert.AreEqual (-1, p.GetRow (c), "A4");
			Assert.AreEqual (1, p.GetRowSpan (c), "A5");

			p.SetCellPosition (c, new TableLayoutPanelCellPosition (1, 1));
			Assert.AreEqual (new TableLayoutPanelCellPosition (1, 1), p.GetCellPosition (c), "A6");

			p.SetColumn (c, 2);
			Assert.AreEqual (2, p.GetColumn (c), "A7");
			p.SetRow (c, 2);
			Assert.AreEqual (2, p.GetRow (c), "A9");

			p.SetColumnSpan (c, 2);
			Assert.AreEqual (2, p.GetColumnSpan (c), "A8");


			p.SetRowSpan (c, 2);
			Assert.AreEqual (2, p.GetRowSpan (c), "A10");

			Assert.AreEqual (new TableLayoutPanelCellPosition (2, 2), p.GetCellPosition (c), "A11");

			// ???????
			//Assert.AreEqual (new TableLayoutPanelCellPosition (-1, -1), p.GetPositionFromControl (c), "A12");
			//Assert.AreEqual (c, p.GetControlFromPosition(0, 0), "A13");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:32,代码来源:TableLayoutTest.cs

示例8: Initialize


//.........这里部分代码省略.........
            _comments.Name = "_comments";
            _maxStaticFriction.Name = "_maxStaticFriction";
            _dynamicFriction.Name = "_dynamicFriction";
            _ambientTemperature.Name = "_ambientTemperature";
            _mechanicalEfficiency.Name = "_mechanicalEfficiency";

            _sequenceName.Text = _project.SequenceName;
            _maxStaticFriction.Text = "0";
            _dynamicFriction.Text = "0";
            _ambientTemperature.Text = "20";
            _mechanicalEfficiency.Text = "95";

            _maxStaticFrictionUnits = fillComboBox("force", 0);
            _dynamicFrictionUnits = fillComboBox("friction", 0);
            _ambientTemperatureUnits = fillComboBox("temperature", 0);
            _mechanicalEfficiencyUnits = fillComboBox("percent", 0);
            _cooling = fillComboBox("cooling", 0);
            _stackedAxis = fillComboBox("none", 0);
            _stackedMassUnits = fillComboBox("mass", 0);

            _totalSeqTimeUnits = fillComboBox("time", 1);
            _maxLinearSpeedUnits = fillComboBox("velocity", 0);
            _peakAccelerationUnits = fillComboBox("acceleration", 0);
            _peakForceUnits = fillComboBox("force", 0);
            _totalRMSForceUnits = fillComboBox("force", 0);

            _peakCurrentUnits = addLabel("A");
            _continuousCurrentUnits = addLabel("A");
            _minBusVoltageUnits = addLabel("V");

            _finalCoilTemperatureUnits = fillComboBox("temperature", 0);

            _cooling.SelectedIndexChanged += new EventHandler(_cooling_SelectedIndexChanged);

            _panel.Controls.Add(_sequenceNameLabel, 0, 0);
            _panel.SetColumnSpan(_sequenceNameLabel, 2);
            _panel.Controls.Add(_inputs, 0, 2);
            _panel.Controls.Add(_maxStaticFrictionLabel, 0, 3);
            _panel.Controls.Add(_dynamicFrictionLabel, 0, 4);
            _panel.Controls.Add(_ambientTemperatureLabel, 0, 5);
            _panel.Controls.Add(_mechanicalEfficiencyLabel, 0, 6);
            _panel.Controls.Add(_coolingLabel, 0, 7);
            _panel.Controls.Add(_stackedAxisDescription, 0, 8);
            _panel.SetColumnSpan(_stackedAxisDescription, 3);
            _panel.Controls.Add(_stackedAxisLabel, 0, 9);
            _panel.Controls.Add(_stackedMassLabel, 0, 10);
            _panel.Controls.Add(_commentsLabel, 0, 11);

            _panel.Controls.Add(_outputs, 3, 2);
            _panel.Controls.Add(_totalSeqTimeLabel, 3, 3);
            _panel.Controls.Add(_maxLinearSpeedLabel, 3, 4);
            _panel.Controls.Add(_peakAccelerationLabel, 3, 5);
            _panel.Controls.Add(_peakForceLabel, 3, 6);
            _panel.Controls.Add(_totalRMSForceLabel, 3, 7);
            _panel.Controls.Add(_peakCurrentLabel, 3, 8);
            _panel.Controls.Add(_continuousCurrentLabel, 3, 9);
            //_panel.Controls.Add(_minBusVoltageLabel, 3, 9);
            _panel.Controls.Add(_finalCoilTemperatureLabel, 3, 10);

            _panel.Controls.Add(_sequenceName, 2, 0);
            _panel.SetColumnSpan(_sequenceName, 4);
            _panel.Controls.Add(_maxStaticFriction, 1, 3);
            _panel.Controls.Add(_dynamicFriction, 1, 4);
            _panel.Controls.Add(_ambientTemperature, 1, 5);
            _panel.Controls.Add(_mechanicalEfficiency, 1, 6);
            _panel.Controls.Add(_cooling, 1, 7);
            _panel.SetColumnSpan(_cooling, 2);
            _panel.Controls.Add(_stackedAxis, 1, 9);
            _panel.SetColumnSpan(_stackedAxis, 2);
            _panel.Controls.Add(_stackedMass, 1, 10);
            _panel.Controls.Add(_comments, 1, 11);
            _panel.SetRowSpan(_comments, 9);
            _panel.SetColumnSpan(_comments, 5);

            _panel.Controls.Add(_totalSeqTime, 4, 3);
            _panel.Controls.Add(_maxLinearSpeed, 4, 4);
            _panel.Controls.Add(_peakAcceleration, 4, 5);
            _panel.Controls.Add(_peakForce, 4, 6);
            _panel.Controls.Add(_totalRMSForce, 4, 7);
            _panel.Controls.Add(_peakCurrent, 4, 8);
            _panel.Controls.Add(_continuousCurrent, 4, 9);
            //_panel.Controls.Add(_minBusVoltage, 4, 9);
            _panel.Controls.Add(_finalCoilTemperature, 4, 10);

            _panel.Controls.Add(_maxStaticFrictionUnits, 2, 3);
            _panel.Controls.Add(_dynamicFrictionUnits, 2, 4);
            _panel.Controls.Add(_ambientTemperatureUnits, 2, 5);
            _panel.Controls.Add(_mechanicalEfficiencyUnits, 2, 6);
            _panel.Controls.Add(_stackedMassUnits, 2, 10);

            _panel.Controls.Add(_totalSeqTimeUnits, 5, 3);
            _panel.Controls.Add(_maxLinearSpeedUnits, 5, 4);
            _panel.Controls.Add(_peakAccelerationUnits, 5, 5);
            _panel.Controls.Add(_peakForceUnits, 5, 6);
            _panel.Controls.Add(_totalRMSForceUnits, 5, 7);
            _panel.Controls.Add(_peakCurrentUnits, 5, 8);
            _panel.Controls.Add(_continuousCurrentUnits, 5, 9);
            //_panel.Controls.Add(_minBusVoltageUnits, 5, 9);
            _panel.Controls.Add(_finalCoilTemperatureUnits, 5, 10);
        }
开发者ID:MDSchechtman,项目名称:Aerotech-Motor-Sizer,代码行数:101,代码来源:SequenceScene.cs

示例9: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(BasicLoginDialog));
     this.btnCancel = new Button();
     this.chkShowPassword = new CheckBox();
     this.cmbUserName = new ComboBox();
     this.txtPassword = new TextBoxEx();
     this.btnOk = new Button();
     this.imgKeys = new PictureBox();
     this.lblMessage = new Label();
     Label label = new Label();
     Label label2 = new Label();
     TableLayoutPanel panel = new TableLayoutPanel();
     ((ISupportInitialize) this.imgKeys).BeginInit();
     panel.SuspendLayout();
     base.SuspendLayout();
     manager.ApplyResources(label, "lblUserName");
     label.MinimumSize = new Size(80, 0);
     label.Name = "lblUserName";
     manager.ApplyResources(label2, "lblPassword");
     label2.MinimumSize = new Size(80, 0);
     label2.Name = "lblPassword";
     manager.ApplyResources(this.btnCancel, "btnCancel");
     this.btnCancel.DialogResult = DialogResult.Cancel;
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     manager.ApplyResources(this.chkShowPassword, "chkShowPassword");
     this.chkShowPassword.Checked = Settings.Default.RunAsShowPassword;
     panel.SetColumnSpan(this.chkShowPassword, 3);
     this.chkShowPassword.DataBindings.Add(new Binding("Checked", Settings.Default, "RunAsShowPassword", true, DataSourceUpdateMode.OnPropertyChanged));
     this.chkShowPassword.Name = "chkShowPassword";
     this.chkShowPassword.UseVisualStyleBackColor = true;
     this.chkShowPassword.CheckedChanged += new EventHandler(this.chkShowPassword_CheckedChanged);
     panel.SetColumnSpan(this.cmbUserName, 3);
     manager.ApplyResources(this.cmbUserName, "cmbUserName");
     this.cmbUserName.FormattingEnabled = true;
     this.cmbUserName.Name = "cmbUserName";
     panel.SetColumnSpan(this.txtPassword, 3);
     manager.ApplyResources(this.txtPassword, "txtPassword");
     this.txtPassword.Name = "txtPassword";
     this.txtPassword.UseSystemPasswordChar = true;
     manager.ApplyResources(this.btnOk, "btnOk");
     this.btnOk.DialogResult = DialogResult.OK;
     this.btnOk.Name = "btnOk";
     this.btnOk.UseVisualStyleBackColor = true;
     manager.ApplyResources(this.imgKeys, "imgKeys");
     this.imgKeys.Name = "imgKeys";
     panel.SetRowSpan(this.imgKeys, 5);
     this.imgKeys.TabStop = false;
     manager.ApplyResources(this.lblMessage, "lblMessage");
     panel.SetColumnSpan(this.lblMessage, 4);
     this.lblMessage.MaximumSize = new Size(0x132, 0);
     this.lblMessage.Name = "lblMessage";
     manager.ApplyResources(panel, "tlpBack");
     panel.Controls.Add(label2, 1, 2);
     panel.Controls.Add(this.chkShowPassword, 2, 3);
     panel.Controls.Add(this.lblMessage, 1, 0);
     panel.Controls.Add(this.btnCancel, 4, 4);
     panel.Controls.Add(this.txtPassword, 2, 2);
     panel.Controls.Add(this.cmbUserName, 2, 1);
     panel.Controls.Add(this.imgKeys, 0, 0);
     panel.Controls.Add(this.btnOk, 3, 4);
     panel.Controls.Add(label, 1, 1);
     panel.Name = "tlpBack";
     base.AcceptButton = this.btnOk;
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.btnCancel;
     base.Controls.Add(panel);
     base.FormBorderStyle = FormBorderStyle.FixedDialog;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Name = "BasicLoginDialog";
     base.ShowInTaskbar = false;
     base.Shown += new EventHandler(this.BasicLoginDialog_Shown);
     base.FormClosed += new FormClosedEventHandler(this.BasicLoginDialog_FormClosed);
     ((ISupportInitialize) this.imgKeys).EndInit();
     panel.ResumeLayout(false);
     panel.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:82,代码来源:BasicLoginDialog.cs

示例10: Initialize


//.........这里部分代码省略.........
            _panel.RowCount = 10;
            _panel.ColumnCount = 5;

            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));
            _panel.RowStyles.Add(new RowStyle(SizeType.Percent, 0.05F));

            _panel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 0.125F));
            _panel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 0.25F));
            _panel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 0.25F));
            _panel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 0.25F));
            _panel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 0.125F));

            _label1 = new Label();
            _label2 = new Label();
            _label3 = new Label();
            _label4 = new Label();
            _label5 = new Label();

            Padding p = new Padding(0, 5, 0, 0);
            _label1.Margin = p;
            _label2.Margin = p;
            _label3.Margin = p;
            _label4.Margin = p;
            _label5.Margin = p;

            _label1.TextAlign = ContentAlignment.TopRight;
            _label2.TextAlign = ContentAlignment.TopRight;
            _label3.TextAlign = ContentAlignment.TopRight;
            _label4.TextAlign = ContentAlignment.TopRight;
            _label5.TextAlign = ContentAlignment.TopRight;

            _label1.Dock = DockStyle.Right;
            _label2.Dock = DockStyle.Right;
            _label3.Dock = DockStyle.Right;
            _label4.Dock = DockStyle.Right;
            _label5.Dock = DockStyle.Right;

            _textBox1 = new TextBox();
            _textBox2 = new TextBox();
            _textBox3 = new TextBox();
            _textBox4 = new TextBox();
            _textBox5 = new TextBox();

            _textBox1.Dock = DockStyle.Left;
            _textBox2.Dock = DockStyle.Left;
            _textBox3.Dock = DockStyle.Left;
            _textBox4.Dock = DockStyle.Left;
            _textBox5.Dock = DockStyle.Left;

            _textBox1.Text = _mainForm.Project.Name;

            _textBox1.Width = 500;
            _textBox2.Width = 500;
            _textBox3.Width = 500;
            _textBox4.Width = 500;
            _textBox5.Width = 500;
            _textBox5.Multiline = true;

            _label1.Text = "Project Name";
            _label2.Text = "Customer";
            _label3.Text = "Application";
            _label4.Text = "Sales Engineer";
            _label5.Text = "Comments";

            Button button = new Button();
            button.Text = "Update Information";
            button.Click += new EventHandler(button_Click);
            button.Anchor = AnchorStyles.Top | AnchorStyles.Left;

            dataGridView = new DataGridView();
            dataGridView.ColumnCount = 2;
            dataGridView.Columns[0].Name = "Name";
            dataGridView.Columns[1].Name = "Value";
            dataGridView.Width = 500;
            dataGridView.Height = 700;

            string[] row = new string[] { "Customer", "" };
            dataGridView.Rows.Add(row);
            row = new string[] { "Application", "" };
            dataGridView.Rows.Add(row);
            row = new string[] { "Sale Engineer", "" };
            dataGridView.Rows.Add(row);

            _panel.Controls.Add(_label1, 1, 1);

            _panel.Controls.Add(_textBox1, 2, 1);
            _panel.Controls.Add(dataGridView, 2, 2);
            _panel.SetColumnSpan(dataGridView, 3);
            _panel.SetRowSpan(dataGridView, 6);

            _panel.Controls.Add(button, 2, 8);
        }
开发者ID:MDSchechtman,项目名称:Aerotech-Motor-Sizer,代码行数:101,代码来源:ProjectScene.cs

示例11: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager manager = new ComponentResourceManager(typeof(AboutDialog));
     this.lblLicense = new LinkLabel();
     this.lblNomad = new Label();
     this.lblVersion = new Label();
     this.lblCopyright = new Label();
     this.btnClose = new System.Windows.Forms.Button();
     this.lblHomePage = new LinkLabel();
     this.lblEMail = new LinkLabel();
     this.btnCheckForUpdates = new System.Windows.Forms.Button();
     this.lblTarget = new Label();
     this.tlpLicense = new TableLayoutPanel();
     this.imgLicense = new PictureBox();
     this.bvlButtons = new Bevel();
     PictureBox box = new PictureBox();
     TableLayoutPanel panel = new TableLayoutPanel();
     TableLayoutPanel panel2 = new TableLayoutPanel();
     ((ISupportInitialize) box).BeginInit();
     panel.SuspendLayout();
     this.tlpLicense.SuspendLayout();
     ((ISupportInitialize) this.imgLicense).BeginInit();
     panel2.SuspendLayout();
     base.SuspendLayout();
     box.Image = Resources.NomadAboutLogo;
     manager.ApplyResources(box, "imgNomad");
     box.Name = "imgNomad";
     panel.SetRowSpan(box, 6);
     box.TabStop = false;
     manager.ApplyResources(this.lblLicense, "lblLicense");
     this.lblLicense.Name = "lblLicense";
     this.lblLicense.TabStop = true;
     this.lblLicense.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lblLicense_LinkClicked);
     manager.ApplyResources(this.lblNomad, "lblNomad");
     this.lblNomad.Name = "lblNomad";
     manager.ApplyResources(this.lblVersion, "lblVersion");
     panel.SetColumnSpan(this.lblVersion, 2);
     this.lblVersion.Name = "lblVersion";
     manager.ApplyResources(this.lblCopyright, "lblCopyright");
     panel.SetColumnSpan(this.lblCopyright, 2);
     this.lblCopyright.Name = "lblCopyright";
     manager.ApplyResources(this.btnClose, "btnClose");
     this.btnClose.DialogResult = DialogResult.Cancel;
     this.btnClose.Name = "btnClose";
     this.btnClose.UseVisualStyleBackColor = true;
     manager.ApplyResources(this.lblHomePage, "lblHomePage");
     panel.SetColumnSpan(this.lblHomePage, 2);
     this.lblHomePage.Name = "lblHomePage";
     this.lblHomePage.TabStop = true;
     this.lblHomePage.Tag = "http://www.nomad-net.info";
     this.lblHomePage.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lblHomePage_LinkClicked);
     manager.ApplyResources(this.lblEMail, "lblEMail");
     panel.SetColumnSpan(this.lblEMail, 2);
     this.lblEMail.Name = "lblEMail";
     this.lblEMail.TabStop = true;
     this.lblEMail.Tag = "mailto:[email protected]";
     this.lblEMail.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lblHomePage_LinkClicked);
     manager.ApplyResources(this.btnCheckForUpdates, "btnCheckForUpdates");
     this.btnCheckForUpdates.Name = "btnCheckForUpdates";
     this.btnCheckForUpdates.UseVisualStyleBackColor = true;
     this.btnCheckForUpdates.Click += new EventHandler(this.btnCheckForUpdates_Click);
     manager.ApplyResources(this.lblTarget, "lblTarget");
     this.lblTarget.ForeColor = SystemColors.GrayText;
     this.lblTarget.Name = "lblTarget";
     manager.ApplyResources(panel, "tlpBack");
     panel.Controls.Add(this.lblNomad, 1, 0);
     panel.Controls.Add(this.lblTarget, 2, 0);
     panel.Controls.Add(this.lblVersion, 1, 1);
     panel.Controls.Add(this.lblCopyright, 1, 2);
     panel.Controls.Add(this.lblHomePage, 1, 3);
     panel.Controls.Add(this.lblEMail, 1, 4);
     panel.Controls.Add(box, 0, 0);
     panel.Controls.Add(this.tlpLicense, 0, 6);
     panel.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     panel.Name = "tlpBack";
     manager.ApplyResources(this.tlpLicense, "tlpLicense");
     panel.SetColumnSpan(this.tlpLicense, 3);
     this.tlpLicense.Controls.Add(this.lblLicense, 1, 0);
     this.tlpLicense.Controls.Add(this.imgLicense, 0, 0);
     this.tlpLicense.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     this.tlpLicense.Name = "tlpLicense";
     this.tlpLicense.Paint += new PaintEventHandler(this.tlpLicense_Paint);
     manager.ApplyResources(this.imgLicense, "imgLicense");
     this.imgLicense.Name = "imgLicense";
     this.imgLicense.TabStop = false;
     manager.ApplyResources(panel2, "tlpButtons");
     panel2.Controls.Add(this.btnCheckForUpdates, 0, 0);
     panel2.Controls.Add(this.btnClose, 2, 0);
     panel2.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     panel2.Name = "tlpButtons";
     manager.ApplyResources(this.bvlButtons, "bvlButtons");
     this.bvlButtons.ForeColor = SystemColors.ControlDarkDark;
     this.bvlButtons.Name = "bvlButtons";
     this.bvlButtons.Sides = Border3DSide.Top;
     this.bvlButtons.Style = Border3DStyle.Flat;
     manager.ApplyResources(this, "$this");
     base.AutoScaleMode = AutoScaleMode.Font;
     base.CancelButton = this.btnClose;
     base.Controls.Add(panel2);
     base.Controls.Add(this.bvlButtons);
//.........这里部分代码省略.........
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:101,代码来源:AboutDialog.cs

示例12: InitializeComponent


//.........这里部分代码省略.........
     manager.ApplyResources(item30, "tsmiPatternSeconds1");
     item30.Tag = "s";
     item30.Paint += new PaintEventHandler(this.tsmiStandardDatePattern_Paint);
     item30.Click += new EventHandler(this.tsmiCustomDatePattern_Click);
     item31.Name = "tsmiPatternSeconds2";
     manager.ApplyResources(item31, "tsmiPatternSeconds2");
     item31.Tag = "ss";
     item31.Paint += new PaintEventHandler(this.tsmiStandardDatePattern_Paint);
     item31.Click += new EventHandler(this.tsmiCustomDatePattern_Click);
     manager.ApplyResources(panel, "tlpBack");
     panel.Controls.Add(this.lblDateTimeFormat, 0, 0);
     panel.Controls.Add(this.lblSizeFormat, 0, 1);
     panel.Controls.Add(this.lblFolderNameSample, 2, 3);
     panel.Controls.Add(this.lblDateTimeSample, 3, 0);
     panel.Controls.Add(this.lblFileNameSample, 2, 2);
     panel.Controls.Add(this.btnDateTimeFormat, 2, 0);
     panel.Controls.Add(this.lblSizeSample, 2, 1);
     panel.Controls.Add(this.lblFileNameCasing, 0, 2);
     panel.Controls.Add(this.lblFolderNameCasing, 0, 3);
     panel.Controls.Add(this.txtDateTimeFormat, 1, 0);
     panel.Controls.Add(this.cmbFolderNameCasing, 1, 3);
     panel.Controls.Add(this.cmbSizeFormat, 1, 1);
     panel.Controls.Add(this.cmbFileNameCasing, 1, 2);
     panel.Controls.Add(this.lblFolderNameTemplate, 0, 4);
     panel.Controls.Add(this.cmbFolderNameTemplate, 1, 4);
     panel.Name = "tlpBack";
     manager.ApplyResources(this.lblDateTimeFormat, "lblDateTimeFormat");
     this.lblDateTimeFormat.Name = "lblDateTimeFormat";
     manager.ApplyResources(this.lblSizeFormat, "lblSizeFormat");
     this.lblSizeFormat.Name = "lblSizeFormat";
     manager.ApplyResources(this.lblFolderNameSample, "lblFolderNameSample");
     panel.SetColumnSpan(this.lblFolderNameSample, 2);
     this.lblFolderNameSample.Name = "lblFolderNameSample";
     panel.SetRowSpan(this.lblFolderNameSample, 2);
     manager.ApplyResources(this.lblDateTimeSample, "lblDateTimeSample");
     this.lblDateTimeSample.Name = "lblDateTimeSample";
     manager.ApplyResources(this.lblFileNameSample, "lblFileNameSample");
     panel.SetColumnSpan(this.lblFileNameSample, 2);
     this.lblFileNameSample.Name = "lblFileNameSample";
     this.btnDateTimeFormat.Image = Resources.SmallDownArrow;
     manager.ApplyResources(this.btnDateTimeFormat, "btnDateTimeFormat");
     this.btnDateTimeFormat.Name = "btnDateTimeFormat";
     this.btnDateTimeFormat.UseVisualStyleBackColor = true;
     this.btnDateTimeFormat.Click += new EventHandler(this.btnDateTimeFormat_Click);
     manager.ApplyResources(this.lblSizeSample, "lblSizeSample");
     panel.SetColumnSpan(this.lblSizeSample, 2);
     this.lblSizeSample.Name = "lblSizeSample";
     manager.ApplyResources(this.lblFileNameCasing, "lblFileNameCasing");
     this.lblFileNameCasing.Name = "lblFileNameCasing";
     manager.ApplyResources(this.lblFolderNameCasing, "lblFolderNameCasing");
     this.lblFolderNameCasing.Name = "lblFolderNameCasing";
     manager.ApplyResources(this.txtDateTimeFormat, "txtDateTimeFormat");
     this.txtDateTimeFormat.Name = "txtDateTimeFormat";
     this.txtDateTimeFormat.TextChanged += new EventHandler(this.txtDateTimeFormat_TextChanged);
     manager.ApplyResources(this.cmbFolderNameCasing, "cmbFolderNameCasing");
     this.cmbFolderNameCasing.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cmbFolderNameCasing.FormattingEnabled = true;
     this.cmbFolderNameCasing.Name = "cmbFolderNameCasing";
     this.cmbFolderNameCasing.SelectedIndexChanged += new EventHandler(this.cmbFolderNameCasing_SelectedIndexChanged);
     manager.ApplyResources(this.cmbSizeFormat, "cmbSizeFormat");
     this.cmbSizeFormat.DropDownStyle = ComboBoxStyle.DropDownList;
     this.cmbSizeFormat.FormattingEnabled = true;
     this.cmbSizeFormat.Name = "cmbSizeFormat";
     this.cmbSizeFormat.SelectedIndexChanged += new EventHandler(this.cmbSizeFormat_SelectedIndexChanged);
     manager.ApplyResources(this.cmbFileNameCasing, "cmbFileNameCasing");
     this.cmbFileNameCasing.DropDownStyle = ComboBoxStyle.DropDownList;
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:67,代码来源:FormatsOptionControl.cs

示例13: ShowZoomButton

		private void ShowZoomButton(ref Button btnZoom, Font font, TableLayoutPanel ZoomButtonParent,
			SendToEditorForms eOutputForm, bool bIsLegacy, DataGridViewCell aCell)
		{
			if (aCell.Value == null)
				return;

			ZoomButtonParent.SuspendLayout();
			if (btnZoom == null)
			{
				btnZoom = new Button();
				Font fontLarge = Program.GetSafeFont(font.Name, font.SizeInPoints * 3);
				btnZoom.Font = fontLarge;
				btnZoom.Anchor = AnchorStyles.None;
				btnZoom.BackColor = System.Drawing.SystemColors.Menu;
				btnZoom.MouseDown += new MouseEventHandler(btnZoom_MouseDown);
				btnZoom.Tag = eOutputForm;
				ZoomButtonParent.Controls.Add(btnZoom, 2, 0);
				ZoomButtonParent.SetRowSpan(btnZoom, 2);
			}

			// initialize it with the space padded character and then get the preferred size
			//  (pad with a space on the left to correctly display 'zero forward offset' glyphs
			//  and on the right, so it's centered and looks nicer).
			btnZoom.Text = String.Format("{0}", aCell.Value.ToString());
			Size sz = btnZoom.GetPreferredSize(btnZoom.Size);
			btnZoom.Size = new Size(sz.Width, sz.Height);
			ZoomButtonParent.ResumeLayout();
			ZoomButtonParent.PerformLayout();

			// then fill it with the details from the clicked character
			string strTooltip = aCell.ToolTipText;
			int nIndexDelimiter = strTooltip.LastIndexOf(';');
			strTooltip = GetCellToolTip(aCell, eOutputForm, bIsLegacy) + "; Click to insert in map";
			toolTip.SetToolTip(btnZoom, strTooltip);
			return;
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:36,代码来源:DisplayUnicodeNamesForm.cs

示例14: InitializeComponent


//.........这里部分代码省略.........
     this.btnCustomizeSort.Name = "btnCustomizeSort";
     this.btnCustomizeSort.UseVisualStyleBackColor = true;
     this.btnCustomizeSort.Click += new EventHandler(this.btnCustomizeSort_Click);
     manager.ApplyResources(box2, "grpIcon");
     box2.Controls.Add(panel2);
     box2.Name = "grpIcon";
     box2.TabStop = false;
     manager.ApplyResources(panel2, "tlpIcon");
     panel2.Controls.Add(this.chkCustomizeIcon, 0, 0);
     panel2.Controls.Add(this.btnBrowseIcon, 2, 2);
     panel2.Controls.Add(this.txtIconLocation, 1, 1);
     panel2.Controls.Add(this.pnlIcon, 0, 1);
     panel2.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     panel2.Name = "tlpIcon";
     manager.ApplyResources(this.chkCustomizeIcon, "chkCustomizeIcon");
     panel2.SetColumnSpan(this.chkCustomizeIcon, 3);
     this.chkCustomizeIcon.Name = "chkCustomizeIcon";
     this.chkCustomizeIcon.UseVisualStyleBackColor = true;
     this.chkCustomizeIcon.CheckedChanged += new EventHandler(this.chkCustomizeIcon_CheckedChanged);
     manager.ApplyResources(this.btnBrowseIcon, "btnBrowseIcon");
     this.btnBrowseIcon.Name = "btnBrowseIcon";
     this.btnBrowseIcon.UseVisualStyleBackColor = true;
     this.btnBrowseIcon.Click += new EventHandler(this.btnBrowseIcon_Click);
     this.btnBrowseIcon.SizeChanged += new EventHandler(this.btnBrowseIcon_SizeChanged);
     panel2.SetColumnSpan(this.txtIconLocation, 2);
     manager.ApplyResources(this.txtIconLocation, "txtIconLocation");
     this.txtIconLocation.Name = "txtIconLocation";
     this.txtIconLocation.Validated += new EventHandler(this.txtIconLocation_Validated);
     this.txtIconLocation.Enter += new EventHandler(this.txtIconLocation_Enter);
     this.pnlIcon.BorderColor = Color.FromArgb(0xa7, 0xa6, 170);
     this.pnlIcon.Controls.Add(this.picIcon);
     manager.ApplyResources(this.pnlIcon, "pnlIcon");
     this.pnlIcon.Name = "pnlIcon";
     panel2.SetRowSpan(this.pnlIcon, 2);
     manager.ApplyResources(this.picIcon, "picIcon");
     this.picIcon.Name = "picIcon";
     this.picIcon.TabStop = false;
     manager.ApplyResources(box3, "grpListColors");
     box3.Controls.Add(panel3);
     box3.Name = "grpListColors";
     box3.TabStop = false;
     manager.ApplyResources(panel3, "tlpListColors");
     panel3.Controls.Add(control, 0, 0);
     panel3.Controls.Add(this.btnListForeColor, 1, 1);
     panel3.Controls.Add(label2, 0, 1);
     panel3.Controls.Add(this.btnListBackColor, 1, 0);
     panel3.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
     panel3.Name = "tlpListColors";
     manager.ApplyResources(control, "lblListBackColor");
     control.Name = "lblListBackColor";
     this.btnListForeColor.Image = null;
     manager.ApplyResources(this.btnListForeColor, "btnListForeColor");
     this.btnListForeColor.Name = "btnListForeColor";
     this.btnListForeColor.UseVisualStyleBackColor = true;
     this.btnListForeColor.ColorChanged += new EventHandler(this.UpdateButtons);
     manager.ApplyResources(label2, "lblListForeColor");
     label2.Name = "lblListForeColor";
     this.btnListBackColor.Image = null;
     manager.ApplyResources(this.btnListBackColor, "btnListBackColor");
     this.btnListBackColor.Name = "btnListBackColor";
     this.btnListBackColor.UseVisualStyleBackColor = true;
     this.btnListBackColor.ColorChanged += new EventHandler(this.UpdateButtons);
     manager.ApplyResources(this.chkApplyToChildren, "chkApplyToChildren");
     this.chkApplyToChildren.Name = "chkApplyToChildren";
     this.chkApplyToChildren.UseVisualStyleBackColor = true;
     this.chkApplyToChildren.CheckedChanged += new EventHandler(this.UpdateButtons);
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:67,代码来源:CustomizeFolderDialog.cs

示例15: InitializeComponent

			/*
			 * InitializeComponent
			 */

			private void InitializeComponent()
			{
				_okButton = new Button();
				_cancelButton = new Button();
				
				_addRootButton = new Button();
				_addChildButton = new Button();
				_deleteButton = new Button();
				_moveDownButton = new Button();
				_moveUpButton = new Button();

				_propertyDescriptionLabel = new Label();
				_treeViewDescriptionLabel = new Label();

				_propertyGrid = new NuGenPropertyGrid();
				_propertyGrid.Dock = DockStyle.Fill;

				_okCancelPanel = new TableLayoutPanel();
				_nodeControlPanel = new TableLayoutPanel();
				_overarchingTableLayoutPanel = new TableLayoutPanel();
				_navigationButtonsTableLayoutPanel = new TableLayoutPanel();

				_treeView = new NodesEditorTreeView();
				_treeView.Dock = DockStyle.Fill;
				
				_okCancelPanel.SuspendLayout();
				_nodeControlPanel.SuspendLayout();
				_overarchingTableLayoutPanel.SuspendLayout();
				_navigationButtonsTableLayoutPanel.SuspendLayout();
				this.SuspendLayout();

				_okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
				_okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
				_okCancelPanel.Controls.Add(_okButton, 0, 0);
				_okCancelPanel.Controls.Add(_cancelButton, 1, 0);
				_okCancelPanel.Dock = DockStyle.Right;
				_okCancelPanel.Margin = new Padding(3, 0, 0, 0);
				_okCancelPanel.RowStyles.Add(new RowStyle());
				
				_okButton.DialogResult = DialogResult.OK;
				_okButton.Dock = DockStyle.Fill;
				_okButton.Text = Resources.Text_TreeNodeCollectionEditor_okButton;
				
				_cancelButton.DialogResult = DialogResult.Cancel;
				_cancelButton.Dock = DockStyle.Fill;
				_cancelButton.Text = Resources.Text_TreeNodeCollectionEditor_cancelButton;
				
				_nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
				_nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
				_nodeControlPanel.Dock = DockStyle.Fill;
				_nodeControlPanel.Controls.Add(_addRootButton, 0, 0);
				_nodeControlPanel.Controls.Add(_addChildButton, 1, 0);
				_nodeControlPanel.Margin = new Padding(0, 3, 3, 3);
				_nodeControlPanel.RowStyles.Add(new RowStyle());

				_addRootButton.Dock = DockStyle.Fill;
				_addRootButton.Margin = new Padding(0, 0, 3, 0);
				_addRootButton.Text = Resources.Text_TreeNodeCollectionEditor_addRootButton;

				_addChildButton.Dock = DockStyle.Fill;
				_addChildButton.Margin = new Padding(3, 0, 0, 0);
				_addChildButton.Text = Resources.Text_TreeNodeCollectionEditor_addChildButton;

				_deleteButton.Dock = DockStyle.Fill;
				_deleteButton.Margin = new Padding(0, 3, 0, 0);
				_deleteButton.Image = Resources.Delete;
				_deleteButton.Size = new Size(30, 30);

				_moveDownButton.Dock = DockStyle.Fill;
				_moveDownButton.Margin = new Padding(0, 1, 0, 3);
				_moveDownButton.Image = Resources.Down;
				_moveDownButton.Size = new Size(30, 30);

				_moveUpButton.Dock = DockStyle.Fill;
				_moveUpButton.Margin = new Padding(0, 0, 0, 1);
				_moveUpButton.Image = Resources.Up;
				_moveUpButton.Size = new Size(30, 30);
				
				_propertyGrid.LineColor = SystemColors.ScrollBar;
				_overarchingTableLayoutPanel.SetRowSpan(_propertyGrid, 2);

				_propertyDescriptionLabel.Dock = DockStyle.Fill;
				_propertyDescriptionLabel.Margin = new Padding(3, 1, 0, 0);

				_treeView.AllowDrop = true;
				
				_treeView.HideSelection = false;
				_treeView.Margin = new Padding(0, 3, 3, 3);

				_treeViewDescriptionLabel.Dock = DockStyle.Fill;
				_treeViewDescriptionLabel.Margin = new Padding(0, 1, 3, 0);
				_treeViewDescriptionLabel.Text = Resources.Text_TreeNodeCollectionEditor_treeViewDescriptionLabel;

				_overarchingTableLayoutPanel.Dock = DockStyle.Fill;
				_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 250f));
				_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 40f));
//.........这里部分代码省略.........
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:101,代码来源:NuGenTreeNodeCollectionEditor.EditorForm.cs


注:本文中的System.Windows.Forms.TableLayoutPanel.SetRowSpan方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。