本文整理汇总了C#中System.Windows.Forms.ToolStripContainer.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# ToolStripContainer.ResumeLayout方法的具体用法?C# ToolStripContainer.ResumeLayout怎么用?C# ToolStripContainer.ResumeLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.ToolStripContainer
的用法示例。
在下文中一共展示了ToolStripContainer.ResumeLayout方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnImportsSatisfied
/// <summary>
/// Called when a part's imports have been satisfied and it is safe to use. (Shell will have a value)
/// </summary>
public void OnImportsSatisfied()
{
_toolStripContainer1 = new ToolStripContainer();
_toolStripContainer1.ContentPanel.SuspendLayout();
_toolStripContainer1.SuspendLayout();
_toolStripContainer1.Dock = DockStyle.Fill;
_toolStripContainer1.Name = "toolStripContainer1";
// place all of the controls that were on the form originally inside of our content panel.
while (Shell.Controls.Count > 0)
{
foreach (Control control in Shell.Controls)
{
this._toolStripContainer1.ContentPanel.Controls.Add(control);
}
}
Shell.Controls.Add(_toolStripContainer1);
_toolStripContainer1.ContentPanel.ResumeLayout(false);
_toolStripContainer1.ResumeLayout(false);
_toolStripContainer1.PerformLayout();
Initialize(_toolStripContainer1);
}
示例2: InitializeComponent
//.........这里部分代码省略.........
this.JobImageList.TransparentColor = Color.Transparent;
this.JobImageList.Images.SetKeyName(0, "eventlogError.ico");
this.JobImageList.Images.SetKeyName(1, "eventlogWarn.ico");
this.JobImageList.Images.SetKeyName(2, "eventlogInfo.ico");
this.JobImageList.Images.SetKeyName(3, "印刷.ico");
this.JobImageList.Images.SetKeyName(4, "開く.ico");
this.JobImageList.Images.SetKeyName(5, "保存.ico");
this.JobImageList.Images.SetKeyName(6, "切り取り.ico");
this.JobImageList.Images.SetKeyName(7, "コピー.ico");
this.JobImageList.Images.SetKeyName(8, "貼り付け.ico");
this.JobImageList.Images.SetKeyName(9, "元に戻す.ico");
this.JobImageList.Images.SetKeyName(10, "添付.ico");
this.JobImageList.Images.SetKeyName(11, "ヘルプ.ico");
this.pmnSendGuardOFF.Items.AddRange(new ToolStripItem[] { this.smnSendGuardOFF });
this.pmnSendGuardOFF.Name = "contextMenuStrip2";
this.pmnSendGuardOFF.Size = new System.Drawing.Size(0xc1, 0x1a);
this.smnSendGuardOFF.Name = "smnSendGuardOFF";
this.smnSendGuardOFF.Size = new System.Drawing.Size(0xc0, 0x16);
this.smnSendGuardOFF.Text = "Bật t\x00ednh năng gửi lại";
this.smnSendGuardOFF.Click += new EventHandler(this.mnSendGuardOFF_Click);
this.OpenFileDlg.Filter = "Type(*.txt;*.csv;*.doc;*.xls;*.jpg;*.bmp;*.tif;*.pdf;*.xml;*.jet)|*.txt;*.csv;*.doc;*.xls;*.jpg;*.bmp;*.tif;*.pdf;*.xml;*.jet";
this.OpenFileDlg.RestoreDirectory = true;
this.SaveFileDlg.Filter = "Text file(*.txt)|*.txt|All files(*.*)|*.*";
this.SaveFileDlg.RestoreDirectory = true;
this.ResImageList.ImageStream = (ImageListStreamer) manager.GetObject("ResImageList.ImageStream");
this.ResImageList.TransparentColor = Color.Transparent;
this.ResImageList.Images.SetKeyName(0, "Completion.ico");
this.ResImageList.Images.SetKeyName(1, "Error.ico");
this.ResImageList.Images.SetKeyName(2, "Warning.ico");
this.tmSetResField.Tick += new EventHandler(this.tmSetResField_Tick);
style3.ForeColor = SystemColors.ControlText;
this.dataGridViewTextBoxColumn1.DefaultCellStyle = style3;
this.dataGridViewTextBoxColumn1.HeaderText = "コード";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.SortMode = DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn1.Width = 0x4a;
this.dataGridViewTextBoxColumn2.HeaderText = "内容";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
this.dataGridViewTextBoxColumn2.SortMode = DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn3.HeaderText = "処置";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.SortMode = DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn4.HeaderText = "項目ID";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.ReadOnly = true;
this.dataGridViewTextBoxColumn4.SortMode = DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn4.Width = 70;
this.dataGridViewTextBoxColumn5.HeaderText = "";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.ReadOnly = true;
this.dataGridViewTextBoxColumn5.Resizable = DataGridViewTriState.False;
this.dataGridViewTextBoxColumn5.SortMode = DataGridViewColumnSortMode.NotSortable;
this.dataGridViewTextBoxColumn5.Visible = false;
this.dataGridViewTextBoxColumn5.Width = 5;
this.dataGridViewTextBoxColumn6.HeaderText = "行番号";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.ReadOnly = true;
this.dataGridViewTextBoxColumn6.Visible = false;
this.dataGridViewTextBoxColumn7.HeaderText = "業務項番";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
this.dataGridViewTextBoxColumn7.Visible = false;
base.AutoScaleDimensions = new SizeF(6f, 12f);
base.AutoScaleMode = AutoScaleMode.Font;
base.ClientSize = new System.Drawing.Size(0x3f8, 0x2de);
base.Controls.Add(container);
base.Controls.Add(this.MainMenu);
base.Icon = (Icon) manager.GetObject("$this.Icon");
base.Name = "CommonJobForm";
base.Load += new EventHandler(this.CommonJobForm_Load);
base.SizeChanged += new EventHandler(this.CommonJobForm_SizeChanged);
container.ContentPanel.ResumeLayout(false);
container.TopToolStripPanel.ResumeLayout(false);
container.TopToolStripPanel.PerformLayout();
container.ResumeLayout(false);
container.PerformLayout();
this.pnlCommon.ResumeLayout(false);
this.pnlResultCode.ResumeLayout(false);
this.gbResult.ResumeLayout(false);
((ISupportInitialize) this.gvResult).EndInit();
this.pnlGuide.ResumeLayout(false);
this.gbGuide.ResumeLayout(false);
this.pnlHeaderInfo.ResumeLayout(false);
this.pnlHeaderInfo.PerformLayout();
this.gbAttach.ResumeLayout(false);
this.gbInputInfo.ResumeLayout(false);
this.gbInputInfo.PerformLayout();
this.PopMenu.ResumeLayout(false);
this.stPnlUser.EndInit();
this.stPnlSendGuard.EndInit();
this.ToolStrip.ResumeLayout(false);
this.ToolStrip.PerformLayout();
this.MainMenu.ResumeLayout(false);
this.MainMenu.PerformLayout();
this.pmnSendGuardOFF.ResumeLayout(false);
base.ResumeLayout(false);
base.PerformLayout();
}
示例3: Attach
public void Attach(IWorkbench workbench)
{
wbForm = (DefaultWorkbench)workbench;
wbForm.SuspendLayout();
wbForm.Controls.Clear();
toolStripContainer = new ToolStripContainer();
toolStripContainer.SuspendLayout();
toolStripContainer.Dock = DockStyle.Fill;
mainMenuContainer = new AutoHideMenuStripContainer(((DefaultWorkbench)wbForm).TopMenu);
mainMenuContainer.Dock = DockStyle.Top;
statusStripContainer = new AutoHideStatusStripContainer((StatusStrip)StatusBarService.Control);
statusStripContainer.Dock = DockStyle.Bottom;
dockPanel = new WeifenLuo.WinFormsUI.DockPanel();
dockPanel.DocumentStyle = DocumentStyles.DockingWindow;
this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill;
Panel helperPanel = new Panel();
helperPanel.Dock = DockStyle.Fill;
helperPanel.Controls.Add(dockPanel);
toolStripContainer.ContentPanel.Controls.Add(helperPanel);
toolStripContainer.ContentPanel.Controls.Add(mainMenuContainer);
toolStripContainer.ContentPanel.Controls.Add(statusStripContainer);
wbForm.Controls.Add(toolStripContainer);
// dock panel has to be added to the form before LoadLayoutConfiguration is called to fix SD2-463
LoadLayoutConfiguration();
ShowPads();
ShowViewContents();
RedrawAllComponents();
dockPanel.ActiveDocumentChanged += new EventHandler(ActiveMdiChanged);
dockPanel.ActiveContentChanged += new EventHandler(ActiveContentChanged);
ActiveMdiChanged(this, EventArgs.Empty);
toolStripContainer.ResumeLayout(false);
wbForm.ResumeLayout(false);
Properties fullscreenProperties = PropertyService.Get("ICSharpCode.SharpDevelop.Gui.FullscreenOptions", new Properties());
fullscreenProperties.PropertyChanged += TrackFullscreenPropertyChanges;
}
示例4: InitializeComponent
//.........这里部分代码省略.........
powerSaveSetupToolStripMenuItem.Image = OCTech.OBD2.Applications.Properties.Resources.PowerSave16x16;
powerSaveSetupToolStripMenuItem.Name = "powerSaveSetupToolStripMenuItem";
powerSaveSetupToolStripMenuItem.Size = new Size(179, 22);
powerSaveSetupToolStripMenuItem.Text = "Power Save Settings";
powerSaveSetupToolStripMenuItem.Click += new EventHandler(powerSaveSetupToolStripMenuItem_Click);
toolStripSeparatorToolsMenu2.Name = "toolStripSeparatorToolsMenu2";
toolStripSeparatorToolsMenu2.Size = new Size(176, 6);
preferencesToolStripMenuItem.Image = OCTech.OBD2.Applications.Properties.Resources.p00005d;
preferencesToolStripMenuItem.Name = "preferencesToolStripMenuItem";
preferencesToolStripMenuItem.Size = new Size(179, 22);
preferencesToolStripMenuItem.Text = "&Preferences";
preferencesToolStripMenuItem.Click += new EventHandler(preferencesToolStripMenuItem_Click);
toolStripContainer.ContentPanel.Controls.Add(tableLayoutPanel);
toolStripContainer.ContentPanel.Padding = new Padding(0, 0, 0, 23);
toolStripContainer.ContentPanel.Size = new Size(763, 458);
toolStripContainer.Dock = DockStyle.Fill;
toolStripContainer.Location = new Point(0, 0);
toolStripContainer.Name = "toolStripContainer";
toolStripContainer.Size = new Size(763, 482);
toolStripContainer.TabIndex = 0;
toolStripContainer.TopToolStripPanel.Controls.Add(menuStrip);
m_statusPortECU.Location = new Point(0, 459);
m_statusPortECU.Name = "ultraStatusBar";
appearance.TextHAlignAsString = "Center";
m_statusPortECU.PanelAppearance = appearance;
ultraStatusPanel1.Key = "InterfacePanel";
ultraStatusPanel1.SizingMode = PanelSizingMode.Automatic;
ultraStatusPanel1.Style = PanelStyle.ControlContainer;
ultraStatusPanel1.Width = 90;
ultraStatusPanel2.Key = "ECUPanel";
ultraStatusPanel2.SizingMode = PanelSizingMode.Automatic;
ultraStatusPanel2.Style = PanelStyle.ControlContainer;
ultraStatusPanel2.Width = 75;
ultraStatusPanel3.Key = "CurrentOperationPanel";
ultraStatusPanel3.SizingMode = PanelSizingMode.Automatic;
ultraStatusPanel3.Visible = false;
ultraStatusPanel3.Width = 90;
ultraStatusPanel4.Key = "ErrorPanel";
ultraStatusPanel4.SizingMode = PanelSizingMode.Spring;
ultraStatusPanel5.Key = "CalPanel";
ultraStatusPanel5.SizingMode = PanelSizingMode.Automatic;
ultraStatusPanel5.Visible = false;
ultraStatusPanel6.Key = "PlaybackTimePanel";
ultraStatusPanel6.SizingMode = PanelSizingMode.Automatic;
ultraStatusPanel6.Visible = false;
ultraStatusPanel7.Key = "PIDTimingPanel";
ultraStatusPanel7.Width = 85;
ultraStatusPanel8.Key = "ClockPanel";
ultraStatusPanel8.SizingMode = PanelSizingMode.Automatic;
ultraStatusPanel8.Style = PanelStyle.Time;
m_statusPortECU.Panels.AddRange(new UltraStatusPanel[]
{
ultraStatusPanel1,
ultraStatusPanel2,
ultraStatusPanel3,
ultraStatusPanel4,
ultraStatusPanel5,
ultraStatusPanel6,
ultraStatusPanel7,
ultraStatusPanel8
});
m_statusPortECU.Size = new Size(763, 23);
m_statusPortECU.SizeGripVisible = DefaultableBoolean.False;
m_statusPortECU.TabIndex = 1;
m_statusPortECU.ViewStyle = ViewStyle.VisualStudio2005;
this.AutoScaleDimensions = new SizeF(6f, 13f);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new Size(763, 482);
this.Controls.Add(m_statusPortECU);
this.Controls.Add(toolStripContainer);
this.MainMenuStrip = menuStrip;
this.Margin = new Padding(2);
this.Name= "MainForm";
StartPosition = FormStartPosition.CenterScreen;
this.WindowState = FormWindowState.Maximized;
tableLayoutPanel.ResumeLayout(false);
menuStrip.ResumeLayout(false);
menuStrip.PerformLayout();
toolStripContainer.ContentPanel.ResumeLayout(false);
toolStripContainer.TopToolStripPanel.ResumeLayout(false);
toolStripContainer.TopToolStripPanel.PerformLayout();
toolStripContainer.ResumeLayout(false);
toolStripContainer.PerformLayout();
((ISupportInitialize)m_statusPortECU).EndInit();
this.ResumeLayout(false);
}
示例5: InitializeComponent
//.........这里部分代码省略.........
helpToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
helpToolStripButton.Name = "helpToolStripButton";
helpToolStripButton.Size = new System.Drawing.Size(23, 22);
helpToolStripButton.Text = "He&lp";
helpToolStripButton.Visible = false;
//
// imageList1
//
imageList1.ImageStream = ((ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
imageList1.TransparentColor = System.Drawing.Color.Magenta;
imageList1.Images.SetKeyName(0, "ellipse.bmp");
imageList1.Images.SetKeyName(1, "rectangle.bmp");
imageList1.Images.SetKeyName(2, "Simple.bmp");
imageList1.Images.SetKeyName(3, "Point1.bmp");
imageList1.Images.SetKeyName(4, "Point2.bmp");
//
// fColorDialog
//
fColorDialog.AnyColor = true;
//
// fontDialog1
//
fontDialog1.FontMustExist = true;
//
// bColorDialog
//
bColorDialog.AnyColor = true;
bColorDialog.Color = System.Drawing.Color.White;
//
// printDocument1
//
printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(PrintDocument1PrintPage);
//
// printDialog1
//
printDialog1.Document = printDocument1;
printDialog1.UseEXDialog = true;
//
// printPreviewDialog1
//
printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0);
printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300);
printPreviewDialog1.Document = printDocument1;
printPreviewDialog1.Enabled = true;
printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
printPreviewDialog1.Name = "printPreviewDialog1";
printPreviewDialog1.Visible = false;
//
// openFileDialog1
//
openFileDialog1.DefaultExt = "xml";
openFileDialog1.FileName = "openFileDialog1";
openFileDialog1.Filter = "File xml (*.xml)|*.xml|Tutti i files (*.*)|*.*";
//
// saveFileDialog1
//
saveFileDialog1.DefaultExt = "xml";
saveFileDialog1.FileName = "diagram";
saveFileDialog1.Filter = "File xml (*.xml)|*.xml|Tutti i files (*.*)|*.*";
saveFileDialog1.RestoreDirectory = true;
//
// saveFileDialog2
//
saveFileDialog2.FileName = "export";
saveFileDialog2.Filter = "File png (*.png)|*.png|File jpeg (*.jpg,*.jpeg)|*.jpg,*.jpeg|File bitmap (*.bmp)|" +
"*.bmp|File gif (*.gif)|*.gif|File tiff (*.tif,*.tiff)|*.tif,*.tiff";
saveFileDialog2.RestoreDirectory = true;
//
// borderColorDialog
//
borderColorDialog.AnyColor = true;
//
// saveFileDialog3
//
saveFileDialog3.DefaultExt = "svg";
saveFileDialog3.Filter = "File svg (*.svg)|*.svg|Tutti i files (*.*)|*.*";
//
// MainForm
//
ClientSize = new System.Drawing.Size(804, 578);
Controls.Add(toolStripContainer1);
MainMenuStrip = menuStrip1;
Name = "MainForm";
Text = "Diagram Drawer";
FormClosing += new FormClosingEventHandler(MainForm_FormClosing);
toolStripContainer1.ContentPanel.ResumeLayout(false);
toolStripContainer1.ContentPanel.PerformLayout();
toolStripContainer1.TopToolStripPanel.ResumeLayout(false);
toolStripContainer1.TopToolStripPanel.PerformLayout();
toolStripContainer1.ResumeLayout(false);
toolStripContainer1.PerformLayout();
panel1.ResumeLayout(false);
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
toolStrip1.ResumeLayout(false);
toolStrip1.PerformLayout();
ResumeLayout (false);
}
示例6: InitializeComponent
//.........这里部分代码省略.........
//
// _renameListContextMenuItem
//
_renameListContextMenuItem.Image = global::Rsdn.LocUtil.Properties.Resources.Rename;
_renameListContextMenuItem.Name = "_renameListContextMenuItem";
_renameListContextMenuItem.Size = new System.Drawing.Size(124, 22);
_renameListContextMenuItem.Text = "Re&name";
_renameListContextMenuItem.Click += new System.EventHandler(this._renameResourceMenuItem_Click);
//
// _treeContextMenu
//
this._treeContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
_addTreeContextMenuIten});
this._treeContextMenu.Name = "_treeContextMenu";
this._treeContextMenu.Size = new System.Drawing.Size(105, 26);
this._treeContextMenu.Click += new System.EventHandler(this._addResourceMenuItem_Click);
//
// _listContextMenu
//
this._listContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
_removeListContextMenuItem,
removeToolStripMenuItem,
_renameListContextMenuItem});
this._listContextMenu.Name = "_listContextMenu";
this._listContextMenu.Size = new System.Drawing.Size(125, 70);
//
// _openFileDialog
//
this._openFileDialog.DefaultExt = "resx";
this._openFileDialog.Filter = "ResX files|*.resx";
//
// BottomToolStripPanel
//
this.BottomToolStripPanel.Location = new System.Drawing.Point(0, 0);
this.BottomToolStripPanel.Name = "BottomToolStripPanel";
this.BottomToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
this.BottomToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0);
this.BottomToolStripPanel.Size = new System.Drawing.Size(0, 0);
//
// TopToolStripPanel
//
this.TopToolStripPanel.Location = new System.Drawing.Point(0, 0);
this.TopToolStripPanel.Name = "TopToolStripPanel";
this.TopToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
this.TopToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0);
this.TopToolStripPanel.Size = new System.Drawing.Size(0, 0);
//
// RightToolStripPanel
//
this.RightToolStripPanel.Location = new System.Drawing.Point(0, 0);
this.RightToolStripPanel.Name = "RightToolStripPanel";
this.RightToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
this.RightToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0);
this.RightToolStripPanel.Size = new System.Drawing.Size(0, 0);
//
// LeftToolStripPanel
//
this.LeftToolStripPanel.Location = new System.Drawing.Point(0, 0);
this.LeftToolStripPanel.Name = "LeftToolStripPanel";
this.LeftToolStripPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
this.LeftToolStripPanel.RowMargin = new System.Windows.Forms.Padding(0);
this.LeftToolStripPanel.Size = new System.Drawing.Size(0, 0);
//
// ContentPanel
//
this.ContentPanel.Size = new System.Drawing.Size(200, 100);
//
// MainForm
//
this.ClientSize = new System.Drawing.Size(792, 566);
this.Controls.Add(_toolStripContainer);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this._menuStrip;
this.Name = "MainForm";
this.Text = "Localization utility";
toolStrip1.ResumeLayout(false);
toolStrip1.PerformLayout();
toolStrip2.ResumeLayout(false);
toolStrip2.PerformLayout();
_toolStripContainer.ContentPanel.ResumeLayout(false);
_toolStripContainer.TopToolStripPanel.ResumeLayout(false);
_toolStripContainer.TopToolStripPanel.PerformLayout();
_toolStripContainer.ResumeLayout(false);
_toolStripContainer.PerformLayout();
this._treeSplitter.Panel1.ResumeLayout(false);
this._treeSplitter.Panel2.ResumeLayout(false);
this._treeSplitter.ResumeLayout(false);
this._paneTree.ResumeLayout(false);
this._resourceSplitter.Panel1.ResumeLayout(false);
this._resourceSplitter.Panel2.ResumeLayout(false);
this._resourceSplitter.ResumeLayout(false);
this._paneItems.ResumeLayout(false);
this._paneProperties.ResumeLayout(false);
this._menuStrip.ResumeLayout(false);
this._menuStrip.PerformLayout();
this._treeContextMenu.ResumeLayout(false);
this._listContextMenu.ResumeLayout(false);
this.ResumeLayout(false);
}