本文整理汇总了C#中System.Windows.Forms.Panel.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# Panel.ResumeLayout方法的具体用法?C# Panel.ResumeLayout怎么用?C# Panel.ResumeLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.Panel
的用法示例。
在下文中一共展示了Panel.ResumeLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AnchorLayoutEvents
public void AnchorLayoutEvents ()
{
Panel p;
Button b;
p = new Panel ();
b = new Button ();
p.Controls.Add (b);
p.Layout += new LayoutEventHandler (p_Layout);
/* set the button's anchor to something different */
b.Anchor = AnchorStyles.Bottom;
Assert.AreEqual (1, event_count, "1");
Assert.AreEqual ("Anchor", most_recent_args.AffectedProperty, "2");
/* reset it to something new with the panel's layout suspended */
event_count = 0;
p.SuspendLayout ();
b.Anchor = AnchorStyles.Top;
Assert.AreEqual (0, event_count, "3");
p.ResumeLayout ();
Assert.AreEqual (1, event_count, "4");
Assert.AreEqual (null, most_recent_args.AffectedProperty, "5");
/* with the anchor style set to something, resize the parent */
event_count = 0;
p.Size = new Size (500, 500);
Assert.AreEqual (1, event_count, "6");
Assert.AreEqual ("Bounds", most_recent_args.AffectedProperty, "7");
/* now try it with layout suspended */
event_count = 0;
p.SuspendLayout ();
p.Size = new Size (400, 400);
Assert.AreEqual (0, event_count, "8");
p.ResumeLayout ();
Assert.AreEqual (1, event_count, "9");
Assert.AreEqual (null, most_recent_args.AffectedProperty, "10");
/* with the anchor style set to something, resize the child */
event_count = 0;
b.Size = new Size (100, 100);
Assert.AreEqual (1, event_count, "11");
Assert.AreEqual ("Bounds", most_recent_args.AffectedProperty, "12");
/* and again with layout suspended */
event_count = 0;
p.SuspendLayout ();
b.Size = new Size (200, 200);
Assert.AreEqual (0, event_count, "13");
p.ResumeLayout ();
Assert.AreEqual (1, event_count, "14");
Assert.AreEqual (null, most_recent_args.AffectedProperty, "15");
}
示例2: Form1
public Form1()
{
Trace.WriteLine("Form1 constructor");
_topPanel = zForm.CreatePanel(dockStyle: DockStyle.Top, backColor: Color.DodgerBlue, height: 300);
_topPanel.SuspendLayout();
Trace.WriteLine("Create TextBox");
_textBox = zForm.CreateTextBox();
//_textBox.ParentChanged += _textBox_ParentChanged;
ControlFindForm.Find(_textBox, FormFound);
Trace.WriteLine("before add TextBox to topPanel");
_topPanel.Controls.Add(_textBox);
Trace.WriteLine("after add TextBox to topPanel");
this.SuspendLayout();
this.AutoScaleDimensions = new SizeF(6F, 13F);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(1000, 600);
Trace.WriteLine("before add topPanel to Form");
this.Controls.Add(_topPanel);
Trace.WriteLine("after add topPanel to Form");
_topPanel.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
示例3: CreatePanel
private Panel CreatePanel(DockStyle dockStyle, Color? backColor = null)
{
Panel panel = new Panel();
panel.SuspendLayout();
panel.Dock = dockStyle;
if (backColor != null)
panel.BackColor = (Color)backColor;
panel.ResumeLayout(false);
return panel;
}
示例4: CreateResultTab_v2
private void CreateResultTab_v2()
{
//pan_tab_result1 = new Panel();
//pan_tab_result1.SuspendLayout();
//pan_tab_result1.Dock = DockStyle.Fill;
//pan_tab_result1.BackColor = Color.Aqua;
////pan_tab_result1.Visible = false;
//pan_tab_result1.ResumeLayout(false);
//pan_tab_result2 = new Panel();
//pan_tab_result2.SuspendLayout();
//pan_tab_result2.Dock = DockStyle.Fill;
//pan_tab_result2.BackColor = Color.Beige;
////pan_tab_result2.Visible = false;
//pan_tab_result2.ResumeLayout(false);
//SystemColors.Control
pan_tab_result1 = CreatePanel(DockStyle.Fill); // Color.Aqua
pan_tab_result2 = CreatePanel(DockStyle.Fill); // Color.Beige
pan_tab_result3 = CreatePanel(DockStyle.Fill); // Color.AliceBlue
pan_tab_result4 = CreatePanel(DockStyle.Fill); // Color.AntiqueWhite
pan_tab_result5 = CreatePanel(DockStyle.Fill); // Color.BlueViolet
pan_result_v2 = new Panel();
pan_result_v2.SuspendLayout();
pan_result_v2.Dock = DockStyle.Fill;
//pan_result_v2.BackColor = SystemColors.ControlDark;
pan_result_v2.BackColor = Color.Transparent;
pan_result_v2.Controls.Add(pan_tab_result1);
pan_result_v2.Controls.Add(pan_tab_result2);
pan_result_v2.Controls.Add(pan_tab_result3);
pan_result_v2.Controls.Add(pan_tab_result4);
pan_result_v2.Controls.Add(pan_tab_result5);
//this.Controls.Add(pan_result_v2);
pan_result_v2.ResumeLayout(false);
pan_result_v2.PerformLayout();
ActivePanResult(1);
}
示例5: InitializeComponent
private void InitializeComponent()
{
Panel panel = new Panel();
this._commandPrompt = new CommandPrompt();
panel.SuspendLayout();
base.SuspendLayout();
this._commandPrompt.BorderStyle = BorderStyle.None;
this._commandPrompt.Dock = DockStyle.Fill;
this._commandPrompt.ForeColor = Color.Cyan;
this._commandPrompt.BackColor = Color.Black;
this._commandPrompt.Font = new Font("Lucida Console", 8f);
this._commandPrompt.TabIndex = 0;
panel.BackColor = SystemColors.ControlDark;
panel.Controls.Add(this._commandPrompt);
panel.Dock = DockStyle.Fill;
panel.DockPadding.All = 1;
panel.TabIndex = 0;
base.Controls.Add(panel);
this.Text = "Command Shell";
base.Icon = new Icon(typeof(CommandToolWindow), "CommandToolWindow.ico");
panel.ResumeLayout(false);
base.ResumeLayout(false);
}
示例6: InitializeComponent
private void InitializeComponent()
{
BorderPanel = new Panel();
ContentPanel = new Panel();
BorderPanel.SuspendLayout();
SuspendLayout();
//
// BorderPanel
//
BorderPanel.BackColor = SystemColors.ControlDark;
BorderPanel.Controls.Add(ContentPanel);
BorderPanel.Dock = DockStyle.Fill;
BorderPanel.Location = new Point(3, 3);
BorderPanel.Name = "BorderPanel";
BorderPanel.Padding = new Padding(1);
BorderPanel.Size = new Size(286, 260);
BorderPanel.TabIndex = 0;
//
// ContentPanel
//
ContentPanel.BackColor = SystemColors.Control;
ContentPanel.Dock = DockStyle.Fill;
ContentPanel.Location = new Point(1, 1);
ContentPanel.Name = "ContentPanel";
ContentPanel.Size = new Size(284, 258);
ContentPanel.TabIndex = 1;
//
// DocumentForm
//
BackColor = Color.White;
ClientSize = new Size(292, 266);
Controls.Add(BorderPanel);
Name = "DocumentForm";
Padding = new Padding(3);
BorderPanel.ResumeLayout(false);
ResumeLayout(false);
}
示例7: InitializeComponent
//.........这里部分代码省略.........
//
// m_pnlOddTop
//
resources.ApplyResources(this.m_pnlOddTop, "m_pnlOddTop");
this.m_pnlOddTop.Name = "m_pnlOddTop";
//
// m_lblOddPage
//
resources.ApplyResources(this.m_lblOddPage, "m_lblOddPage");
this.m_lblOddPage.Name = "m_lblOddPage";
//
// m_lblEvenPage
//
resources.ApplyResources(this.m_lblEvenPage, "m_lblEvenPage");
this.m_lblEvenPage.Name = "m_lblEvenPage";
//
// panel3
//
panel3.BackColor = System.Drawing.Color.Silver;
resources.ApplyResources(panel3, "panel3");
panel3.Name = "panel3";
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.Silver;
resources.ApplyResources(this.panel4, "panel4");
this.panel4.Name = "panel4";
//
// m_grpBoxEdit
//
m_grpBoxEdit.Controls.Add(m_btnModify);
m_grpBoxEdit.Controls.Add(this.m_btnDelete);
m_grpBoxEdit.Controls.Add(m_btnAdd);
m_grpBoxEdit.Controls.Add(this.m_lstBoxName);
resources.ApplyResources(m_grpBoxEdit, "m_grpBoxEdit");
m_grpBoxEdit.Name = "m_grpBoxEdit";
m_grpBoxEdit.TabStop = false;
//
// m_btnDelete
//
resources.ApplyResources(this.m_btnDelete, "m_btnDelete");
this.m_btnDelete.Name = "m_btnDelete";
this.m_btnDelete.Click += new System.EventHandler(this.m_btnDelete_Click);
//
// m_lstBoxName
//
resources.ApplyResources(this.m_lstBoxName, "m_lstBoxName");
this.m_lstBoxName.Name = "m_lstBoxName";
this.m_lstBoxName.SelectedIndexChanged += new System.EventHandler(this.m_lstBoxName_SelectedIndexChanged);
//
// panel1
//
this.panel1.Controls.Add(m_lblDescription);
this.panel1.Controls.Add(tabControl1);
this.panel1.Controls.Add(lineControl1);
this.panel1.Controls.Add(this.m_txtBoxDescription);
resources.ApplyResources(this.panel1, "panel1");
this.panel1.Name = "panel1";
//
// lineControl1
//
lineControl1.BackColor = System.Drawing.Color.Transparent;
resources.ApplyResources(lineControl1, "lineControl1");
lineControl1.ForeColor2 = System.Drawing.Color.Transparent;
lineControl1.LinearGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
lineControl1.Name = "lineControl1";
//
// m_txtBoxDescription
//
resources.ApplyResources(this.m_txtBoxDescription, "m_txtBoxDescription");
this.m_txtBoxDescription.Name = "m_txtBoxDescription";
this.m_txtBoxDescription.ReadOnly = true;
//
// HeaderFooterSetupDlg
//
this.AcceptButton = m_btnOk;
resources.ApplyResources(this, "$this");
this.CancelButton = m_btnCancel;
this.Controls.Add(m_grpBoxEdit);
this.Controls.Add(this.panel1);
this.Controls.Add(m_btnHelp);
this.Controls.Add(m_btnCancel);
this.Controls.Add(m_btnOk);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "HeaderFooterSetupDlg";
this.ShowInTaskbar = false;
tabControl1.ResumeLayout(false);
m_tpFirst.ResumeLayout(false);
m_pnlFirstPage.ResumeLayout(false);
m_tpOddEven.ResumeLayout(false);
this.m_pnlEvenPage.ResumeLayout(false);
this.m_pnlOddPage.ResumeLayout(false);
m_grpBoxEdit.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
}
示例8: InitializeComponent
//.........这里部分代码省略.........
mapImage.Name = "mapImage";
mapImage.Size = new Size(512, 512);
mapImage.SizeMode = PictureBoxSizeMode.Zoom;
mapImage.TabIndex = 0;
mapImage.TabStop = false;
mapImage.MouseClick += new MouseEventHandler(mapImage_Click);
mapImage.MouseDown += new MouseEventHandler(mapImage_Down);
mapImage.MouseEnter += new EventHandler(mapImage_MouseEnter);
mapImage.MouseLeave += new EventHandler(mapImage_MouseLeave);
mapImage.MouseMove += new MouseEventHandler(mapImage_MouseMove);
mapImage.MouseUp += new MouseEventHandler(mapImage_Up);
//
// height
//
height.DropDownStyle = ComboBoxStyle.DropDownList;
height.FlatStyle = FlatStyle.Flat;
height.Location = new Point(380, 27);
height.Name = "height";
height.Size = new Size(100, 21);
height.TabIndex = 2;
height.SelectedIndexChanged += new EventHandler(height_ValueChanged);
//
// cmbBlocks
//
cmbBlocks.DrawMode = DrawMode.OwnerDrawFixed;
cmbBlocks.DropDownStyle = ComboBoxStyle.DropDownList;
cmbBlocks.FlatStyle = FlatStyle.Flat;
cmbBlocks.FormattingEnabled = true;
cmbBlocks.Location = new Point(0, 27);
cmbBlocks.Name = "cmbBlocks";
cmbBlocks.Size = new Size(187, 21);
cmbBlocks.TabIndex = 5;
for( i = 0; i < 256; i++ )
height.Items.Add( "" + ( i + 1 ));
cmbBlocks.SelectedIndexChanged += new EventHandler(cmbBlocks_SelectedIndexChanged);
//
// cmbPaint
//
cmbPaint.DrawMode = DrawMode.OwnerDrawFixed;
cmbPaint.DropDownStyle = ComboBoxStyle.DropDownList;
cmbPaint.FlatStyle = FlatStyle.Flat;
cmbPaint.FormattingEnabled = true;
cmbPaint.Location = new Point(190, 27);
cmbPaint.Name = "cmbPaint";
cmbPaint.Size = new Size(187, 21);
cmbPaint.TabIndex = 5;
cmbPaint.SelectedIndexChanged += new EventHandler(cmbPaint_SelectedIndexChanged);
//
// toolStripSeparator2
//
toolStripSeparator2.Name = "toolStripSeparator2";
toolStripSeparator2.Size = new Size(149, 6);
//
// undoMenu
//
undoMenu.Name = "undoMenu";
undoMenu.ShortcutKeys = ((Keys)((Keys.Control | Keys.Z)));
undoMenu.Size = new Size(152, 22);
undoMenu.Text = "&Undo";
undoMenu.Click += new EventHandler(undoMenu_Click);
//
// redoMenu
//
redoMenu.Name = "redoMenu";
redoMenu.ShortcutKeys = ((Keys)((Keys.Control | Keys.Y)));
redoMenu.Size = new Size(152, 22);
redoMenu.Text = "&Redo";
redoMenu.Click += new EventHandler(redoMenu_Click);
//
// frmMain
//
BackColor = Color.LightGray;
ClientSize = new Size(528, 623);
Controls.Add(cmbBlocks);
Controls.Add(cmbPaint);
Controls.Add(statusStrip1);
Controls.Add(height);
Controls.Add(menuStrip1);
Controls.Add(pnlImage);
FormClosing += new FormClosingEventHandler( frmMain_Closing );
Icon = Icon.FromHandle( icon.GetHicon());
file.Close();
Location = new Point(( Screen.PrimaryScreen.Bounds.Width - Width ) / 2,
( Screen.PrimaryScreen.Bounds.Height - Height ) / 2 );
MainMenuStrip = menuStrip1;
Move += new EventHandler(frmMain_SizeChanged);
Name = "frmMain";
StartPosition = FormStartPosition.Manual;
Text = "Creative Mode+";
SizeChanged += new EventHandler(frmMain_SizeChanged);
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
statusStrip1.ResumeLayout(false);
statusStrip1.PerformLayout();
pnlImage.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(mapImage)).EndInit();
ResumeLayout(false);
PerformLayout();
}
示例9: InitializeComponent
//.........这里部分代码省略.........
this._changeLineTypeCmb.Visible = false;
this._changeLineTypeCmb.SelectedIndexChanged += new System.EventHandler(this.changeLineTypeCmb_SelectedIndexChanged);
//
// _saveFileDialog
//
this._saveFileDialog.DefaultExt = "esch";
this._saveFileDialog.Filter = "Tiling|*.esch";
//
// _openFileDialog
//
this._openFileDialog.DefaultExt = "esch";
this._openFileDialog.Filter = "Tiling|*.esch";
//
// _renderControl
//
this._renderControl.Cursor = System.Windows.Forms.Cursors.Cross;
this._renderControl.Dock = System.Windows.Forms.DockStyle.Fill;
this._renderControl.Location = new System.Drawing.Point(41, 49);
this._renderControl.Name = "_renderControl";
this._renderControl.Size = new System.Drawing.Size(748, 565);
this._renderControl.TabIndex = 5;
this._renderControl.Render += new EscherTiler.RenderDelegate(this.renderControl_Render);
this._renderControl.Layout += new System.Windows.Forms.LayoutEventHandler(this.renderControl_Layout);
this._renderControl.MouseDown += new System.Windows.Forms.MouseEventHandler(this.renderControl_MouseDown);
this._renderControl.MouseLeave += new System.EventHandler(this.renderControl_MouseLeave);
this._renderControl.MouseMove += new System.Windows.Forms.MouseEventHandler(this.renderControl_MouseMove);
this._renderControl.MouseUp += new System.Windows.Forms.MouseEventHandler(this.renderControl_MouseUp);
//
// _pageSetupDialog
//
this._pageSetupDialog.Document = this._printDocument;
this._pageSetupDialog.EnableMetric = true;
//
// _printDocument
//
this._printDocument.DocumentName = "Tiling";
this._printDocument.PrintMode = EscherTiler.Graphics.GDI.TilingPrintMode.TilingFull;
this._printDocument.Tile = null;
this._printDocument.Tiling = null;
//
// _printDialog
//
this._printDialog.Document = this._printDocument;
this._printDialog.UseEXDialog = true;
//
// _printPreviewDialog
//
this._printPreviewDialog.AutoScrollMargin = new System.Drawing.Size(0, 0);
this._printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
this._printPreviewDialog.ClientSize = new System.Drawing.Size(400, 300);
this._printPreviewDialog.Document = this._printDocument;
this._printPreviewDialog.Enabled = true;
this._printPreviewDialog.Icon = ((System.Drawing.Icon)(resources.GetObject("_printPreviewDialog.Icon")));
this._printPreviewDialog.Name = "_printPreviewDialog";
this._printPreviewDialog.UseAntiAlias = true;
this._printPreviewDialog.Visible = false;
//
// Main
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(984, 661);
this.Controls.Add(this._renderControl);
this.Controls.Add(_stylesPanel);
this.Controls.Add(this._contextToolStrip);
this.Controls.Add(this._operationToolStrip);
this.Controls.Add(this._toolStrip);
this.Controls.Add(this._menuStrip);
this.Controls.Add(this._statusStrip);
this.MainMenuStrip = this._menuStrip;
this.MinimumSize = new System.Drawing.Size(600, 450);
this.Name = "Main";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Escher Tiler";
this.Click += new System.EventHandler(this.toolBtn_Click);
_stylesPanel.ResumeLayout(false);
this._fillStylesGroup.ResumeLayout(false);
this._lineStyleGroup.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this._lineWidthTrack)).EndInit();
this._greedyStyleManagerPnl.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this._greedyParamCTrack)).EndInit();
((System.ComponentModel.ISupportInitialize)(this._greedyParamBTrack)).EndInit();
((System.ComponentModel.ISupportInitialize)(this._greedyParamATrack)).EndInit();
this._randomStyleMangerPnl.ResumeLayout(false);
this._randomStyleMangerPnl.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this._seedNum)).EndInit();
this._menuStrip.ResumeLayout(false);
this._menuStrip.PerformLayout();
this._toolStrip.ResumeLayout(false);
this._toolStrip.PerformLayout();
this._operationToolStrip.ResumeLayout(false);
this._operationToolStrip.PerformLayout();
this._statusStrip.ResumeLayout(false);
this._statusStrip.PerformLayout();
this._contextToolStrip.ResumeLayout(false);
this._contextToolStrip.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
示例10: InitializeComponent
//.........这里部分代码省略.........
//
// 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);
}
示例11: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.Panel _fileAssociations;
System.Windows.Forms.Panel _container;
this.myRules = new System.Windows.Forms.Panel();
this._buttons = new System.Windows.Forms.ToolStrip();
this.myReset = new System.Windows.Forms.Button();
_fileAssociations = new System.Windows.Forms.Panel();
_container = new System.Windows.Forms.Panel();
_fileAssociations.SuspendLayout();
_container.SuspendLayout();
this.SuspendLayout();
//
// _fileAssociations
//
_fileAssociations.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)));
_fileAssociations.Controls.Add(this.myRules);
_fileAssociations.Controls.Add(this._buttons);
_fileAssociations.Location = new System.Drawing.Point(3, 3);
_fileAssociations.Name = "_fileAssociations";
_fileAssociations.Size = new System.Drawing.Size(767, 696);
_fileAssociations.TabIndex = 12;
//
// _rules
//
this.myRules.Dock = System.Windows.Forms.DockStyle.Fill;
this.myRules.Location = new System.Drawing.Point(0, 25);
this.myRules.Name = "_rules";
this.myRules.Size = new System.Drawing.Size(767, 671);
this.myRules.TabIndex = 1;
//
// _buttons
//
this._buttons.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this._buttons.Location = new System.Drawing.Point(0, 0);
this._buttons.Name = "_buttons";
this._buttons.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this._buttons.Size = new System.Drawing.Size(767, 25);
this._buttons.TabIndex = 0;
this._buttons.Text = "_buttons";
//
// _reset
//
this.myReset.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.myReset.Location = new System.Drawing.Point(3, 705);
this.myReset.Name = "_reset";
this.myReset.Size = new System.Drawing.Size(94, 23);
this.myReset.TabIndex = 0;
this.myReset.Text = "Reset defaults";
this.myReset.UseVisualStyleBackColor = true;
this.myReset.Click += new System.EventHandler(this.ResetClick);
//
// _container
//
_container.Controls.Add(this.myReset);
_container.Controls.Add(_fileAssociations);
_container.Dock = System.Windows.Forms.DockStyle.Fill;
_container.Location = new System.Drawing.Point(0, 0);
_container.Name = "_container";
_container.Size = new System.Drawing.Size(773, 731);
_container.TabIndex = 0;
//
// ZenCodingOptionsPage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(_container);
this.Name = "ZenCodingOptionsPage";
this.Size = new System.Drawing.Size(773, 731);
_fileAssociations.ResumeLayout(false);
_fileAssociations.PerformLayout();
_container.ResumeLayout(false);
this.ResumeLayout(false);
}
示例12: attachTo
public void attachTo(Panel mainGUI, bool userInput = false)
{
mainGUI.SuspendLayout();
for (int i = 0; i < this.ColumnCount; ++i)
this.Columns[i].Width = cellWidth;
Point p = userInput ? new Point(0, offsetH) : SetFreeLocation();
if (userInput)
Location = p;
titleLabel.Location = new Point(p.X, p.Y - 17);
titleLabel.Width = Width;
titleLabel.Height = 17;
titleLabel.TextAlign = ContentAlignment.MiddleCenter;
titleLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
titleLabel.FlatStyle = FlatStyle.System;
titleLabel.BackColor = Color.LightBlue;
titleLabel.Text = userInput ? "User X" : "X #" + objectCounter;
mainGUI.Controls.Add(this);
mainGUI.Controls.Add(titleLabel);
mainGUI.ResumeLayout(false);
mainGUI.Focus();
}
示例13: InitializeComponent
//.........这里部分代码省略.........
//
// 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);
}
示例14: MakeCruiserListItem
private void MakeCruiserListItem(CruiserVM cruiser, Control parent)
{
Panel panel = new Panel();
panel.SuspendLayout();
Label lbl = new Label();
Button btn = new Button();
panel.BackColor = System.Drawing.Color.Tan;
panel.Controls.Add(lbl);
panel.Controls.Add(btn);
panel.Size = new System.Drawing.Size(240, 25);
panel.Dock = System.Windows.Forms.DockStyle.Top;
//panel.Location = new System.Drawing.Point(0, 0);
//panel.Name = "panel3";
btn.BackColor = System.Drawing.Color.Crimson;
btn.Dock = System.Windows.Forms.DockStyle.Right;
//this.button1.Location = new System.Drawing.Point(213, 0);
//this.button1.Name = "button1";
btn.Size = new System.Drawing.Size(27, 25);
btn.TabIndex = 1;
btn.Text = "X";
btn.Click += new System.EventHandler(this._removeItemBTN_Click);
lbl.Location = new System.Drawing.Point(12, 3);
lbl.Name = "label2";
lbl.Size = new System.Drawing.Size(48, 20);
lbl.Text = cruiser.Initials;
panel.Tag = cruiser;
panel.Parent = parent;
#if NetCF
FMSC.Controls.DpiHelper.AdjustControl(panel);
FMSC.Controls.DpiHelper.AdjustControl(lbl);
FMSC.Controls.DpiHelper.AdjustControl(btn);
#endif
panel.ResumeLayout(false);
}
示例15: InitializeComponent
//.........这里部分代码省略.........
dgvHash.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None;
dgvHash.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dgvHash.Columns.AddRange(new DataGridViewColumn[] { clmn1_Icon, clmn2_Path, clmn3_Hash });
dgvHash.Dock = DockStyle.Fill;
dgvHash.GridColor = SystemColors.ControlLight;
dgvHash.Location = new Point(0, 0);
dgvHash.ReadOnly = true;
dgvHash.RowHeadersVisible = false;
dgvHash.RowTemplate.Height = 0x15;
dgvHash.Size = new Size(0x1bf, 0x6c);
dgvHash.MouseDown += dataGridView1_MouseDown;
dgvHash.KeyDown += dataGridView1_KeyDown;
dgvHash.CellStateChanged += dataGridView1_CellStateChanged;
dgvHash.CellMouseDoubleClick += dataGridView1_CellMouseDoubleClick;
clmn1_Icon.ReadOnly = true;
clmn1_Icon.Resizable = DataGridViewTriState.False;
clmn1_Icon.Width = 0x12;
clmn2_Path.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
clmn2_Path.HeaderText = QTUtility.TextResourcesDic["FileHashComputer"][0];
clmn2_Path.MinimumWidth = 80;
clmn2_Path.ReadOnly = true;
clmn3_Hash.AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
clmn3_Hash.HeaderText = QTUtility.TextResourcesDic["FileHashComputer"][1];
clmn3_Hash.MinimumWidth = 200;
clmn3_Hash.ReadOnly = true;
panel1.Controls.Add(cmbHashType);
panel1.Controls.Add(chbTopMost);
panel1.Controls.Add(chbShowResult);
panel1.Controls.Add(chbClearOnClose);
panel1.Controls.Add(chbFullPath);
panel1.Controls.Add(btnClear);
panel1.Controls.Add(btnClose);
panel1.Controls.Add(btnRefresh);
panel1.Dock = DockStyle.Bottom;
panel1.Location = new Point(0, 0x6c);
panel1.Size = new Size(0x1bf, 0x5d);
panel1.Paint += panel1_Paint;
btnClose.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
btnClose.Location = new Point(0x171, 0x43);
btnClose.Size = new Size(0x4b, 0x17);
btnClose.Text = QTUtility.TextResourcesDic["FileHashComputer"][2];
btnClose.UseVisualStyleBackColor = true;
btnClose.Click += buttonClose_Click;
btnClear.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
btnClear.Location = new Point(0x120, 0x43);
btnClear.Size = new Size(0x4b, 0x17);
btnClear.Text = QTUtility.TextResourcesDic["FileHashComputer"][3];
btnClear.UseVisualStyleBackColor = true;
btnClear.Click += buttonClear_Click;
btnRefresh.Location = new Point(0x89, 8);
btnRefresh.Size = new Size(0x4b, 0x15);
btnRefresh.Text = QTUtility.TextResourcesDic["FileHashComputer"][4];
btnRefresh.UseVisualStyleBackColor = true;
btnRefresh.Click += buttonRefresh_Click;
cmbHashType.DropDownStyle = ComboBoxStyle.DropDownList;
cmbHashType.Items.AddRange(new object[] { "MD5", "SHA-1", "SHA-256", "SHA-384", "SHA-512" });
cmbHashType.Location = new Point(12, 8);
cmbHashType.Size = new Size(0x79, 0x15);
chbTopMost.AutoSize = true;
chbTopMost.Location = new Point(12, 0x43);
chbTopMost.Size = new Size(0x4b, 0x17);
chbTopMost.Text = QTUtility.TextResourcesDic["FileHashComputer"][5];
chbTopMost.UseVisualStyleBackColor = true;
chbTopMost.CheckedChanged += checkBoxTopMost_CheckedChanged;
chbShowResult.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
chbShowResult.AutoSize = true;
chbShowResult.Location = new Point(0xd7, 0x29);
chbShowResult.Size = new Size(0x5e, 0x11);
chbShowResult.Text = QTUtility.TextResourcesDic["FileHashComputer"][6];
chbShowResult.UseVisualStyleBackColor = true;
chbClearOnClose.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
chbClearOnClose.AutoSize = true;
chbClearOnClose.Location = new Point(0x60, 0x29);
chbClearOnClose.Size = new Size(0x5e, 0x11);
chbClearOnClose.Text = QTUtility.TextResourcesDic["FileHashComputer"][7];
chbClearOnClose.UseVisualStyleBackColor = true;
chbFullPath.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
chbFullPath.AutoSize = true;
chbFullPath.Location = new Point(12, 0x29);
chbFullPath.Size = new Size(0x5e, 0x11);
chbFullPath.Text = QTUtility.TextResourcesDic["FileHashComputer"][8];
chbFullPath.UseVisualStyleBackColor = true;
chbFullPath.CheckedChanged += checkBoxFullPath_CheckedChanged;
AutoScaleDimensions = new SizeF(6f, 13f);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(0x1bf, 0xab);
Controls.Add(dgvHash);
Controls.Add(panel1);
MinimumSize = new Size(320, 0xd5);
MaximizeBox = false;
MinimizeBox = false;
ShowIcon = false;
ShowInTaskbar = false;
StartPosition = FormStartPosition.Manual;
Text = QTUtility.TextResourcesDic["FileHashComputer"][1];
FormClosing += MD5Form_FormClosing;
((ISupportInitialize)dgvHash).EndInit();
panel1.ResumeLayout(false);
ResumeLayout(false);
}