本文整理汇总了C#中System.Windows.Forms.TableLayoutPanel.SuspendLayout方法的典型用法代码示例。如果您正苦于以下问题:C# TableLayoutPanel.SuspendLayout方法的具体用法?C# TableLayoutPanel.SuspendLayout怎么用?C# TableLayoutPanel.SuspendLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.TableLayoutPanel
的用法示例。
在下文中一共展示了TableLayoutPanel.SuspendLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(AutoRefreshOptionControl));
PropertyValue value2 = new PropertyValue();
this.lblSlowVolumeAutoRefresh = new Label();
this.cmbSlowVolumeAutoRefresh = new ComboBoxEx();
this.ValuesWatcher = new PropertyValuesWatcher();
TableLayoutPanel panel = new TableLayoutPanel();
panel.SuspendLayout();
((ISupportInitialize) this.ValuesWatcher).BeginInit();
base.SuspendLayout();
manager.ApplyResources(panel, "tlpBack");
panel.Controls.Add(this.lblSlowVolumeAutoRefresh, 0, 0);
panel.Controls.Add(this.cmbSlowVolumeAutoRefresh, 1, 0);
panel.Name = "tlpBack";
manager.ApplyResources(this.lblSlowVolumeAutoRefresh, "lblSlowVolumeAutoRefresh");
this.lblSlowVolumeAutoRefresh.Name = "lblSlowVolumeAutoRefresh";
manager.ApplyResources(this.cmbSlowVolumeAutoRefresh, "cmbSlowVolumeAutoRefresh");
this.cmbSlowVolumeAutoRefresh.DropDownStyle = ComboBoxStyle.DropDownList;
this.cmbSlowVolumeAutoRefresh.FormattingEnabled = true;
this.cmbSlowVolumeAutoRefresh.MinimumSize = new Size(110, 0);
this.cmbSlowVolumeAutoRefresh.Name = "cmbSlowVolumeAutoRefresh";
value2.DataObject = this.cmbSlowVolumeAutoRefresh;
value2.PropertyName = "SelectedIndex";
this.ValuesWatcher.Items.AddRange(new PropertyValue[] { value2 });
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.Controls.Add(panel);
base.Name = "AutoRefreshOptionControl";
panel.ResumeLayout(false);
panel.PerformLayout();
((ISupportInitialize) this.ValuesWatcher).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}
示例2: InitializeOptionsTable
/// <summary>
/// Initializes the options table
/// </summary>
/// <param name="settingsTable">Table</param>
/// <param name="isPluginOptions">Whether the options are global options</param>
public static void InitializeOptionsTable(TableLayoutPanel settingsTable, bool isPluginOptions)
{
int columnCount = isPluginOptions ? 3 : 4;
settingsTable.SuspendLayout();
try
{
// Set Columns
settingsTable.ColumnCount = columnCount;
settingsTable.ColumnStyles.Clear();
settingsTable.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
settingsTable.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
settingsTable.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
if (!isPluginOptions)
{
settingsTable.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
}
// Rows
settingsTable.RowCount = 0;
settingsTable.Controls.Clear();
}
finally
{
settingsTable.ResumeLayout(true);
}
// Hook Resize event
settingsTable.Resize += (s, e) => ResizeEditorControls(settingsTable);
}
示例3: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(DialogFontOptionControl));
this.chkChangeFont = new CheckBox();
this.cmbFontSize = new ComboBox();
this.lblFontSize = new Label();
this.lblFontFamily = new Label();
this.cmbFontFamily = new ComboBox();
TableLayoutPanel panel = new TableLayoutPanel();
panel.SuspendLayout();
base.SuspendLayout();
manager.ApplyResources(panel, "tlpBack");
panel.Controls.Add(this.chkChangeFont, 0, 0);
panel.Controls.Add(this.cmbFontSize, 2, 2);
panel.Controls.Add(this.lblFontSize, 1, 2);
panel.Controls.Add(this.lblFontFamily, 1, 1);
panel.Controls.Add(this.cmbFontFamily, 2, 1);
panel.Name = "tlpBack";
manager.ApplyResources(this.chkChangeFont, "chkChangeFont");
panel.SetColumnSpan(this.chkChangeFont, 3);
this.chkChangeFont.Name = "chkChangeFont";
this.chkChangeFont.UseVisualStyleBackColor = true;
this.chkChangeFont.CheckedChanged += new EventHandler(this.chkChangeFont_CheckedChanged);
manager.ApplyResources(this.cmbFontSize, "cmbFontSize");
this.cmbFontSize.FormattingEnabled = true;
this.cmbFontSize.Items.AddRange(new object[] { manager.GetString("cmbFontSize.Items"), manager.GetString("cmbFontSize.Items1"), manager.GetString("cmbFontSize.Items2"), manager.GetString("cmbFontSize.Items3"), manager.GetString("cmbFontSize.Items4"), manager.GetString("cmbFontSize.Items5"), manager.GetString("cmbFontSize.Items6"), manager.GetString("cmbFontSize.Items7"), manager.GetString("cmbFontSize.Items8"), manager.GetString("cmbFontSize.Items9"), manager.GetString("cmbFontSize.Items10") });
this.cmbFontSize.Name = "cmbFontSize";
this.cmbFontSize.Leave += new EventHandler(this.cmbFontSize_Leave);
this.cmbFontSize.Enter += new EventHandler(this.cmbFontSize_Enter);
manager.ApplyResources(this.lblFontSize, "lblFontSize");
this.lblFontSize.Name = "lblFontSize";
manager.ApplyResources(this.lblFontFamily, "lblFontFamily");
this.lblFontFamily.Name = "lblFontFamily";
this.cmbFontFamily.AutoCompleteMode = AutoCompleteMode.Append;
this.cmbFontFamily.AutoCompleteSource = AutoCompleteSource.ListItems;
this.cmbFontFamily.DisplayMember = "Name";
manager.ApplyResources(this.cmbFontFamily, "cmbFontFamily");
this.cmbFontFamily.Name = "cmbFontFamily";
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.Controls.Add(panel);
base.Name = "DialogFontOptionControl";
panel.ResumeLayout(false);
panel.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
示例4: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(HiddenItemsOptionControl));
PropertyValue value2 = new PropertyValue();
PropertyValue value3 = new PropertyValue();
PropertyValue value4 = new PropertyValue();
this.chkHideSysHidItems = new CheckBox();
this.chkUseHiddenItemsList = new CheckBox();
this.txtHiddenItemsList = new TextBox();
this.ValuesWatcher = new PropertyValuesWatcher();
TableLayoutPanel panel = new TableLayoutPanel();
((ISupportInitialize) this.ValuesWatcher).BeginInit();
panel.SuspendLayout();
base.SuspendLayout();
manager.ApplyResources(this.chkHideSysHidItems, "chkHideSysHidItems");
this.chkHideSysHidItems.Name = "chkHideSysHidItems";
this.chkHideSysHidItems.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkUseHiddenItemsList, "chkUseHiddenItemsList");
this.chkUseHiddenItemsList.Name = "chkUseHiddenItemsList";
this.chkUseHiddenItemsList.UseVisualStyleBackColor = true;
this.chkUseHiddenItemsList.CheckedChanged += new EventHandler(this.chkUseHiddenItemsList_CheckedChanged);
this.txtHiddenItemsList.AcceptsReturn = true;
manager.ApplyResources(this.txtHiddenItemsList, "txtHiddenItemsList");
this.txtHiddenItemsList.Name = "txtHiddenItemsList";
value2.DataObject = this.chkHideSysHidItems;
value2.PropertyName = "Checked";
value3.DataObject = this.chkUseHiddenItemsList;
value3.PropertyName = "Checked";
value4.DataObject = this.txtHiddenItemsList;
value4.PropertyName = "Text";
this.ValuesWatcher.Items.AddRange(new PropertyValue[] { value2, value3, value4 });
manager.ApplyResources(panel, "tlpBack");
panel.Controls.Add(this.chkHideSysHidItems, 0, 0);
panel.Controls.Add(this.chkUseHiddenItemsList, 0, 1);
panel.Name = "tlpBack";
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.Controls.Add(this.txtHiddenItemsList);
base.Controls.Add(panel);
base.Name = "HiddenItemsOptionControl";
((ISupportInitialize) this.ValuesWatcher).EndInit();
panel.ResumeLayout(false);
panel.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
示例5: Generic
public Generic (string title)
{
this.SuspendLayout ();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.ControlBox = true;
this.MinimizeBox = false;
this.MaximizeBox = false;
this.ShowInTaskbar = (Owner == null);
this.FormBorderStyle = FormBorderStyle.FixedDialog;
table = new TableLayoutPanel ();
table.SuspendLayout ();
table.AutoSize = true;
this.Controls.Add (table);
this.Text = title;
}
示例6: AddNewTableRow
void AddNewTableRow(int row, TableLayoutPanel targetPanel)
{
targetPanel.SuspendLayout();
Label newLblNumber = new Label();
TextBox newTxtName = new TextBox();
NumericUpDown newAmountInput = new NumericUpDown();
Button newBtnUp = new Button();
Button newBtnDown = new Button();
Button newBtnDelete = new Button();
newLblNumber.AutoSize = true;
newBtnUp.Text = "︽";
newBtnDown.Text = "︾";
newBtnDelete.Text = "-";
newBtnUp.Click += service_MoveUp_Click;
newBtnDown.Click += service_MoveDown_Click;
newBtnDelete.Click += service_DeleteRow_Click;
newBtnUp.Width = newBtnDown.Width = newBtnDelete.Width = 50;
newBtnUp.TabStop = newBtnDown.TabStop = newBtnDelete.TabStop = false;
newTxtName.TextChanged += service_TextChange;
newTxtName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
newAmountInput.Maximum = decimal.MaxValue;
newAmountInput.Increment = (targetPanel == tblPanelService ? 100 : 10);
newAmountInput.ThousandsSeparator = true;
newAmountInput.BackColor = Color.LightYellow;
newAmountInput.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
newAmountInput.ValueChanged += service_TextChange;
Control[] newRow = { newLblNumber, newTxtName, newAmountInput, newBtnUp, newBtnDown, newBtnDelete };
for (int i = 0; i < newRow.Length; i++)
targetPanel.Controls.Add(newRow[i], i, row);
targetPanel.RowCount++;
LayoutNumber(targetPanel);
targetPanel.ResumeLayout();
}
示例7: DontCallResumeLayout
[Test] // bug #82041
public void DontCallResumeLayout ()
{
Form form = new Form ();
form.ShowInTaskbar = false;
TableLayoutPanel tableLayoutPanel = new TableLayoutPanel ();
form.Controls.Add (tableLayoutPanel);
tableLayoutPanel.SuspendLayout ();
tableLayoutPanel.ColumnCount = 3;
tableLayoutPanel.Dock = DockStyle.Fill;
tableLayoutPanel.RowCount = 11;
tableLayoutPanel.Controls.Add (new Button ());
form.Show ();
form.Refresh ();
form.Dispose ();
}
示例8: Bug81936
public void Bug81936 ()
{
Form f = new Form ();
f.ShowInTaskbar = false;
TableLayoutPanel tableLayoutPanel1;
Label button2;
Label button4;
tableLayoutPanel1 = new TableLayoutPanel ();
button2 = new Label ();
button4 = new Label ();
button2.Text = "Test1";
button4.Text = "Test2";
button2.Anchor = AnchorStyles.Left;
button4.Anchor = AnchorStyles.Left;
button2.Height = 14;
button4.Height = 14;
tableLayoutPanel1.SuspendLayout ();
f.SuspendLayout ();
tableLayoutPanel1.ColumnCount = 1;
tableLayoutPanel1.ColumnStyles.Add (new ColumnStyle ());
tableLayoutPanel1.Controls.Add (button2, 0, 0);
tableLayoutPanel1.Controls.Add (button4, 0, 1);
tableLayoutPanel1.Location = new Point (0, 0);
tableLayoutPanel1.RowCount = 2;
tableLayoutPanel1.RowStyles.Add (new RowStyle (SizeType.Absolute, 28F));
tableLayoutPanel1.RowStyles.Add (new RowStyle (SizeType.Absolute, 28F));
tableLayoutPanel1.Size = new Size (292, 56);
f.ClientSize = new Size (292, 312);
f.Controls.Add (tableLayoutPanel1);
f.Name = "Form1";
f.Text = "Form1";
tableLayoutPanel1.ResumeLayout (false);
tableLayoutPanel1.PerformLayout ();
f.ResumeLayout (false);
f.PerformLayout ();
f.Show ();
Assert.AreEqual (new Rectangle (3, 7, 100, 14), button2.Bounds, "A1");
Assert.AreEqual (new Rectangle (3, 35, 100, 14), button4.Bounds, "A2");
f.Dispose ();
}
示例9: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(BookmarkTabDialog));
this.txtHotkey = new HotKeyBox();
this.lblHotkey = new Label();
this.lblBookmarkName = new Label();
this.txtBookmarkName = new TextBox();
this.chkDoNotShowAgain = new CheckBox();
this.btnOk = new Button();
this.btnCancel = new Button();
this.Validator = new ValidatorProvider();
this.bvlButtons = new Bevel();
GroupBox box = new GroupBox();
TableLayoutPanel panel = new TableLayoutPanel();
TableLayoutPanel panel2 = new TableLayoutPanel();
TableLayoutPanel panel3 = new TableLayoutPanel();
box.SuspendLayout();
panel.SuspendLayout();
panel2.SuspendLayout();
panel3.SuspendLayout();
base.SuspendLayout();
manager.ApplyResources(box, "grpAdditional");
box.Controls.Add(panel);
box.Name = "grpAdditional";
box.TabStop = false;
manager.ApplyResources(panel, "tlpAdditional");
panel.Controls.Add(this.txtHotkey, 1, 0);
panel.Controls.Add(this.lblHotkey, 0, 0);
panel.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
panel.Name = "tlpAdditional";
manager.ApplyResources(this.txtHotkey, "txtHotkey");
this.txtHotkey.Name = "txtHotkey";
manager.ApplyResources(this.lblHotkey, "lblHotkey");
this.lblHotkey.Name = "lblHotkey";
manager.ApplyResources(panel2, "tlpBack");
panel2.Controls.Add(this.lblBookmarkName, 0, 0);
panel2.Controls.Add(this.txtBookmarkName, 0, 1);
panel2.Controls.Add(box, 0, 2);
panel2.Controls.Add(this.chkDoNotShowAgain, 0, 3);
panel2.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
panel2.Name = "tlpBack";
manager.ApplyResources(this.lblBookmarkName, "lblBookmarkName");
this.lblBookmarkName.Name = "lblBookmarkName";
manager.ApplyResources(this.txtBookmarkName, "txtBookmarkName");
this.txtBookmarkName.Name = "txtBookmarkName";
this.Validator.SetValidateOn(this.txtBookmarkName, ValidateOn.TextChanged);
this.txtBookmarkName.Validating += new CancelEventHandler(this.txtBookmarkName_Validating);
manager.ApplyResources(this.chkDoNotShowAgain, "chkDoNotShowAgain");
this.chkDoNotShowAgain.Name = "chkDoNotShowAgain";
this.chkDoNotShowAgain.UseVisualStyleBackColor = true;
manager.ApplyResources(panel3, "tlpButtons");
panel3.BackColor = Color.Gainsboro;
panel3.Controls.Add(this.btnOk, 1, 0);
panel3.Controls.Add(this.btnCancel, 2, 0);
panel3.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
panel3.Name = "tlpButtons";
this.btnOk.DialogResult = DialogResult.OK;
manager.ApplyResources(this.btnOk, "btnOk");
this.btnOk.Name = "btnOk";
this.btnOk.UseVisualStyleBackColor = true;
this.btnCancel.CausesValidation = false;
this.btnCancel.DialogResult = DialogResult.Cancel;
manager.ApplyResources(this.btnCancel, "btnCancel");
this.btnCancel.Name = "btnCancel";
this.btnCancel.UseVisualStyleBackColor = true;
this.Validator.Owner = this;
this.Validator.OwnerFormValidate = FormValidate.DisableAcceptButton;
manager.ApplyResources(this.bvlButtons, "bvlButtons");
this.bvlButtons.ForeColor = SystemColors.ControlDarkDark;
this.bvlButtons.Name = "bvlButtons";
this.bvlButtons.Sides = Border3DSide.Top;
this.bvlButtons.Style = Border3DStyle.Flat;
base.AcceptButton = this.btnOk;
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
this.AutoValidate = AutoValidate.EnableAllowFocusChange;
base.CancelButton = this.btnCancel;
base.Controls.Add(panel3);
base.Controls.Add(this.bvlButtons);
base.Controls.Add(panel2);
base.FormBorderStyle = FormBorderStyle.FixedDialog;
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "BookmarkTabDialog";
base.ShowInTaskbar = false;
box.ResumeLayout(false);
box.PerformLayout();
panel.ResumeLayout(false);
panel.PerformLayout();
panel2.ResumeLayout(false);
panel2.PerformLayout();
panel3.ResumeLayout(false);
base.ResumeLayout(false);
base.PerformLayout();
}
示例10: CreateTableForExtensionNodeProperties
private TableLayoutPanel CreateTableForExtensionNodeProperties()
{
var table = new TableLayoutPanel
{
AutoSize = true,
Dock = DockStyle.Top,
};
table.ColumnCount = 2;
table.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
table.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100));
table.SuspendLayout();
foreach (var propertyName in _node.PropertyNames)
{
table.RowCount++;
table.RowStyles.Add(new RowStyle(SizeType.AutoSize));
AddExtensionNodeProperties(table, propertyName);
}
table.ResumeLayout();
return table;
}
示例11: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.TableLayoutPanel mainTable;
System.Windows.Forms.TableLayoutPanel tableDirectories;
System.Windows.Forms.Label sourceLabel;
System.Windows.Forms.Label destinationListLabel;
System.Windows.Forms.FlowLayoutPanel destinationButtonsFlow;
System.Windows.Forms.Label defaultDestinationLabel;
System.Windows.Forms.GroupBox sortOptionsGroup;
System.Windows.Forms.FlowLayoutPanel sortOptionsFlow;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Settings));
System.Windows.Forms.GroupBox searchOptionsGroup;
System.Windows.Forms.FlowLayoutPanel searchOptionsFlow;
System.Windows.Forms.Button editOverwriteKeywordsButton;
System.Windows.Forms.GroupBox formatOptionsGroup;
System.Windows.Forms.TableLayoutPanel formatTable;
System.Windows.Forms.Label formatLabel;
System.Windows.Forms.FlowLayoutPanel flowBottomButtons;
this.groupDirectories = new System.Windows.Forms.GroupBox();
this.sourceText = new System.Windows.Forms.TextBox();
this.sourceBrowse = new System.Windows.Forms.Button();
this.destinationList = new System.Windows.Forms.ListBox();
this.addDestinationButton = new System.Windows.Forms.Button();
this.removeDestinationButton = new System.Windows.Forms.Button();
this.defaultDestinationDirectory = new System.Windows.Forms.ComboBox();
this.recurseSubdirectoriesCheck = new System.Windows.Forms.CheckBox();
this.deleteEmptyCheck = new System.Windows.Forms.CheckBox();
this.renameIfExistsCheck = new System.Windows.Forms.CheckBox();
this.addUnmatchedShowsCheck = new System.Windows.Forms.CheckBox();
this.unlockAndUpdateCheck = new System.Windows.Forms.CheckBox();
this.lockShowWithNoNewEpisodesCheck = new System.Windows.Forms.CheckBox();
this.regExButton = new System.Windows.Forms.Button();
this.fileExtensionsButton = new System.Windows.Forms.Button();
this.formatText = new System.Windows.Forms.TextBox();
this.formatBuilderButton = new System.Windows.Forms.Button();
this.revertButton = new System.Windows.Forms.Button();
this.saveButton = new System.Windows.Forms.Button();
this.folderDialog = new System.Windows.Forms.FolderBrowserDialog();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.label1 = new System.Windows.Forms.Label();
this.ignoreList = new System.Windows.Forms.ListBox();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.addIgnore_btn = new System.Windows.Forms.Button();
this.removeIgnore_btn = new System.Windows.Forms.Button();
mainTable = new System.Windows.Forms.TableLayoutPanel();
tableDirectories = new System.Windows.Forms.TableLayoutPanel();
sourceLabel = new System.Windows.Forms.Label();
destinationListLabel = new System.Windows.Forms.Label();
destinationButtonsFlow = new System.Windows.Forms.FlowLayoutPanel();
defaultDestinationLabel = new System.Windows.Forms.Label();
sortOptionsGroup = new System.Windows.Forms.GroupBox();
sortOptionsFlow = new System.Windows.Forms.FlowLayoutPanel();
searchOptionsGroup = new System.Windows.Forms.GroupBox();
searchOptionsFlow = new System.Windows.Forms.FlowLayoutPanel();
editOverwriteKeywordsButton = new System.Windows.Forms.Button();
formatOptionsGroup = new System.Windows.Forms.GroupBox();
formatTable = new System.Windows.Forms.TableLayoutPanel();
formatLabel = new System.Windows.Forms.Label();
flowBottomButtons = new System.Windows.Forms.FlowLayoutPanel();
mainTable.SuspendLayout();
this.groupDirectories.SuspendLayout();
tableDirectories.SuspendLayout();
destinationButtonsFlow.SuspendLayout();
sortOptionsGroup.SuspendLayout();
sortOptionsFlow.SuspendLayout();
searchOptionsGroup.SuspendLayout();
searchOptionsFlow.SuspendLayout();
formatOptionsGroup.SuspendLayout();
formatTable.SuspendLayout();
flowBottomButtons.SuspendLayout();
this.flowLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// mainTable
//
mainTable.ColumnCount = 1;
mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
mainTable.Controls.Add(this.groupDirectories, 0, 0);
mainTable.Controls.Add(sortOptionsGroup, 0, 2);
mainTable.Controls.Add(searchOptionsGroup, 0, 3);
mainTable.Controls.Add(formatOptionsGroup, 0, 1);
mainTable.Controls.Add(flowBottomButtons, 0, 4);
mainTable.Dock = System.Windows.Forms.DockStyle.Fill;
mainTable.Location = new System.Drawing.Point(0, 0);
mainTable.Name = "mainTable";
mainTable.RowCount = 5;
mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F));
mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 95F));
mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 56F));
mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
mainTable.Size = new System.Drawing.Size(637, 450);
mainTable.TabIndex = 0;
//
// groupDirectories
//.........这里部分代码省略.........
示例12: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(FileSystemCopyDialog));
this.btnOk = new Button();
this.btnCancel = new Button();
this.btnTree = new Button();
this.tlpBack = new TableLayoutPanel();
this.lblCopyTo = new Label();
this.chkAsyncFileCopy = new CheckBox();
this.chkCopyItemACL = new CheckBox();
this.chkSkipEmptyFolders = new CheckBox();
this.cmbCopyTo = new ComboBox();
this.chkCheckFreeSpace = new CheckBox();
this.chkCopyItemTime = new CheckBox();
this.lblMode = new Label();
this.cmbMode = new ComboBoxEx();
this.lblFilter = new Label();
this.chkDeleteSource = new CheckBox();
this.cmbFilter = new FilterComboBox();
this.bvlButtons = new Bevel();
this.Validator = new ValidatorProvider();
this.AutoComplete = new AutoCompleteProvider();
TableLayoutPanel panel = new TableLayoutPanel();
panel.SuspendLayout();
this.tlpBack.SuspendLayout();
base.SuspendLayout();
manager.ApplyResources(panel, "tlpButtons");
panel.Controls.Add(this.btnOk, 1, 0);
panel.Controls.Add(this.btnCancel, 3, 0);
panel.Controls.Add(this.btnTree, 2, 0);
panel.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
panel.Name = "tlpButtons";
manager.ApplyResources(this.btnOk, "btnOk");
this.btnOk.Name = "btnOk";
this.btnOk.UseVisualStyleBackColor = true;
this.btnOk.Click += new EventHandler(this.btnOk_Click);
manager.ApplyResources(this.btnCancel, "btnCancel");
this.btnCancel.DialogResult = DialogResult.Cancel;
this.btnCancel.Name = "btnCancel";
this.btnCancel.UseVisualStyleBackColor = true;
manager.ApplyResources(this.btnTree, "btnTree");
this.btnTree.Name = "btnTree";
this.btnTree.UseVisualStyleBackColor = true;
this.btnTree.Click += new EventHandler(this.btnTree_Click);
manager.ApplyResources(this.tlpBack, "tlpBack");
this.tlpBack.Controls.Add(this.lblCopyTo, 0, 0);
this.tlpBack.Controls.Add(this.chkAsyncFileCopy, 1, 6);
this.tlpBack.Controls.Add(this.chkCopyItemACL, 0, 6);
this.tlpBack.Controls.Add(this.chkSkipEmptyFolders, 1, 5);
this.tlpBack.Controls.Add(this.cmbCopyTo, 0, 1);
this.tlpBack.Controls.Add(this.chkCheckFreeSpace, 1, 4);
this.tlpBack.Controls.Add(this.chkCopyItemTime, 0, 5);
this.tlpBack.Controls.Add(this.lblMode, 0, 2);
this.tlpBack.Controls.Add(this.cmbMode, 0, 3);
this.tlpBack.Controls.Add(this.lblFilter, 1, 2);
this.tlpBack.Controls.Add(this.chkDeleteSource, 0, 4);
this.tlpBack.Controls.Add(this.cmbFilter, 1, 3);
this.tlpBack.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
this.tlpBack.Name = "tlpBack";
this.lblCopyTo.AutoEllipsis = true;
this.tlpBack.SetColumnSpan(this.lblCopyTo, 2);
manager.ApplyResources(this.lblCopyTo, "lblCopyTo");
this.lblCopyTo.Name = "lblCopyTo";
manager.ApplyResources(this.chkAsyncFileCopy, "chkAsyncFileCopy");
this.chkAsyncFileCopy.Checked = true;
this.chkAsyncFileCopy.CheckState = CheckState.Indeterminate;
this.chkAsyncFileCopy.Name = "chkAsyncFileCopy";
this.chkAsyncFileCopy.ThreeState = true;
this.chkAsyncFileCopy.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkCopyItemACL, "chkCopyItemACL");
this.chkCopyItemACL.Name = "chkCopyItemACL";
this.chkCopyItemACL.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkSkipEmptyFolders, "chkSkipEmptyFolders");
this.chkSkipEmptyFolders.Name = "chkSkipEmptyFolders";
this.chkSkipEmptyFolders.UseVisualStyleBackColor = true;
this.AutoComplete.SetAutoComplete(this.cmbCopyTo, true);
this.tlpBack.SetColumnSpan(this.cmbCopyTo, 2);
manager.ApplyResources(this.cmbCopyTo, "cmbCopyTo");
this.cmbCopyTo.Name = "cmbCopyTo";
this.Validator.SetValidateOn(this.cmbCopyTo, ValidateOn.TextChangedTimer);
this.cmbCopyTo.Validating += new CancelEventHandler(this.cmbCopyTo_Validating);
this.cmbCopyTo.SelectionChangeCommitted += new EventHandler(this.cmbCopyTo_TextUpdate);
this.cmbCopyTo.TextUpdate += new EventHandler(this.cmbCopyTo_TextUpdate);
manager.ApplyResources(this.chkCheckFreeSpace, "chkCheckFreeSpace");
this.chkCheckFreeSpace.Checked = true;
this.chkCheckFreeSpace.CheckState = CheckState.Checked;
this.chkCheckFreeSpace.Name = "chkCheckFreeSpace";
this.chkCheckFreeSpace.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkCopyItemTime, "chkCopyItemTime");
this.chkCopyItemTime.Checked = true;
this.chkCopyItemTime.CheckState = CheckState.Checked;
this.chkCopyItemTime.Name = "chkCopyItemTime";
this.chkCopyItemTime.UseVisualStyleBackColor = true;
manager.ApplyResources(this.lblMode, "lblMode");
this.lblMode.Name = "lblMode";
manager.ApplyResources(this.cmbMode, "cmbMode");
this.cmbMode.DropDownStyle = ComboBoxStyle.DropDownList;
this.cmbMode.Items.AddRange(new object[] { manager.GetString("cmbMode.Items"), manager.GetString("cmbMode.Items1"), manager.GetString("cmbMode.Items2"), manager.GetString("cmbMode.Items3"), manager.GetString("cmbMode.Items4") });
this.cmbMode.MinimumSize = new Size(0xca, 0);
this.cmbMode.Name = "cmbMode";
//.........这里部分代码省略.........
示例13: Bug81843
public void Bug81843 ()
{
Form f = new Form ();
f.ShowInTaskbar = false;
TableLayoutPanel tableLayoutPanel1;
Button button2;
TextBox textBox1;
Button button4;
tableLayoutPanel1 = new TableLayoutPanel ();
button2 = new Button ();
button4 = new Button ();
textBox1 = new TextBox ();
tableLayoutPanel1.SuspendLayout ();
f.SuspendLayout ();
tableLayoutPanel1.AutoSize = true;
tableLayoutPanel1.ColumnCount = 3;
tableLayoutPanel1.ColumnStyles.Add (new ColumnStyle ());
tableLayoutPanel1.ColumnStyles.Add (new ColumnStyle ());
tableLayoutPanel1.ColumnStyles.Add (new ColumnStyle ());
tableLayoutPanel1.Controls.Add (button2, 0, 1);
tableLayoutPanel1.Controls.Add (button4, 2, 1);
tableLayoutPanel1.Controls.Add (textBox1, 1, 0);
tableLayoutPanel1.Location = new Point (0, 0);
tableLayoutPanel1.RowCount = 2;
tableLayoutPanel1.RowStyles.Add (new RowStyle (SizeType.Percent, 50F));
tableLayoutPanel1.RowStyles.Add (new RowStyle (SizeType.Percent, 50F));
tableLayoutPanel1.Size = new Size (292, 287);
button2.Size = new Size (75, 23);
button4.Size = new Size (75, 23);
textBox1.Dock = DockStyle.Fill;
textBox1.Location = new Point (84, 3);
textBox1.Multiline = true;
textBox1.Size = new Size (94, 137);
f.ClientSize = new Size (292, 312);
f.Controls.Add (tableLayoutPanel1);
f.Name = "Form1";
f.Text = "Form1";
tableLayoutPanel1.ResumeLayout (false);
tableLayoutPanel1.PerformLayout ();
f.ResumeLayout (false);
f.PerformLayout ();
f.Show ();
Assert.AreEqual (new Rectangle (3, 146, 75, 23), button2.Bounds, "A1");
Assert.AreEqual (new Rectangle (184, 146, 75, 23), button4.Bounds, "A2");
Assert.AreEqual (new Rectangle (84, 3, 94, 137), textBox1.Bounds, "A3");
f.Dispose ();
}
示例14: button1_Click
private void button1_Click(object sender, EventArgs e)
{
if (ModelingForm == null)
{
ModelingForm = new Form();
ModelingForm.StartPosition = FormStartPosition.Manual;
ModelingForm.Left = Cursor.Position.X + 5;
ModelingForm.Top = Cursor.Position.Y + 5;
ModelingForm.FormBorderStyle = FormBorderStyle.Sizable;
ModelingForm.Name = "frmModeling";
ModelingForm.BackColor = System.Drawing.Color.LightGray;
RichTextBox eee = new RichTextBox();
eee.Margin = new System.Windows.Forms.Padding(0);
eee.Font = new System.Drawing.Font("Calibri", 10);
eee.Multiline = true;
eee.ReadOnly = true;
TabControl tbc = new TabControl();
SplitContainer sc = new SplitContainer();
TableLayoutPanel tbl = new TableLayoutPanel();
Button b = new Button();
b.Text = "Hello";
b.Dock = DockStyle.Fill;
tbl.Controls.Add(b, 0, 0);
tbl.Controls.Add(new Button(), 0, 1);
tbl.Controls.Add(new Button(), 0, 2);
tbl.Controls.Add(new Button(), 0, 3);
tbl.AutoSize = true;
TableLayoutPanel tbl2 = new TableLayoutPanel();
b = new Button();
b.Text = "Hello";
tbl2.Controls.Add(b, 0, 0);
tbl2.Controls.Add(new Button(), 0, 1);
tbl2.Controls.Add(new Button(), 0, 2);
tbl2.Controls.Add(new Button(), 0, 3);
tbl2.AutoSize = true;
tbl2.SuspendLayout();
tbl.SuspendLayout();
sc.Panel2.Controls.Add(tbl2);
sc.Panel1.Controls.Add(tbl);
sc.Panel1.AutoSize = true;
sc.AutoSize = true;
tbl2.ResumeLayout();
tbl.ResumeLayout();
sc.BorderStyle = BorderStyle.Fixed3D;
sc.AutoSize = true;
string aaa = @"
================================================================
MainCallEndByExtension - sCallIDTelSys = 9D1CE0BF47B8039EDB48 :
byCallType = INTERNAL
sDeviceExtension = 3312
sDeviceDistantOptional =
sDeviceExtLst =
bIncludeDistConnectnsFromToDevIfInternal = True
bSearchConnctnsForwards = False
bOnlyConsiderNonAnsweredGroupCalls = False
ppMainCallIDsDeleted =
================================================================
DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 :
sDevice = [CONF]
sCallIDTelSys = 9D1CE0BF47B8039EDB48
sDeviceDistantEnd = 3312
bUseDistantEndAlsoIfUsingCallID = True
bCallInInfoOverride = False
sCallInInfoGrp =
sCallInInfoDDIDigits =
bIgnoreNonCallConnections = True
bSearchForwards = False
bSearchAllCallConnections = True
bClearByDevFirstRung = False
bClearDistantEndConnectionIfFlagsMatch = False
iClearDistantEndConnectionIfFlagsMatch = 0
bDoNotAttemptOnHookCalculation = False
================================================================
DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 :
sDevice = 3312
sCallIDTelSys = 9D1CE0BF47B8039EDB48
sDeviceDistantEnd =
bUseDistantEndAlsoIfUsingCallID = False
bCallInInfoOverride = False
sCallInInfoGrp =
sCallInInfoDDIDigits =
bIgnoreNonCallConnections = True
bSearchForwards = False
bSearchAllCallConnections = True
bClearByDevFirstRung = False
bClearDistantEndConnectionIfFlagsMatch = False
iClearDistantEndConnectionIfFlagsMatch = 0
bDoNotAttemptOnHookCalculation = False
================================================================
MainCallEndByExtension - sCallIDTelSys = 9D1CE0BF47B8039EDB48 :
byCallType = INTERNAL
sDeviceExtension = 3321
sDeviceDistantOptional =
sDeviceExtLst =
bIncludeDistConnectnsFromToDevIfInternal = True
bSearchConnctnsForwards = False
bOnlyConsiderNonAnsweredGroupCalls = False
ppMainCallIDsDeleted =
================================================================
DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 :
//.........这里部分代码省略.........
示例15: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.TableLayoutPanel selectedShowTable;
System.Windows.Forms.GroupBox customSettingsGroup;
System.Windows.Forms.Label destinationLabel;
System.Windows.Forms.FlowLayoutPanel selectedShowButtons;
System.Windows.Forms.Label folderNameLabel;
System.Windows.Forms.GroupBox episodesGroup;
this.selectedShowName = new System.Windows.Forms.Label();
this.selectedShowBanner = new System.Windows.Forms.PictureBox();
this.selectedShowLastUpdated = new System.Windows.Forms.Label();
this.selectedShowTvdb = new System.Windows.Forms.Label();
this.customFormatTable = new System.Windows.Forms.TableLayoutPanel();
this.selectedShowUseCustomFormat = new System.Windows.Forms.CheckBox();
this.selectedShowCustomFormatText = new System.Windows.Forms.TextBox();
this.formatLabel = new System.Windows.Forms.Label();
this.formatBuilder = new System.Windows.Forms.Button();
this.useCustomDestinationDirectory = new System.Windows.Forms.CheckBox();
this.customDestination = new System.Windows.Forms.ComboBox();
this.saveButton = new System.Windows.Forms.Button();
this.revertButton = new System.Windows.Forms.Button();
this.updateShowButton = new System.Windows.Forms.Button();
this.removeShowButton = new System.Windows.Forms.Button();
this.resetLastUpdatedButton = new System.Windows.Forms.Button();
this.namesGroup = new System.Windows.Forms.GroupBox();
this.nameTable = new System.Windows.Forms.TableLayoutPanel();
this.selectedShowFolderNameText = new System.Windows.Forms.TextBox();
this.alternateNamesButton = new System.Windows.Forms.Button();
this.episodesFlow = new System.Windows.Forms.FlowLayoutPanel();
this.selectedShowUseDvdOrder = new System.Windows.Forms.CheckBox();
this.selectedShowLockButton = new System.Windows.Forms.Button();
this.updateAllButton = new System.Windows.Forms.Button();
this.addShowButton = new System.Windows.Forms.Button();
this.searchShowsButton = new System.Windows.Forms.Button();
this.createNfoFilesButton = new System.Windows.Forms.Button();
this.tvShowsList = new System.Windows.Forms.ListBox();
this.topButtonsFlow = new System.Windows.Forms.FlowLayoutPanel();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
selectedShowTable = new System.Windows.Forms.TableLayoutPanel();
customSettingsGroup = new System.Windows.Forms.GroupBox();
destinationLabel = new System.Windows.Forms.Label();
selectedShowButtons = new System.Windows.Forms.FlowLayoutPanel();
folderNameLabel = new System.Windows.Forms.Label();
episodesGroup = new System.Windows.Forms.GroupBox();
selectedShowTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.selectedShowBanner)).BeginInit();
customSettingsGroup.SuspendLayout();
this.customFormatTable.SuspendLayout();
selectedShowButtons.SuspendLayout();
this.namesGroup.SuspendLayout();
this.nameTable.SuspendLayout();
episodesGroup.SuspendLayout();
this.episodesFlow.SuspendLayout();
this.topButtonsFlow.SuspendLayout();
this.SuspendLayout();
//
// selectedShowTable
//
selectedShowTable.ColumnCount = 1;
selectedShowTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
selectedShowTable.Controls.Add(this.selectedShowName, 0, 0);
selectedShowTable.Controls.Add(this.selectedShowBanner, 0, 1);
selectedShowTable.Controls.Add(this.selectedShowLastUpdated, 0, 3);
selectedShowTable.Controls.Add(this.selectedShowTvdb, 0, 2);
selectedShowTable.Controls.Add(customSettingsGroup, 0, 4);
selectedShowTable.Controls.Add(selectedShowButtons, 0, 7);
selectedShowTable.Controls.Add(this.namesGroup, 0, 5);
selectedShowTable.Controls.Add(episodesGroup, 0, 6);
selectedShowTable.Dock = System.Windows.Forms.DockStyle.Fill;
selectedShowTable.Location = new System.Drawing.Point(178, 35);
selectedShowTable.Name = "selectedShowTable";
selectedShowTable.RowCount = 8;
selectedShowTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
selectedShowTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 150F));
selectedShowTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
selectedShowTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
selectedShowTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 142F));
selectedShowTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 85F));
selectedShowTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 85F));
selectedShowTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
selectedShowTable.Size = new System.Drawing.Size(571, 649);
selectedShowTable.TabIndex = 2;
//
// selectedShowName
//
this.selectedShowName.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.selectedShowName.AutoSize = true;
this.selectedShowName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.selectedShowName.Location = new System.Drawing.Point(3, 5);
this.selectedShowName.Name = "selectedShowName";
this.selectedShowName.Size = new System.Drawing.Size(129, 20);
this.selectedShowName.TabIndex = 0;
this.selectedShowName.Text = "Selected Show";
//
// selectedShowBanner
//.........这里部分代码省略.........