本文整理汇总了C#中System.Windows.Forms.TabPage.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# TabPage.ResumeLayout方法的具体用法?C# TabPage.ResumeLayout怎么用?C# TabPage.ResumeLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.TabPage
的用法示例。
在下文中一共展示了TabPage.ResumeLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InserirDocumento
public CrystalReportViewer InserirDocumento(ReportClass documento, string texto)
{
AguardeDB.Mostrar();
// Insere documento na lista
documentos.Add(documento);
// Insere controles
CrystalReportViewer novoViewer;
TabPage novaTab;
novoViewer = new CrystalReportViewer();
novaTab = new TabPage();
tabControl.TabPages.Add(novaTab);
tabControl.SuspendLayout();
novaTab.SuspendLayout();
this.SuspendLayout();
//
// visualizador
//
novoViewer.ActiveViewIndex = -1;
novoViewer.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)));
novoViewer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
novoViewer.EnableDrillDown = false;
novoViewer.Location = new System.Drawing.Point(0, 0);
novoViewer.Name = "visualizador";
novoViewer.SelectionFormula = "";
novoViewer.ShowCloseButton = false;
novoViewer.ShowExportButton = false;
novoViewer.ShowGotoPageButton = false;
novoViewer.ShowGroupTreeButton = false;
novoViewer.ShowPrintButton = false;
novoViewer.ShowRefreshButton = false;
novoViewer.ShowTextSearchButton = false;
novoViewer.Size = new System.Drawing.Size(709, 210);
novoViewer.TabIndex = 0;
novoViewer.ViewTimeSelectionFormula = "";
novaTab.Controls.Add(novoViewer);
novaTab.Location = new System.Drawing.Point(4, 22);
novaTab.Padding = new System.Windows.Forms.Padding(3);
novaTab.Size = new System.Drawing.Size(709, 210);
novaTab.TabIndex = 0;
novaTab.Text = texto;
novaTab.UseVisualStyleBackColor = true;
this.tabControl.ResumeLayout(false);
novaTab.ResumeLayout(false);
this.ResumeLayout(false);
novoViewer.ReportSource = documento;
AguardeDB.Fechar();
return novoViewer;
}
示例2: PutControls
public void PutControls(List<IExtension> extensions, OMenuItems menu, TabControl tabControl, int clientId, int contractId)
{
if (extensions != null)
{
foreach (var extension in extensions)
{
if (extension.MainMenu == menu)
{
TabPage tabPageExtension = new TabPage();
tabPageExtension.SuspendLayout();
tabPageExtension.Name = extension.ExtensionName;
tabPageExtension.Text = extension.ExtensionName;
tabPageExtension.UseVisualStyleBackColor = true;
extension.ClientId = clientId;
extension.ContractId = contractId;
UserControl control = (UserControl)extension;
control.Dock = DockStyle.Fill;
tabPageExtension.Controls.Add(control);
tabPageExtension.ResumeLayout(false);
tabControl.TabPages.Add(tabPageExtension);
}
}
}
}
示例3: initTab
private void initTab(int i, TabPage tabPage, TakmicarskaKategorija takmicarskaKategorija)
{
// TODO: Kod u ovom metodu je prekopiran iz Designer.cs fajla. Proveri
// da li je u Designer.cs fajlu nesto menjano, i ako jeste promeni ovde.
TakmicariKategorijeUserControl takmicariKategorijeUserControl =
new TakmicariKategorijeUserControl();
takmicariKategorijeUserControl.Anchor = this.takmicariKategorijeUserControl1.Anchor;
takmicariKategorijeUserControl.Location = this.takmicariKategorijeUserControl1.Location;
takmicariKategorijeUserControl.Size = this.takmicariKategorijeUserControl1.Size;
takmicariKategorijeUserControl.TabIndex = this.takmicariKategorijeUserControl1.TabIndex;
takmicariKategorijeUserControl.DataGridViewUserControl
.GridColumnHeaderMouseClick +=
new EventHandler<GridColumnHeaderMouseClickEventArgs>(dataGridViewUserControl_GridColumnHeaderMouseClick);
tabPage.SuspendLayout(); // NOTE: ovo je obavezno, jer bez toga naredba
// tabPage.Controls.Add(takmicariKategorijeUserControl) pozicionira
// user controlu unutar taba pre nego sto je zavrsena inicijalizacija
// taba, i kao rezultat se dobija pogresna pozicija
tabPage.Controls.Add(takmicariKategorijeUserControl);
tabPage.Location = this.tabPage1.Location;
tabPage.Padding = this.tabPage1.Padding;
tabPage.Size = this.tabPage1.Size;
tabPage.TabIndex = i;
tabPage.Text = takmicarskaKategorija.ToString();
tabPage.UseVisualStyleBackColor = this.tabPage1.UseVisualStyleBackColor;
tabPage.ResumeLayout(false);
}
示例4: 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);
}
示例5: ExecutionEnded
void ExecutionEnded()
{
bool error = false;
int AffectedRecords = 0, ReadedRecords = 0, ResultsTables = 0, intaux;
List<string> ResultQueue = new List<string>();
List<TabPage> Pages = new List<TabPage>();
if (CurrentExecutionInfo.HasErrors())//evitar dobles terminos??!!
return;
//Instead of cleaning all the tabs, just clean those who arent locked
//TabHolder.TabPages.Clear();
if (TabHolder.TabCount > 0)
{
int tabCount = TabHolder.TabCount;
for (int i = tabCount - 1; i >= 0; i--)
{
if(TabHolder.TabPages[i].Name.Contains("_"))
{//results tab
if(!lockedTabs.Contains(TabHolder.TabPages[i].Name))
TabHolder.TabPages.RemoveAt(i);
}
else
{//messages tab
TabHolder.TabPages.RemoveAt(i);
}
}
}
TabHolder.SuspendLayout();
#region First we must add the results tab
if (Executor.Results != null && Executor.Results.Tables != null && Executor.Results.Tables.Count > 0)
{
int index = 0;
foreach (DataTable Table in Executor.Results.Tables)
{
if (Table.TableName.StartsWith("NonQuery", StringComparison.CurrentCultureIgnoreCase))
{
ResultQueue.Add(String.Format("Affected Records: {0}", Table.Rows[0][0].ToString()));
if (int.TryParse(Table.Rows[0][0].ToString(), out intaux))
AffectedRecords += intaux;
}
else
{
TabPage TableTab = new TabPage();
index++;
HDesarrollo.Controles.Grid.SmartGrid Grid = new HDesarrollo.Controles.Grid.SmartGrid();
Grid.FilterBoxPosition = GridViewExtensions.FilterPosition.Off;
Grid.Dock = DockStyle.Fill;
TableTab.SuspendLayout();
TableTab.Controls.Add(Grid);
TableTab.ImageIndex = 0;
TableTab.Location = new System.Drawing.Point(4, 29);
TableTab.Name = "TTab_" + Guid.NewGuid().ToString(); //"TableTab_" + index.ToString();
TableTab.Padding = new System.Windows.Forms.Padding(3);
TableTab.Size = new System.Drawing.Size(900, 150);
TableTab.TabIndex = 0;
if(ResultNaming.Count >= index)
TableTab.Text = ResultNaming[index - 1];
else
TableTab.Text = "Result " + index.ToString();
TableTab.UseVisualStyleBackColor = true;
TableTab.ResumeLayout(false);
Grid.DataSource = Table;
if (Table != null)
ReadedRecords += Table.Rows.Count;
ResultsTables++;
Pages.Add(TableTab);
}
}
}
#endregion
#region then we add the data tabs
TabPage ResultsTab = new TabPage();
ListView MessageList = new ListView();
Label LabExecutionTime = new Label();
ResultsTab.SuspendLayout();
ColumnHeader MessageColumn1 = new ColumnHeader();
MessageColumn1.Text = "";
MessageColumn1.Width = Math.Max(this.Width, 750);
MessageList.Columns.AddRange(new ColumnHeader[] { MessageColumn1 });
MessageList.Dock = System.Windows.Forms.DockStyle.Fill;
MessageList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
MessageList.LargeImageList = TabIcons;
MessageList.Location = new System.Drawing.Point(3, 18);
MessageList.Name = "MessageList";
MessageList.Size = new System.Drawing.Size(894, 129);
MessageList.SmallImageList = TabIcons;
MessageList.TabIndex = 0;
MessageList.UseCompatibleStateImageBehavior = false;
MessageList.View = System.Windows.Forms.View.Details;
MessageList.MouseDoubleClick += DoubleClickedResultItem;
//.........这里部分代码省略.........
示例6: InitializeComponent
//.........这里部分代码省略.........
//
resources.ApplyResources(this.m_btnOK, "m_btnOK");
this.helpProvider1.SetHelpString(this.m_btnOK, resources.GetString("m_btnOK.HelpString"));
this.m_btnOK.Name = "m_btnOK";
this.helpProvider1.SetShowHelp(this.m_btnOK, ((bool)(resources.GetObject("m_btnOK.ShowHelp"))));
this.m_btnOK.Click += new System.EventHandler(this.m_btnOK_Click);
//
// m_tabControl
//
this.m_tabControl.Controls.Add(m_tpGeneral);
this.m_tabControl.Controls.Add(m_tpWritingSystems);
this.m_tabControl.Controls.Add(m_tpExternalLinks);
resources.ApplyResources(this.m_tabControl, "m_tabControl");
this.m_tabControl.Name = "m_tabControl";
this.m_tabControl.SelectedIndex = 0;
this.helpProvider1.SetShowHelp(this.m_tabControl, ((bool)(resources.GetObject("m_tabControl.ShowHelp"))));
//
// m_cmnuAddWs
//
this.m_cmnuAddWs.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.menuItem2});
this.m_cmnuAddWs.Name = "m_cmnuAddWs";
resources.ApplyResources(this.m_cmnuAddWs, "m_cmnuAddWs");
//
// menuItem2
//
this.menuItem2.Name = "menuItem2";
resources.ApplyResources(this.menuItem2, "menuItem2");
//
// m_wsMenuStrip
//
this.m_wsMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[]
{
this.m_modifyMenuItem,
this.m_hideMenuItem,
this.m_mergeMenuItem,
this.m_deleteMenuItem
});
this.m_wsMenuStrip.Name = "m_wsMenuStrip";
resources.ApplyResources(this.m_wsMenuStrip, "m_wsMenuStrip");
//
// m_modifyMenuItem
//
this.m_modifyMenuItem.Name = "m_modifyMenuItem";
resources.ApplyResources(this.m_modifyMenuItem, "m_modifyMenuItem");
this.m_modifyMenuItem.Click += new System.EventHandler(this.m_modifyMenuItem_Click);
//
// m_hideMenuItem
//
this.m_hideMenuItem.Name = "m_hideMenuItem";
resources.ApplyResources(this.m_hideMenuItem, "m_hideMenuItem");
this.m_hideMenuItem.Click += new System.EventHandler(this.m_hideMenuItem_Click);
//
// m_mergeMenuItem
//
this.m_mergeMenuItem.Name = "m_mergeMenuItem";
resources.ApplyResources(this.m_mergeMenuItem, "m_mergeMenuItem");
this.m_mergeMenuItem.Click += new System.EventHandler(this.m_mergeMenuItem_Click);
//
// m_deleteMenuItem
//
this.m_deleteMenuItem.Name = "m_deleteMenuItem";
resources.ApplyResources(this.m_deleteMenuItem, "m_deleteMenuItem");
this.m_deleteMenuItem.Click += new System.EventHandler(this.m_deleteMenuItem_Click);
//
// linkLbl_useDefaultFolder
//
resources.ApplyResources(this.linkLbl_useDefaultFolder, "linkLbl_useDefaultFolder");
this.linkLbl_useDefaultFolder.Name = "linkLbl_useDefaultFolder";
this.linkLbl_useDefaultFolder.TabStop = true;
this.linkLbl_useDefaultFolder.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLbl_useDefaultFolder_LinkClicked);
//
// FwProjPropertiesDlg
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = m_btnCancel;
this.Controls.Add(this.m_tabControl);
this.Controls.Add(m_btnCancel);
this.Controls.Add(m_btnHelp);
this.Controls.Add(this.m_btnOK);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.helpProvider1.SetHelpString(this, global::SIL.FieldWorks.FwCoreDlgs.FwCoreDlgs.kstidOpen);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FwProjPropertiesDlg";
this.helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp"))));
this.ShowInTaskbar = false;
m_tpGeneral.ResumeLayout(false);
m_tpGeneral.PerformLayout();
((System.ComponentModel.ISupportInitialize)(m_picLangProgFileBox)).EndInit();
m_tpWritingSystems.ResumeLayout(false);
m_tpWritingSystems.PerformLayout();
m_tpExternalLinks.ResumeLayout(false);
m_tpExternalLinks.PerformLayout();
this.m_tabControl.ResumeLayout(false);
this.m_cmnuAddWs.ResumeLayout(false);
this.m_wsMenuStrip.ResumeLayout(false);
this.ResumeLayout(false);
}
示例7: InitializeComponent
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent() {
panelMetadataFile = new Panel();
txtOutput = new TextBox();
tabControlMain = new TabControl();
cboMetadataFile = new ComboBox();
pageOutput = new TabPage();
pageTemplate = new TabPage();
tabControlMain.SuspendLayout();
pageOutput.SuspendLayout();
SuspendLayout();
//
// panelMetadataFile
//
panelMetadataFile.Dock = DockStyle.Fill;
panelMetadataFile.Location = new Point(0, 21);
panelMetadataFile.Name = "panelMetadataFile";
panelMetadataFile.Size = new Size(640, 465);
panelMetadataFile.TabIndex = 3;
//
// txtOutput
//
txtOutput.BackColor = SystemColors.Window;
txtOutput.Dock = DockStyle.Fill;
txtOutput.Font = new Font("Courier New", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
txtOutput.Location = new Point(0, 0);
txtOutput.Multiline = true;
txtOutput.Name = "txtOutput";
txtOutput.ReadOnly = true;
txtOutput.ScrollBars = ScrollBars.Both;
txtOutput.Size = new Size(640, 486);
txtOutput.TabIndex = 4;
txtOutput.Text = "";
txtOutput.WordWrap = false;
//
// tabControlMain
//
tabControlMain.Alignment = TabAlignment.Bottom;
tabControlMain.Controls.Add(pageTemplate);
tabControlMain.Controls.Add(pageOutput);
tabControlMain.Dock = DockStyle.Fill;
tabControlMain.Location = new Point(0, 0);
tabControlMain.Name = "tabControlMain";
tabControlMain.SelectedIndex = 0;
tabControlMain.Size = new Size(648, 512);
tabControlMain.TabIndex = 3;
//
// cboMetadataFile
//
cboMetadataFile.Dock = DockStyle.Top;
cboMetadataFile.DropDownStyle = ComboBoxStyle.DropDownList;
cboMetadataFile.Location = new Point(0, 0);
cboMetadataFile.Name = "cboMetadataFile";
cboMetadataFile.Size = new Size(640, 21);
cboMetadataFile.TabIndex = 2;
cboMetadataFile.SelectionChangeCommitted += new EventHandler(cboMetadataFile_SelectionChangeCommitted);
//
// pageOutput
//
pageOutput.Controls.Add(txtOutput);
pageOutput.Location = new Point(4, 4);
pageOutput.Name = "pageOutput";
pageOutput.Size = new Size(640, 486);
pageOutput.TabIndex = 0;
pageOutput.Text = "Preview Output";
//
// pageTemplate
//
pageTemplate.Location = new Point(4, 4);
pageTemplate.Name = "pageTemplate";
pageTemplate.Size = new Size(640, 486);
pageTemplate.TabIndex = 3;
pageTemplate.Text = "Template";
//
// CodeGenerationTemplateEditor
//
Controls.Add(tabControlMain);
Name = "CodeGenerationTemplateEditor";
Size = new Size(648, 512);
tabControlMain.ResumeLayout(false);
pageOutput.ResumeLayout(false);
ResumeLayout(false);
}
示例8: InitializeComponent
//.........这里部分代码省略.........
silverMonkeyFCTB1.IsReplaceMode = false;
silverMonkeyFCTB1.Language = FastColoredTextBoxNS.Language.SQL;
silverMonkeyFCTB1.LeftBracket = '(';
silverMonkeyFCTB1.Location = new Point(3, 3);
silverMonkeyFCTB1.Name = "silverMonkeyFCTB1";
silverMonkeyFCTB1.Paddings = new Padding(0);
silverMonkeyFCTB1.RightBracket = ')';
silverMonkeyFCTB1.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
silverMonkeyFCTB1.ServiceColors = ((ServiceColors)(resources.GetObject("silverMonkeyFCTB1.ServiceColors")));
silverMonkeyFCTB1.Size = new Size(532, 116);
silverMonkeyFCTB1.TabIndex = 0;
silverMonkeyFCTB1.Zoom = 100;
//
// SqlResultsListView
//
SqlResultsListView.Dock = DockStyle.Fill;
SqlResultsListView.FullRowSelect = true;
SqlResultsListView.GridLines = true;
SqlResultsListView.LabelEdit = true;
SqlResultsListView.LargeImageList = ToolBarImages;
SqlResultsListView.Location = new Point(0, 0);
SqlResultsListView.Name = "SqlResultsListView";
SqlResultsListView.Size = new Size(556, 171);
SqlResultsListView.TabIndex = 0;
SqlResultsListView.UseCompatibleStateImageBehavior = false;
SqlResultsListView.View = View.Details;
//
// tabControl1
//
tabControl1.Controls.Add(tabPage2);
tabControl1.Controls.Add(tabPage3);
tabControl1.Dock = DockStyle.Fill;
tabControl1.Location = new Point(0, 0);
tabControl1.Name = "tabControl1";
tabControl1.SelectedIndex = 0;
tabControl1.Size = new Size(280, 333);
tabControl1.TabIndex = 1;
//
// tabPage2
//
tabPage2.Controls.Add(DatabaseTreeView);
tabPage2.Location = new Point(4, 22);
tabPage2.Name = "tabPage2";
tabPage2.Padding = new Padding(3);
tabPage2.Size = new Size(272, 307);
tabPage2.TabIndex = 0;
tabPage2.Text = "Database";
tabPage2.UseVisualStyleBackColor = true;
//
// tabPage3
//
tabPage3.Location = new Point(4, 22);
tabPage3.Name = "tabPage3";
tabPage3.Padding = new Padding(3);
tabPage3.Size = new Size(272, 307);
tabPage3.TabIndex = 1;
tabPage3.Text = "Templates";
tabPage3.UseVisualStyleBackColor = true;
//
// DatabaseTreeView
//
DatabaseTreeView.Dock = DockStyle.Fill;
DatabaseTreeView.Location = new Point(3, 3);
DatabaseTreeView.Name = "DatabaseTreeView";
DatabaseTreeView.Size = new Size(266, 301);
DatabaseTreeView.TabIndex = 1;
DatabaseTreeView.MouseDown += new MouseEventHandler(DatabaseTreeView_MouseDown);
DatabaseTreeView.MouseDoubleClick += DatabaseTreeView_MouseDoubleClick;
DatabaseTreeView.AfterExpand += DatabaseTreeView_AfterExpand;
//
// frmExplorer
//
AutoScaleBaseSize = new Size(5, 13);
ClientSize = new Size(840, 383);
Controls.Add(splitContainer1);
Controls.Add(statusStrip1);
Controls.Add(toolBar1);
Icon = ((Icon)(resources.GetObject("$this.Icon")));
Menu = mainMenu1;
Name = "frmExplorer";
Text = "TSProjects: Data Monkey";
((ISupportInitialize)(sqlStatementTextBox)).EndInit();
statusStrip1.ResumeLayout(false);
statusStrip1.PerformLayout();
splitContainer1.Panel1.ResumeLayout(false);
splitContainer1.Panel2.ResumeLayout(false);
((ISupportInitialize)(splitContainer1)).EndInit();
splitContainer1.ResumeLayout(false);
splitContainer2.Panel1.ResumeLayout(false);
splitContainer2.Panel2.ResumeLayout(false);
((ISupportInitialize)(splitContainer2)).EndInit();
splitContainer2.ResumeLayout(false);
SQLAreaTabControl.ResumeLayout(false);
tabPage1.ResumeLayout(false);
((ISupportInitialize)(silverMonkeyFCTB1)).EndInit();
tabControl1.ResumeLayout(false);
tabPage2.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
}
示例9: initTab
private void initTab(TabPage tabPage, RasporedSudija raspored)
{
// TODO: Kod u ovom metodu je prekopiran iz Designer.cs fajla (plus ono
// sto sam dodao u createTab metodu). Proveri da li je u Designer.cs fajlu
// nesto menjano, i ako jeste promeni ovde.
SpravaGridGroupUserControl spravaGridGroupUserControl = new SpravaGridGroupUserControl();
spravaGridGroupUserControl.Location = USER_CONTROL_LOCATION;
spravaGridGroupUserControl.SpravaGridRightClick +=
new EventHandler<SpravaGridRightClickEventArgs>(spravaGridGroupUserControl1_SpravaGridRightClick);
//spravaGridGroupUserControl.Size = this.rasporedSudijaUserControl1.Size;
spravaGridGroupUserControl.init(raspored.Pol); // odredjuje i Size
foreach (SpravaGridUserControl c in spravaGridGroupUserControl.SpravaGridUserControls)
{
SudijskiOdborNaSpravi odbor = raspored.getOdbor(c.Sprava);
int odborId = odbor != null ? odbor.Id : 0;
GridColumnsInitializer.initRasporedSudija(odborId, c.DataGridViewUserControl);
c.DataGridViewUserControl.DataGridView.ColumnWidthChanged += new DataGridViewColumnEventHandler(DataGridView_ColumnWidthChanged);
}
spravaGridGroupUserControl.TabIndex = this.spravaGridGroupUserControl1.TabIndex;
tabPage.SuspendLayout();
tabPage.Controls.Add(spravaGridGroupUserControl);
tabPage.BackColor = this.tabPage1.BackColor;
tabPage.Location = this.tabPage1.Location;
tabPage.Padding = this.tabPage1.Padding;
tabPage.Size = this.tabPage1.Size;
//tabPage.TabIndex = rasporedi.IndexOf(raspored); // This property is not
// meaningful for this control.
tabPage.AutoScroll = true;
tabPage.AutoScrollMinSize = new Size(
spravaGridGroupUserControl.Right, spravaGridGroupUserControl.Bottom);
tabPage.AutoScrollMargin = new Size(spravaGridGroupUserControl.Location);
tabPage.Text = getTabText(raspored);
//tabPage.UseVisualStyleBackColor = this.tabPage1.UseVisualStyleBackColor;
tabPage.ResumeLayout(false);
}
示例10: InitializeComponent
//.........这里部分代码省略.........
// tpException
//
tpException.Controls.Add(txtExceptionDetails);
tpException.Location = new Point(4, 22);
tpException.Name = "tpException";
tpException.Size = new Size(386, 175);
tpException.TabIndex = 1;
tpException.Text = "Exception";
tpException.ToolTipText = "Displays detailed information about the error that occurred";
//
// tpGeneral
//
tpGeneral.Controls.Add(pictureBox);
tpGeneral.Controls.Add(txtExceptionMessage);
tpGeneral.Controls.Add(txtExceptionType);
tpGeneral.Controls.Add(lblExceptionType);
tpGeneral.Controls.Add(lblExceptionMessage);
tpGeneral.Controls.Add(lblGeneralMessage);
tpGeneral.Location = new Point(4, 22);
tpGeneral.Name = "tpGeneral";
tpGeneral.Size = new Size(386, 175);
tpGeneral.TabIndex = 0;
tpGeneral.Text = "General";
tpGeneral.ToolTipText = "Displays general information about the error that occurred";
//
// txtExceptionMessage
//
txtExceptionMessage.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
| AnchorStyles.Left)
| AnchorStyles.Right;
txtExceptionMessage.Location = new Point(77, 100);
txtExceptionMessage.Multiline = true;
txtExceptionMessage.Name = "txtExceptionMessage";
txtExceptionMessage.ReadOnly = true;
txtExceptionMessage.Size = new Size(306, 71);
txtExceptionMessage.TabIndex = 5;
//
// lblExceptionMessage
//
lblExceptionMessage.Location = new Point(15, 100);
lblExceptionMessage.Name = "lblExceptionMessage";
lblExceptionMessage.Size = new Size(56, 14);
lblExceptionMessage.TabIndex = 4;
lblExceptionMessage.Text = "Message";
//
// lblGeneralMessage
//
lblGeneralMessage.Anchor = (AnchorStyles.Top | AnchorStyles.Left)
| AnchorStyles.Right;
lblGeneralMessage.Location = new Point(77, 7);
lblGeneralMessage.Name = "lblGeneralMessage";
lblGeneralMessage.Size = new Size(306, 60);
lblGeneralMessage.TabIndex = 1;
lblGeneralMessage.Text = "An internal exception has occurred within Exception Reporter";
//
// tabControl
//
tabControl.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
| AnchorStyles.Left)
| AnchorStyles.Right;
tabControl.Controls.Add(tpGeneral);
tabControl.Controls.Add(tpException);
tabControl.HotTrack = true;
tabControl.Location = new Point(8, 7);
tabControl.Name = "tabControl";
tabControl.SelectedIndex = 0;
tabControl.ShowToolTips = true;
tabControl.Size = new Size(394, 201);
tabControl.TabIndex = 0;
//
// cmdOK
//
cmdOK.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
cmdOK.ImageAlign = ContentAlignment.MiddleLeft;
cmdOK.Location = new Point(320, 212);
cmdOK.Name = "cmdOK";
cmdOK.Size = new Size(80, 25);
cmdOK.TabIndex = 7;
cmdOK.Text = "OK";
//
// InternalExceptionView
//
AutoScaleBaseSize = new Size(5, 13);
ClientSize = new Size(407, 241);
Controls.Add(tabControl);
Controls.Add(cmdOK);
MaximizeBox = false;
MinimizeBox = false;
Name = "InternalExceptionView";
ShowInTaskbar = false;
StartPosition = FormStartPosition.CenterParent;
Text = "Exception Reporter: Problem Occurred";
((ISupportInitialize)(pictureBox)).EndInit();
tpException.ResumeLayout(false);
tpException.PerformLayout();
tpGeneral.ResumeLayout(false);
tpGeneral.PerformLayout();
tabControl.ResumeLayout(false);
ResumeLayout(false);
}
示例11: InitializeComponent
//.........这里部分代码省略.........
viewLandscape4.BackgroundImage = (Image)resources.GetObject("viewLandscape4.BackgroundImage");
viewLandscape4.BackgroundImageLayout = ImageLayout.Stretch;
viewLandscape4.Charge = 10;
viewLandscape4.Image = ViewLandscape.ImageSelection.Midday;
viewLandscape4.Location = new Point(6, 0x13);
viewLandscape4.MaximumSize = new Size(0x15f, 0x101);
viewLandscape4.Name = "viewLandscape4";
viewLandscape4.Size = new Size(0xd9, 0x9c);
viewLandscape4.TabIndex = 0x11;
viewLandscape4.Temperature = "25.0\x00b0C";
groupBoxLandscape2.Controls.Add(viewLandscape2);
groupBoxLandscape2.Enabled = false;
groupBoxLandscape2.Location = new Point(0xf2, 0x42);
groupBoxLandscape2.Name = "groupBoxLandscape2";
groupBoxLandscape2.Size = new Size(230, 0xb7);
groupBoxLandscape2.TabIndex = 0x16;
groupBoxLandscape2.TabStop = false;
groupBoxLandscape2.Text = "Node #2";
viewLandscape2.BackColor = Color.Transparent;
viewLandscape2.BackgroundImage = (Image)resources.GetObject("viewLandscape2.BackgroundImage");
viewLandscape2.BackgroundImageLayout = ImageLayout.Stretch;
viewLandscape2.Charge = 10;
viewLandscape2.Image = ViewLandscape.ImageSelection.Midday;
viewLandscape2.Location = new Point(6, 0x13);
viewLandscape2.MaximumSize = new Size(0x15f, 0x101);
viewLandscape2.Name = "viewLandscape2";
viewLandscape2.Size = new Size(0xd9, 0x9c);
viewLandscape2.TabIndex = 0x11;
viewLandscape2.Temperature = "25.0\x00b0C";
groupBoxLandscape3.Controls.Add(viewLandscape3);
groupBoxLandscape3.Enabled = false;
groupBoxLandscape3.Location = new Point(6, 0xff);
groupBoxLandscape3.Name = "groupBoxLandscape3";
groupBoxLandscape3.Size = new Size(230, 0xb7);
groupBoxLandscape3.TabIndex = 0x16;
groupBoxLandscape3.TabStop = false;
groupBoxLandscape3.Text = "Node #3";
viewLandscape3.BackColor = Color.Transparent;
viewLandscape3.BackgroundImage = (Image)resources.GetObject("viewLandscape3.BackgroundImage");
viewLandscape3.BackgroundImageLayout = ImageLayout.Stretch;
viewLandscape3.Charge = 10;
viewLandscape3.Image = ViewLandscape.ImageSelection.Midday;
viewLandscape3.Location = new Point(6, 0x13);
viewLandscape3.MaximumSize = new Size(0x15f, 0x101);
viewLandscape3.Name = "viewLandscape3";
viewLandscape3.Size = new Size(0xd9, 0x9c);
viewLandscape3.TabIndex = 0x11;
viewLandscape3.Temperature = "25.0\x00b0C";
groupBoxLandscape1.Controls.Add(viewLandscape1);
groupBoxLandscape1.Enabled = false;
groupBoxLandscape1.Location = new Point(6, 0x42);
groupBoxLandscape1.Name = "groupBoxLandscape1";
groupBoxLandscape1.Size = new Size(230, 0xb7);
groupBoxLandscape1.TabIndex = 0x15;
groupBoxLandscape1.TabStop = false;
groupBoxLandscape1.Text = "Node #1";
viewLandscape1.BackColor = Color.Transparent;
viewLandscape1.BackgroundImage = (Image)resources.GetObject("viewLandscape1.BackgroundImage");
viewLandscape1.BackgroundImageLayout = ImageLayout.Stretch;
viewLandscape1.Charge = 10;
viewLandscape1.Image = ViewLandscape.ImageSelection.Midday;
viewLandscape1.Location = new Point(6, 0x13);
viewLandscape1.MaximumSize = new Size(0x15f, 0x101);
viewLandscape1.Name = "viewLandscape1";
viewLandscape1.Size = new Size(0xd9, 0x9c);
viewLandscape1.TabIndex = 0x11;
viewLandscape1.Temperature = "25.0\x00b0C";
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = Color.White;
base.ClientSize = new Size(0x39e, 0x20c);
base.Controls.Add(groupBox2);
base.Controls.Add(tabControl1);
base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
base.Name = "EnergyHarvesting_Demo_CP";
Text = "Energy Harvesting Demo Application";
base.Load += new EventHandler(Harvesting_Demo_CP_Load);
base.Shown += new EventHandler(Harvesting_Demo_CP_Shown);
base.FormClosing += new FormClosingEventHandler(Harvesting_Demo_CP_FormClosing);
tabControl1.ResumeLayout(false);
tabPage1.ResumeLayout(false);
groupBox1.ResumeLayout(false);
groupBox5.ResumeLayout(false);
tabPage2.ResumeLayout(false);
tabPage3.ResumeLayout(false);
groupBoxNodeInfo4.ResumeLayout(false);
groupBoxNodeInfo4.PerformLayout();
groupBoxNodeInfo3.ResumeLayout(false);
groupBoxNodeInfo3.PerformLayout();
groupBoxNodeInfo2.ResumeLayout(false);
groupBoxNodeInfo2.PerformLayout();
groupBoxNodeInfo1.ResumeLayout(false);
groupBoxNodeInfo1.PerformLayout();
groupBox2.ResumeLayout(false);
groupBoxLandscape4.ResumeLayout(false);
groupBoxLandscape2.ResumeLayout(false);
groupBoxLandscape3.ResumeLayout(false);
groupBoxLandscape1.ResumeLayout(false);
base.ResumeLayout(false);
}
示例12: AddNewTab
//.........这里部分代码省略.........
cmbLang.Items.Add("pl");
cmbLang.Items.Add("pt");
cmbLang.Items.Add("ru");
cmbLang.Items.Add("es");
cmbLang.Items.Add("sv");
cmbLang.Items.Add("th");
if (_statuses.ContainsTab(tabName)) cmbLang.Text = _statuses.Tabs[tabName].SearchLang;
lbl.Text = "Search(C-S-f)";
lbl.Name = "label1";
lbl.Dock = DockStyle.Left;
lbl.Width = 90;
lbl.Height = cmb.Height;
lbl.TextAlign = ContentAlignment.MiddleLeft;
btn.Text = "Search";
btn.Name = "buttonSearch";
btn.UseVisualStyleBackColor = true;
btn.Dock = DockStyle.Right;
btn.TabStop = false;
btn.Click += SearchButton_Click;
}
this.ListTab.Controls.Add(_tabPage);
_tabPage.Controls.Add(_listCustom);
if (tabType == MyCommon.TabUsageType.PublicSearch) _tabPage.Controls.Add(pnl);
if (tabType == MyCommon.TabUsageType.UserTimeline || tabType == MyCommon.TabUsageType.Lists) _tabPage.Controls.Add(label);
_tabPage.Location = new Point(4, 4);
_tabPage.Name = "CTab" + cnt.ToString();
_tabPage.Size = new Size(380, 260);
_tabPage.TabIndex = 2 + cnt;
_tabPage.Text = tabName;
_tabPage.UseVisualStyleBackColor = true;
_listCustom.AllowColumnReorder = true;
_listCustom.ContextMenuStrip = this.ContextMenuOperate;
_listCustom.Dock = DockStyle.Fill;
_listCustom.FullRowSelect = true;
_listCustom.HideSelection = false;
_listCustom.Location = new Point(0, 0);
_listCustom.Margin = new Padding(0);
_listCustom.Name = "CList" + Environment.TickCount.ToString();
_listCustom.ShowItemToolTips = true;
_listCustom.Size = new Size(380, 260);
_listCustom.UseCompatibleStateImageBehavior = false;
_listCustom.View = View.Details;
_listCustom.OwnerDraw = true;
_listCustom.VirtualMode = true;
_listCustom.Font = _fntReaded;
_listCustom.BackColor = _clListBackcolor;
_listCustom.GridLines = SettingDialog.ShowGrid;
_listCustom.AllowDrop = true;
_listCustom.SmallImageList = new ImageList();
if (_iconSz > 0)
{
// ディスプレイの DPI 設定を考慮したサイズを設定する
_listCustom.SmallImageList.ImageSize = new Size(
(int)Math.Ceiling(this._iconSz * this.currentScaleFactor.Width),
(int)Math.Ceiling(this._iconSz * this.currentScaleFactor.Height));
}
else
{
_listCustom.SmallImageList.ImageSize = new Size(1, 1);
}
InitColumns(_listCustom, startup);
_listCustom.SelectedIndexChanged += MyList_SelectedIndexChanged;
_listCustom.MouseDoubleClick += MyList_MouseDoubleClick;
_listCustom.ColumnClick += MyList_ColumnClick;
_listCustom.DrawColumnHeader += MyList_DrawColumnHeader;
_listCustom.DragDrop += TweenMain_DragDrop;
_listCustom.DragOver += TweenMain_DragOver;
_listCustom.DrawItem += MyList_DrawItem;
_listCustom.MouseClick += MyList_MouseClick;
_listCustom.ColumnReordered += MyList_ColumnReordered;
_listCustom.ColumnWidthChanged += MyList_ColumnWidthChanged;
_listCustom.CacheVirtualItems += MyList_CacheVirtualItems;
_listCustom.RetrieveVirtualItem += MyList_RetrieveVirtualItem;
_listCustom.DrawSubItem += MyList_DrawSubItem;
_listCustom.HScrolled += MyList_HScrolled;
if (tabType == MyCommon.TabUsageType.PublicSearch) pnl.ResumeLayout(false);
_tabPage.ResumeLayout(false);
this.SplitContainer1.Panel1.ResumeLayout(false);
this.SplitContainer1.Panel2.ResumeLayout(false);
this.SplitContainer1.ResumeLayout(false);
this.ListTab.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
_listCustom.EndUpdate();
_tabPage.Tag = _listCustom;
return true;
}
示例13: GenerateGB
//.........这里部分代码省略.........
Column_income_volume,
Column_income_comment});
dataGridView_income.MultiSelect = false;
//
// button_saveincome
//
button_saveincome.Location = new System.Drawing.Point(630, 166);
button_saveincome.Name = "button_saveincome";
button_saveincome.Size = new System.Drawing.Size(75, 23);
button_saveincome.TabIndex = 33;
button_saveincome.Text = "保存";
button_saveincome.UseVisualStyleBackColor = true;
//
// label26
//
label26.AutoSize = true;
label26.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
label26.Location = new System.Drawing.Point(18, 25);
label26.Name = "label26";
label26.Size = new System.Drawing.Size(84, 12);
label26.TabIndex = 32;
label26.Text = "本月收入(万)";
//
// numericUpDown_income
//
numericUpDown_income.Location = new System.Drawing.Point(20, 40);
numericUpDown_income.Name = "numericUpDown_income";
numericUpDown_income.Enabled = false;
numericUpDown_income.Size = new System.Drawing.Size(87, 21);
numericUpDown_income.TabIndex = 31;
numericUpDown_income.TextAlign = HorizontalAlignment.Center;
numericUpDown_income.InterceptArrowKeys = false;
numericUpDown_income.Maximum = 100000;
numericUpDown_income.DecimalPlaces = 2;
//
// contextMenuStrip1
//
contextMenuStrip1.Items.AddRange(new ToolStripItem[] {
ToolStripMenuItem_delete});
contextMenuStrip1.Name = "contextMenuStrip1";
contextMenuStrip1.Size = new Size(153, 48);
//
// ToolStripMenuItem_delete
//
ToolStripMenuItem_delete.Name = "ToolStripMenuItem_delete";
ToolStripMenuItem_delete.Size = new Size(152, 22);
ToolStripMenuItem_delete.Text = "删除";
contextMenuStrip1.ResumeLayout(false);
GB.ResumeLayout(false);
tabControl_month.ResumeLayout(false);
tabPage_cash.ResumeLayout(false);
tabPage_cash.PerformLayout();
groupbox_cash.ResumeLayout(false);
groupbox_cash.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_volume)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_rate)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_cash)).EndInit();
tabPage_invest.ResumeLayout(false);
tabPage_invest.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_invest)).EndInit();
groupBox_invest.ResumeLayout(false);
groupBox_invest.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_volumeinvest)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_rateinvest)).EndInit();
tabPage_debt.ResumeLayout(false);
tabPage_debt.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_debt)).EndInit();
groupBox_debt.ResumeLayout(false);
groupBox_debt.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_volumedebt)).EndInit();
tabPage_payout.ResumeLayout(false);
tabPage_payout.PerformLayout();
((System.ComponentModel.ISupportInitialize)(dataGridView_payout)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_payout)).EndInit();
tabPage_income.ResumeLayout(false);
tabPage_income.PerformLayout();
((System.ComponentModel.ISupportInitialize)(dataGridView_income)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_income)).EndInit();
ResumeLayout(false);
ToolStripMenuItem_delete.Click += new EventHandler(ToolStripMenuItem_delete_Click);
dataGridView_payout.CellMouseDown += new DataGridViewCellMouseEventHandler(dataGridView_CellMouseDown);
dataGridView_income.CellMouseDown += new DataGridViewCellMouseEventHandler(dataGridView_CellMouseDown);
button_new.Click += new EventHandler(button_new_Click);
button_save.Click += new EventHandler(button_save_Click);
listBox_invest.MouseDoubleClick += new MouseEventHandler(listBox_invent_MouseDoubleClick);
button_stopinvest.Click += new EventHandler(button_stopinvest_Click);
button_updateinvest.Click += new EventHandler(button_updateinvest_Click);
listBox_debt.MouseDoubleClick += new MouseEventHandler(listBox_debt_MouseDoubleClick);
button_newdebt.Click += new EventHandler(button_newdebt_Click);
button_stopdebt.Click += new EventHandler(button_stopdebt_Click);
button_updatedebt.Click += new EventHandler(button_updatedebt_Click);
button_savepayout.Click += new EventHandler(button_savepayout_Click);
button_saveincome.Click += new EventHandler(button_saveincome_Click);
}
示例14: LoadUpdateHubsTabComponents
//.........这里部分代码省略.........
//
this.checkBoxUpdateHubsOtherAll.AutoSize = false;
this.checkBoxUpdateHubsOtherAll.Dock = System.Windows.Forms.DockStyle.Fill;
//this.checkBoxUpdateHubsOtherAll.Location = new System.Drawing.Point(3, 144);
this.checkBoxUpdateHubsOtherAll.Name = "checkBoxUpdateHubsOtherAll";
//this.checkBoxUpdateHubsOtherAll.Size = new System.Drawing.Size(106, 20);
this.checkBoxUpdateHubsOtherAll.TabIndex = 10;
this.checkBoxUpdateHubsOtherAll.Text = "All";
this.checkBoxUpdateHubsOtherAll.UseVisualStyleBackColor = true;
this.checkBoxUpdateHubsOtherAll.CheckedChanged += new System.EventHandler(this.checkBoxUpdateHubsOtherAll_CheckedChanged);
this.checkBoxUpdateHubsOtherAll.Margin = new Padding(0);
//
// labelUpdateHubsOtherWhatsNew
//
this.labelUpdateHubsOtherWhatsNew.AutoSize = false;
this.labelUpdateHubsOtherWhatsNew.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelUpdateHubsOtherWhatsNew.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
//this.labelUpdateHubsOtherWhatsNew.Location = new System.Drawing.Point(352, 141);
this.labelUpdateHubsOtherWhatsNew.Name = "labelUpdateHubsOtherWhatsNew";
//this.labelUpdateHubsOtherWhatsNew.Size = new System.Drawing.Size(246, 26);
this.labelUpdateHubsOtherWhatsNew.TabIndex = 11;
this.labelUpdateHubsOtherWhatsNew.Text = "What\'s New?";
this.labelUpdateHubsOtherWhatsNew.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labelUpdateHubsOtherWhatsNew.Margin = new Padding(0);
//
// buttonUpdateHubsOther
//
//this.buttonUpdateHubsOther.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
//| System.Windows.Forms.AnchorStyles.Right)));
this.buttonUpdateHubsOther.AutoSize = false;
this.buttonUpdateHubsOther.Dock = System.Windows.Forms.DockStyle.Fill;
//this.buttonUpdateHubsOther.Location = new System.Drawing.Point(3, 372);
this.buttonUpdateHubsOther.Name = "buttonUpdateHubsOther";
//this.buttonUpdateHubsOther.Size = new System.Drawing.Size(106, 23);
this.buttonUpdateHubsOther.TabIndex = 1;
this.buttonUpdateHubsOther.Text = "Update ";
this.buttonUpdateHubsOther.UseVisualStyleBackColor = true;
this.buttonUpdateHubsOther.Click += new System.EventHandler(this.buttonUpdateHubsOther_Click);
this.buttonUpdateHubsOther.Margin = new Padding(0);
// add some of the non-dyamic components to the layout panel
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.tableLayoutPanelUpdateHubs.Controls.Add(this.labelUpdateHubsOrgID, 0, currentRow);
this.tableLayoutPanelUpdateHubs.Controls.Add(this.comboBoxUpdateHubsOrgID, 1, currentRow++);
this.tableLayoutPanelUpdateHubs.SetColumnSpan(this.comboBoxUpdateHubsOrgID, 2);
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.tableLayoutPanelUpdateHubs.Controls.Add(this.labelUpdateHubsStudyID, 0, currentRow);
this.tableLayoutPanelUpdateHubs.Controls.Add(this.comboBoxUpdateHubsStudyID, 1, currentRow++);
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.tableLayoutPanelUpdateHubs.SetColumnSpan(this.comboBoxUpdateHubsStudyID, 2);
this.tableLayoutPanelUpdateHubs.Controls.Add(this.labelUpdateHubsPlatformUpdate, 0, currentRow++);
this.tableLayoutPanelUpdateHubs.SetColumnSpan(this.labelUpdateHubsPlatformUpdate, 6);
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.tableLayoutPanelUpdateHubs.Controls.Add(this.labelUpdateHubsPlatformDeployed, 1, currentRow);
this.tableLayoutPanelUpdateHubs.Controls.Add(this.labelUpdateHubsPlatformCurrent, 2, currentRow++);
// create and initialize the dynamic components - platform update rows
this.HubPlatUpdatePanelList = new List<HubPlatUpdatePanelRowItem>();
for (int i = 0; i < platHubUpdates; ++i)
{
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.HubPlatUpdatePanelList.Add(new HubPlatUpdatePanelRowItem(this.tableLayoutPanelUpdateHubs, currentRow++, "Hub " + i.ToString(), "0.0.0.1", "1.0.0.0"));
}
// add some more of the non dynamic components of the layout
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.tableLayoutPanelUpdateHubs.Controls.Add(this.labelUpdateHubsOtherUpdates, 0, currentRow++);
this.tableLayoutPanelUpdateHubs.SetColumnSpan(this.labelUpdateHubsOtherUpdates, 6);
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.tableLayoutPanelUpdateHubs.Controls.Add(this.checkBoxUpdateHubsOtherAll, 0, currentRow);
this.tableLayoutPanelUpdateHubs.Controls.Add(this.labelUpdateHubsOtherWhatsNew, 3, currentRow++);
this.tableLayoutPanelUpdateHubs.SetColumnSpan(this.labelUpdateHubsOtherWhatsNew, 3);
// create and initialize the dynamic components - Other update rows
this.HubOtherUpdatePanelList = new List<HubOtherUpdatePanelRowItem>();
for (int i = 0; i < otherHubUpdates; ++i)
{
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.HubOtherUpdatePanelList.Add(new HubOtherUpdatePanelRowItem(this.tableLayoutPanelUpdateHubs, currentRow++, "Hub " + i.ToString(), true, true, true));
}
// add the Update button component add the bottom
this.tableLayoutPanelUpdateHubs.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
this.tableLayoutPanelUpdateHubs.Controls.Add(this.buttonUpdateHubsOther, 0, currentRow);
Debug.Assert(currentRow == rowCount-1);
// resume layout
tabUpdateHubs.ResumeLayout(false);
this.tableLayoutPanelUpdateHubs.ResumeLayout(false);
this.tableLayoutPanelUpdateHubs.PerformLayout();
}
示例15: ShowTabPage
private void ShowTabPage(TreeNode node)
{
TestSuiteFileEntry fileEntry = null;
if ((null == node) || (null == (fileEntry = node.Tag as TestSuiteFileEntry)))
return;
mnuFileClose.Enabled = true;
if (this.tcFiles.Controls.ContainsKey(fileEntry.FileName))
{
//System.Windows.Forms.TabPage tabPage1 = (System.Windows.Forms.TabPage)this.tcFiles.Controls[fileEntry.FileName];
tcFiles.SelectTab(fileEntry.FileName);
return;
}
//txtFile.Clear();
// this.Text = Application.ProductName + " - " + _testSuite.Name + ": " + fileEntry.Name;
// _cmdOpenTestSuiteFile.Execute(fileEntry.FileName);
System.Windows.Forms.TextBox textBox = new System.Windows.Forms.TextBox();
System.Windows.Forms.TabPage tabPage = new System.Windows.Forms.TabPage();
this.tcFiles.SuspendLayout();
tabPage.SuspendLayout();
//
// tcFiles
//
this.tcFiles.Controls.Add(tabPage);
//
// tabPage
//
tabPage.Controls.Add(textBox);
tabPage.Location = new System.Drawing.Point(4, 22);
tabPage.Name = fileEntry.FileName;
tabPage.Padding = new System.Windows.Forms.Padding(3);
tabPage.Size = new System.Drawing.Size(430, 249);
tabPage.TabIndex = 0;
tabPage.UseVisualStyleBackColor = true;
tabPage.Tag = node.Tag;
//
// textBox
//
textBox.Dock = System.Windows.Forms.DockStyle.Fill;
textBox.Font = new System.Drawing.Font("Courier New", 11.25F);
textBox.Location = new System.Drawing.Point(3, 3);
textBox.Multiline = true;
textBox.Name = "textBox1";
textBox.Size = new System.Drawing.Size(424, 243);
textBox.TabIndex = 0;
textBox.TextChanged += new System.EventHandler(this.tcFiles_TextChanged);
textBox.Tag = node.Tag;
using (StreamReader sr = new StreamReader(fileEntry.FileName, Encoding.ASCII))
{
textBox.Text = sr.ReadToEnd();
textBox.SelectionStart = 0;
textBox.SelectionLength = 0;
sr.Close();
}
tabPage.Text = fileEntry.Name;
this.tcFiles.ResumeLayout(false);
tabPage.ResumeLayout(false);
tabPage.PerformLayout();
tcFiles.SelectTab(fileEntry.FileName);
tcFiles.Visible = true;
fileEntry.Changed = false;
DetermineSaveMenuState();
}