本文整理汇总了C#中System.Windows.Forms.FlowLayoutPanel.SuspendLayout方法的典型用法代码示例。如果您正苦于以下问题:C# FlowLayoutPanel.SuspendLayout方法的具体用法?C# FlowLayoutPanel.SuspendLayout怎么用?C# FlowLayoutPanel.SuspendLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.FlowLayoutPanel
的用法示例。
在下文中一共展示了FlowLayoutPanel.SuspendLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Container
public static FlowLayoutPanel Container(IXsdPart part, ToolTip tooltip = null)
{
var panel = new FlowLayoutPanel();
panel.SuspendLayout();
panel.FlowDirection = FlowDirection.TopDown;
panel.AutoSize = true;
panel.Font = Methods.BaseFont;
panel.Name = "p" + part.Name;
panel.Size = new System.Drawing.Size(208, 53);
panel.AutoSize = true;
//panel.BorderStyle = BorderStyle.Fixed3D;
panel.BorderStyle = BorderStyle.None;
panel.Controls.Add(Controls.Label(part, tooltip));
panel.ResumeLayout();
return panel;
}
示例2: prepareBlocksPanel
public static void prepareBlocksPanel(FlowLayoutPanel blocksPanel, Size buttonSize, ImageList buttonsImages, EventHandler buttonBlockClick, int startIndex, int count)
{
blocksPanel.Controls.Clear();
blocksPanel.SuspendLayout();
for (int i = startIndex; i < startIndex + count; i++)
{
var but = new Button();
but.FlatStyle = FlatStyle.Flat;
but.Size = buttonSize;
but.ImageList = buttonsImages;
but.ImageIndex = i;
but.Click += buttonBlockClick;
but.Margin = new Padding(0);
but.Padding = new Padding(0);
blocksPanel.Controls.Add(but);
}
blocksPanel.ResumeLayout();
}
示例3: AddLinkList
private void AddLinkList(FlowLayoutPanel Panel, int Columns, IEnumerable<BaseLinkable> List)
{
Panel.SuspendLayout();
//Panel.Controls.Clear();
Panel.Margin = new Padding(0);
Panel.Padding = new Padding(0);
List.ForEach((Index, Item) =>
{
var Label = new LinkLabel();
Label.Padding = new Padding(0);
Label.Margin = new Padding(0);
Label.Width = Panel.Width / Columns;
Label.Text = Item.ToString();
Label.Click += (_sender, _e) =>
{
Process.Start(Item.Url);
};
Panel.Controls.Add(Label);
});
Panel.ResumeLayout();
}
示例4: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent() {
pictureBox1 = new PictureBox();
tableLayoutPanel1 = new TableLayoutPanel();
label1 = new Label();
label2 = new Label();
trackBar1 = new TrackBar();
trackBar2 = new TrackBar();
label3 = new Label();
label4 = new Label();
label5 = new Label();
label6 = new Label();
label7 = new Label();
flowLayoutPanel1 = new FlowLayoutPanel();
button2 = new Button();
button1 = new Button();
button3 = new Button();
openFileDialog1 = new OpenFileDialog();
((System.ComponentModel.ISupportInitialize)(pictureBox1)).BeginInit();
tableLayoutPanel1.SuspendLayout();
(trackBar1).BeginInit();
(trackBar2).BeginInit();
flowLayoutPanel1.SuspendLayout();
SuspendLayout();
//
// pictureBox1
//
pictureBox1.Anchor = AnchorStyles.None;
pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
tableLayoutPanel1.SetColumnSpan(pictureBox1, 3);
pictureBox1.Location = new System.Drawing.Point(252, 256);
pictureBox1.Name = "pictureBox1";
pictureBox1.Size = new System.Drawing.Size(100, 50);
pictureBox1.TabIndex = 0;
pictureBox1.TabStop = false;
//
// tableLayoutPanel1
//
tableLayoutPanel1.ColumnCount = 6;
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 20F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 80F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.33333F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 22F));
tableLayoutPanel1.Controls.Add(pictureBox1, 2, 6);
tableLayoutPanel1.Controls.Add(label1, 1, 2);
tableLayoutPanel1.Controls.Add(label2, 1, 3);
tableLayoutPanel1.Controls.Add(trackBar1, 2, 2);
tableLayoutPanel1.Controls.Add(trackBar2, 2, 3);
tableLayoutPanel1.Controls.Add(label3, 1, 6);
tableLayoutPanel1.Controls.Add(label4, 2, 4);
tableLayoutPanel1.Controls.Add(label5, 3, 4);
tableLayoutPanel1.Controls.Add(label6, 4, 4);
tableLayoutPanel1.Controls.Add(label7, 1, 1);
tableLayoutPanel1.Controls.Add(flowLayoutPanel1, 2, 7);
tableLayoutPanel1.Controls.Add(button3, 4, 1);
tableLayoutPanel1.Dock = DockStyle.Fill;
tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
tableLayoutPanel1.Name = "tableLayoutPanel1";
tableLayoutPanel1.RowCount = 9;
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
tableLayoutPanel1.Size = new System.Drawing.Size(527, 432);
tableLayoutPanel1.TabIndex = 1;
//
// label1
//
label1.Anchor = AnchorStyles.Left;
label1.AutoSize = true;
label1.Location = new System.Drawing.Point(23, 63);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(56, 13);
label1.TabIndex = 1;
label1.Text = "Larghezza";
//
// label2
//
label2.Anchor = AnchorStyles.Left;
label2.AutoSize = true;
label2.Location = new System.Drawing.Point(23, 103);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(41, 13);
label2.TabIndex = 2;
label2.Text = "Altezza";
//
// trackBar1
//
trackBar1.Anchor = AnchorStyles.Left | AnchorStyles.Right;
tableLayoutPanel1.SetColumnSpan(trackBar1, 3);
//.........这里部分代码省略.........
示例5: 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.FlowLayoutPanel _lytButtons;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsForm));
this._saveButton = new System.Windows.Forms.Button();
this._okButton = new System.Windows.Forms.Button();
this._cancelButton = new System.Windows.Forms.Button();
this._pluginsTreeImages = new System.Windows.Forms.ImageList(this.components);
this._tabControl = new System.Windows.Forms.TabControl();
this._applicationTab = new System.Windows.Forms.TabPage();
this._appPropertyGrid = new System.Windows.Forms.PropertyGrid();
this._hotKeysTab = new System.Windows.Forms.TabPage();
this._styleTab = new System.Windows.Forms.TabPage();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this._saveSchemeButton = new System.Windows.Forms.Button();
this._loadSchemeButton = new System.Windows.Forms.Button();
this._stylePropertyGrid = new System.Windows.Forms.PropertyGrid();
_lytButtons = new System.Windows.Forms.FlowLayoutPanel();
_lytButtons.SuspendLayout();
this._tabControl.SuspendLayout();
this._applicationTab.SuspendLayout();
this._styleTab.SuspendLayout();
this.flowLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// _lytButtons
//
resources.ApplyResources(_lytButtons, "_lytButtons");
_lytButtons.Controls.Add(this._saveButton);
_lytButtons.Controls.Add(this._okButton);
_lytButtons.Controls.Add(this._cancelButton);
_lytButtons.Name = "_lytButtons";
//
// _saveButton
//
resources.ApplyResources(this._saveButton, "_saveButton");
this._saveButton.Name = "_saveButton";
this._saveButton.Click += new System.EventHandler(this.SaveButtonClick);
//
// _okButton
//
resources.ApplyResources(this._okButton, "_okButton");
this._okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this._okButton.Name = "_okButton";
this._okButton.Click += new System.EventHandler(this.OKButtonClick);
//
// _cancelButton
//
resources.ApplyResources(this._cancelButton, "_cancelButton");
this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this._cancelButton.Name = "_cancelButton";
this._cancelButton.Click += new System.EventHandler(this.CancelButtonClick);
//
// _pluginsTreeImages
//
this._pluginsTreeImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_pluginsTreeImages.ImageStream")));
this._pluginsTreeImages.TransparentColor = System.Drawing.Color.Transparent;
this._pluginsTreeImages.Images.SetKeyName(0, "");
this._pluginsTreeImages.Images.SetKeyName(1, "");
//
// _tabControl
//
resources.ApplyResources(this._tabControl, "_tabControl");
this._tabControl.Controls.Add(this._applicationTab);
this._tabControl.Controls.Add(this._hotKeysTab);
this._tabControl.Controls.Add(this._styleTab);
this._tabControl.HotTrack = true;
this._tabControl.Name = "_tabControl";
this._tabControl.SelectedIndex = 0;
//
// _applicationTab
//
this._applicationTab.Controls.Add(this._appPropertyGrid);
resources.ApplyResources(this._applicationTab, "_applicationTab");
this._applicationTab.Name = "_applicationTab";
//
// _appPropertyGrid
//
this._appPropertyGrid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(244)))));
this._appPropertyGrid.CommandsBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(244)))));
resources.ApplyResources(this._appPropertyGrid, "_appPropertyGrid");
this._appPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(244)))));
this._appPropertyGrid.Name = "_appPropertyGrid";
this._appPropertyGrid.PropertySort = System.Windows.Forms.PropertySort.Categorized;
this._appPropertyGrid.ToolbarVisible = false;
this._appPropertyGrid.ViewBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(255)))));
this._appPropertyGrid.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.PropertyGridPropertyValueChanged);
//
// _hotKeysTab
//
resources.ApplyResources(this._hotKeysTab, "_hotKeysTab");
this._hotKeysTab.Name = "_hotKeysTab";
//
// _styleTab
//
//.........这里部分代码省略.........
示例6: 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.FlowLayoutPanel topButtonsFlow;
System.Windows.Forms.FlowLayoutPanel selectButtonsFlow;
this.subDirectoryFilter = new System.Windows.Forms.ComboBox();
this.scanButton = new System.Windows.Forms.Button();
this.copyButton = new System.Windows.Forms.Button();
this.moveButton = new System.Windows.Forms.Button();
this.resultsList = new System.Windows.Forms.ListView();
this.sourceFileColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.tvShowColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.seasonColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.episodeColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.episodeNameColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.destinationFile = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.selectAllButton = new System.Windows.Forms.Button();
this.deselectAllButton = new System.Windows.Forms.Button();
this.setShowButton = new System.Windows.Forms.Button();
this.setEpisodeButton = new System.Windows.Forms.Button();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
topButtonsFlow = new System.Windows.Forms.FlowLayoutPanel();
selectButtonsFlow = new System.Windows.Forms.FlowLayoutPanel();
topButtonsFlow.SuspendLayout();
selectButtonsFlow.SuspendLayout();
this.SuspendLayout();
//
// topButtonsFlow
//
topButtonsFlow.Controls.Add(this.subDirectoryFilter);
topButtonsFlow.Controls.Add(this.scanButton);
topButtonsFlow.Controls.Add(this.copyButton);
topButtonsFlow.Controls.Add(this.moveButton);
topButtonsFlow.Dock = System.Windows.Forms.DockStyle.Top;
topButtonsFlow.Location = new System.Drawing.Point(0, 0);
topButtonsFlow.Name = "topButtonsFlow";
topButtonsFlow.Size = new System.Drawing.Size(678, 31);
topButtonsFlow.TabIndex = 1;
//
// subDirectoryFilter
//
this.subDirectoryFilter.FormattingEnabled = true;
this.subDirectoryFilter.Location = new System.Drawing.Point(3, 3);
this.subDirectoryFilter.Name = "subDirectoryFilter";
this.subDirectoryFilter.Size = new System.Drawing.Size(121, 21);
this.subDirectoryFilter.TabIndex = 0;
this.toolTip.SetToolTip(this.subDirectoryFilter, "The subdirectory of Source Directory to search from.");
//
// scanButton
//
this.scanButton.Location = new System.Drawing.Point(130, 3);
this.scanButton.Name = "scanButton";
this.scanButton.Size = new System.Drawing.Size(93, 23);
this.scanButton.TabIndex = 1;
this.scanButton.Text = "Scan for Files";
this.toolTip.SetToolTip(this.scanButton, "Scans for files in the selected subdirectory of Source Directory.");
this.scanButton.UseVisualStyleBackColor = true;
this.scanButton.Click += new System.EventHandler(this.ScanButtonClick);
//
// copyButton
//
this.copyButton.Location = new System.Drawing.Point(229, 3);
this.copyButton.Name = "copyButton";
this.copyButton.Size = new System.Drawing.Size(95, 23);
this.copyButton.TabIndex = 2;
this.copyButton.Text = "Copy to Dest.";
this.toolTip.SetToolTip(this.copyButton, "Copies the selected episodes to the Destination Directory");
this.copyButton.UseVisualStyleBackColor = true;
this.copyButton.Click += new System.EventHandler(this.CopyButtonClick);
//
// moveButton
//
this.moveButton.Location = new System.Drawing.Point(330, 3);
this.moveButton.Name = "moveButton";
this.moveButton.Size = new System.Drawing.Size(102, 23);
this.moveButton.TabIndex = 3;
this.moveButton.Text = "Move to Dest.";
this.toolTip.SetToolTip(this.moveButton, "Moves the selected episodes to the destination directory.");
this.moveButton.UseVisualStyleBackColor = true;
this.moveButton.Click += new System.EventHandler(this.MoveButtonClick);
//
// resultsList
//
this.resultsList.CheckBoxes = true;
this.resultsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.sourceFileColumn,
this.tvShowColumn,
this.seasonColumn,
this.episodeColumn,
this.episodeNameColumn,
this.destinationFile});
this.resultsList.Cursor = System.Windows.Forms.Cursors.Default;
this.resultsList.Dock = System.Windows.Forms.DockStyle.Fill;
this.resultsList.Location = new System.Drawing.Point(0, 66);
this.resultsList.Name = "resultsList";
this.resultsList.Size = new System.Drawing.Size(678, 348);
//.........这里部分代码省略.........
示例7: UpdateFlowPanel
// Populates FlowLayoutPanel with given values
private void UpdateFlowPanel(FlowLayoutPanel flowPanel, string[] listOfValues)
{
flowPanel.SuspendLayout();
flowPanel.Controls.Clear();
if (listOfValues != null)
{
foreach (string s in listOfValues)
{
Label label = new Label();
//label.AutoSize = true;
// label.Name = "label";
label.AutoEllipsis = true;
// Highlight every other row of labels
if (flowPanel.Controls.Count != 0 && flowPanel.Controls[flowPanel.Controls.Count - 1].BackColor != _labelColor)
label.BackColor = _labelColor;
label.Size = new Size(flowPanel.ClientSize.Width - label.Margin.Horizontal, 17);
label.TabIndex = flowPanel.Controls.Count;
label.Text = s;
label.TextAlign = ContentAlignment.MiddleLeft;
flowPanel.Controls.Add(label);
}
}
flowPanel.ResumeLayout();
//if (flowPanel.Parent != null)
// flowPanel.Parent.Update();
//else
// flowPanel.Update();
}
示例8: AutoSizeGrowOnly_ResizeIfSmaller_DockRight
public void AutoSizeGrowOnly_ResizeIfSmaller_DockRight ()
{
f.ClientSize = new Size (300, 100);
var panel = new FlowLayoutPanel ();
panel.SuspendLayout ();
panel.AutoSize = true;
panel.AutoSizeMode = AutoSizeMode.GrowOnly;
panel.WrapContents = true;
panel.Bounds = new Rectangle(5, 5, 100, 100);
panel.Dock = DockStyle.Right;
var c = new Label ();
c.Size = new Size (25, 90);
panel.Controls.Add (c);
f.Controls.Add(panel);
panel.ResumeLayout (true);
Assert.AreEqual (269, panel.Left, "1");
Assert.AreEqual (f.ClientRectangle.Height, panel.Height, "2");
Assert.AreEqual (31, panel.Width, "3"); // 25 + 2*3 margin
}
示例9: NoAutoSize_DontResizeIfSmaller_DockBottom
public void NoAutoSize_DontResizeIfSmaller_DockBottom ()
{
var panel = new FlowLayoutPanel ();
panel.SuspendLayout ();
panel.AutoSize = false;
panel.WrapContents = true;
panel.Bounds = new Rectangle(5, 5, 100, 100);
panel.Dock = DockStyle.Bottom;
var c = new Label ();
c.Size = new Size (90, 25);
panel.Controls.Add (c);
f.Controls.Add(panel);
panel.ResumeLayout (true);
Assert.AreEqual (200, panel.Top, "1");
Assert.AreEqual (f.ClientRectangle.Width, panel.Width, "2");
Assert.AreEqual (100, panel.Height, "3");
}
示例10: RefreshZXCVRow
private void RefreshZXCVRow(FlowLayoutPanel panel, RefreshFor modify)
{
if (ZXCVRowScancodes.Length != panel.Controls.Count)
{
return;
}
if ((modify & RefreshFor.Label) == RefreshFor.Label)
{
for (int i = 0; i < panel.Controls.Count; i++)
{
SoftKey key = panel.Controls[i] as SoftKey;
ChangeStyleForKey(key);
key.Text = GetDisplayStringFromVK(key.ScanCode);
}
}
if ((modify & RefreshFor.Font) == RefreshFor.Font)
{
for (int i = 0; i < panel.Controls.Count; i++)
{
panel.Controls[i].Font = ButtonFont;
}
}
if ((modify & RefreshFor.Size) == RefreshFor.Size)
{
panel.SuspendLayout();
Size[] sizes = ZXCVSize(panel.Size);
if (sizes.Length != panel.Controls.Count)
{
return;
}
for (int i = 0; i < sizes.Length; i++)
{
panel.Controls[i].Size = sizes[i];
}
panel.ResumeLayout();
Control b = panel.Controls[panel.Controls.Count - 1];
b.Width = panel.Width - b.Location.X - (buttonMargin.Left + buttonMargin.Right);
}
}
示例11: AppTileList
/// <summary>
/// Creates a new <see cref="AppTile"/> list.
/// </summary>
public AppTileList()
{
Size = new Size(425, 200);
AutoScaleDimensions = new SizeF(6F, 13F);
AutoScaleMode = AutoScaleMode.Font;
SuspendLayout();
TextSearch = new HintTextBox
{
Dock = DockStyle.Top, Height = 20,
HintText = Resources.Search, ShowClearButton = true,
TabIndex = 0
};
TextSearch.TextChanged += delegate { RefilterTiles(); };
_flowLayout = new FlowLayoutPanel
{
Location = new Point(0, 0), Size = Size.Empty, Margin = Padding.Empty,
FlowDirection = FlowDirection.TopDown
};
_scrollPanel = new Panel
{
Dock = DockStyle.Fill, Margin = Padding.Empty,
AutoScroll = true, Controls = {_flowLayout},
TabIndex = 1
};
// Must add scroll panel first for docking to work correctly
Controls.Add(_scrollPanel);
Controls.Add(TextSearch);
Resize += delegate
{
_flowLayout.SuspendLayout();
_flowLayout.Width = _scrollPanel.Width - (int)(20 * AutoScaleDimensions.Width / 6F);
foreach (Control control in _flowLayout.Controls)
control.Width = _flowLayout.Width;
_flowLayout.ResumeLayout(false);
};
ResumeLayout(false);
}
示例12: InitializeComponent
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager manager = new ComponentResourceManager(typeof(PropertiesDialog));
this.pnlItemName = new Panel();
this.txtName = new TextBox();
this.lblName = new Label();
this.imgIcon = new PictureBox();
this.pnlType = new Panel();
this.lblType = new Label();
this.pnlDelimiter2 = new Panel();
this.pnlLocation = new Panel();
this.lblLocation = new Label();
this.pnlSize = new Panel();
this.lblSize = new Label();
this.pnlCompressedSize = new Panel();
this.lblCompressedSize = new Label();
this.pnlContains = new Panel();
this.lblContains = new Label();
this.pnlCreationTime = new Panel();
this.lblCreationTime = new Label();
this.pnlLastWriteTime = new Panel();
this.lblLastWriteTime = new Label();
this.pnlLastAccessTime = new Panel();
this.lblLastAccessTime = new Label();
this.pnlDelimiter4 = new Panel();
this.pnlAttributes = new Panel();
this.chkEncrypted = new CheckBox();
this.chkCompressed = new CheckBox();
this.chkSystem = new CheckBox();
this.chkReadOnly = new CheckBox();
this.chkHidden = new CheckBox();
this.chkArchive = new CheckBox();
this.tabControlProperties = new TabControl();
this.tabPageProperties = new TabPage();
this.btnApply = new Button();
this.tmrUpdateSize = new System.Windows.Forms.Timer(this.components);
this.tsbStop = new ToolStripButton();
this.btnCancel = new Button();
this.btnOk = new Button();
FlowLayoutPanel panel = new FlowLayoutPanel();
Panel panel2 = new Panel();
Label label = new Label();
Label label2 = new Label();
Label label3 = new Label();
Label label4 = new Label();
Label label5 = new Label();
Panel panel3 = new Panel();
Label label6 = new Label();
Label label7 = new Label();
Label label8 = new Label();
Label label9 = new Label();
panel.SuspendLayout();
this.pnlItemName.SuspendLayout();
((ISupportInitialize) this.imgIcon).BeginInit();
this.pnlType.SuspendLayout();
this.pnlLocation.SuspendLayout();
this.pnlSize.SuspendLayout();
this.pnlCompressedSize.SuspendLayout();
this.pnlContains.SuspendLayout();
this.pnlCreationTime.SuspendLayout();
this.pnlLastWriteTime.SuspendLayout();
this.pnlLastAccessTime.SuspendLayout();
this.pnlAttributes.SuspendLayout();
this.tabControlProperties.SuspendLayout();
this.tabPageProperties.SuspendLayout();
base.SuspendLayout();
panel.Controls.Add(this.pnlItemName);
panel.Controls.Add(panel2);
panel.Controls.Add(this.pnlType);
panel.Controls.Add(this.pnlDelimiter2);
panel.Controls.Add(this.pnlLocation);
panel.Controls.Add(this.pnlSize);
panel.Controls.Add(this.pnlCompressedSize);
panel.Controls.Add(this.pnlContains);
panel.Controls.Add(panel3);
panel.Controls.Add(this.pnlCreationTime);
panel.Controls.Add(this.pnlLastWriteTime);
panel.Controls.Add(this.pnlLastAccessTime);
panel.Controls.Add(this.pnlDelimiter4);
panel.Controls.Add(this.pnlAttributes);
manager.ApplyResources(panel, "flpProperties");
panel.Name = "flpProperties";
manager.ApplyResources(this.pnlItemName, "pnlItemName");
this.pnlItemName.Controls.Add(this.txtName);
this.pnlItemName.Controls.Add(this.lblName);
this.pnlItemName.Controls.Add(this.imgIcon);
this.pnlItemName.Name = "pnlItemName";
manager.ApplyResources(this.txtName, "txtName");
this.txtName.Name = "txtName";
manager.ApplyResources(this.lblName, "lblName");
this.lblName.Name = "lblName";
manager.ApplyResources(this.imgIcon, "imgIcon");
this.imgIcon.Name = "imgIcon";
this.imgIcon.TabStop = false;
manager.ApplyResources(panel2, "pnlDelimiter1");
panel2.Name = "pnlDelimiter1";
panel2.Paint += new PaintEventHandler(this.DelimiterPanel_Paint);
manager.ApplyResources(this.pnlType, "pnlType");
this.pnlType.Controls.Add(this.lblType);
//.........这里部分代码省略.........
示例13: 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
//.........这里部分代码省略.........
示例14: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.TableLayoutPanel table;
System.Windows.Forms.FlowLayoutPanel flowButtons;
System.Windows.Forms.Label seasonLabel;
System.Windows.Forms.Label episodeLabel;
this.okButton = new System.Windows.Forms.Button();
this.cancelButton = new System.Windows.Forms.Button();
this.episodeNumber = new System.Windows.Forms.TextBox();
this.seasonNumber = new System.Windows.Forms.TextBox();
table = new System.Windows.Forms.TableLayoutPanel();
flowButtons = new System.Windows.Forms.FlowLayoutPanel();
seasonLabel = new System.Windows.Forms.Label();
episodeLabel = new System.Windows.Forms.Label();
table.SuspendLayout();
flowButtons.SuspendLayout();
this.SuspendLayout();
//
// table
//
table.ColumnCount = 2;
table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 93F));
table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
table.Controls.Add(flowButtons, 0, 2);
table.Controls.Add(this.episodeNumber, 1, 1);
table.Controls.Add(this.seasonNumber, 1, 0);
table.Controls.Add(seasonLabel, 0, 0);
table.Controls.Add(episodeLabel, 0, 1);
table.Dock = System.Windows.Forms.DockStyle.Fill;
table.Location = new System.Drawing.Point(0, 0);
table.Name = "table";
table.RowCount = 2;
table.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
table.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
table.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 56F));
table.Size = new System.Drawing.Size(213, 81);
table.TabIndex = 3;
//
// flowButtons
//
table.SetColumnSpan(flowButtons, 2);
flowButtons.Controls.Add(this.okButton);
flowButtons.Controls.Add(this.cancelButton);
flowButtons.Dock = System.Windows.Forms.DockStyle.Fill;
flowButtons.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft;
flowButtons.Location = new System.Drawing.Point(0, 50);
flowButtons.Margin = new System.Windows.Forms.Padding(0);
flowButtons.Name = "flowButtons";
flowButtons.Size = new System.Drawing.Size(213, 56);
flowButtons.TabIndex = 0;
//
// okButton
//
this.okButton.Location = new System.Drawing.Point(135, 3);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(75, 23);
this.okButton.TabIndex = 1;
this.okButton.Text = "OK";
this.okButton.UseVisualStyleBackColor = true;
this.okButton.Click += new System.EventHandler(this.OkButtonClick);
//
// cancelButton
//
this.cancelButton.Location = new System.Drawing.Point(54, 3);
this.cancelButton.Name = "cancelButton";
this.cancelButton.Size = new System.Drawing.Size(75, 23);
this.cancelButton.TabIndex = 2;
this.cancelButton.Text = "Cancel";
this.cancelButton.UseVisualStyleBackColor = true;
this.cancelButton.Click += new System.EventHandler(this.CancelButtonClick);
//
// episodeNumber
//
this.episodeNumber.Dock = System.Windows.Forms.DockStyle.Fill;
this.episodeNumber.Location = new System.Drawing.Point(96, 28);
this.episodeNumber.Name = "episodeNumber";
this.episodeNumber.Size = new System.Drawing.Size(114, 20);
this.episodeNumber.TabIndex = 1;
//
// seasonNumber
//
this.seasonNumber.Dock = System.Windows.Forms.DockStyle.Fill;
this.seasonNumber.Location = new System.Drawing.Point(96, 3);
this.seasonNumber.Name = "seasonNumber";
this.seasonNumber.Size = new System.Drawing.Size(114, 20);
this.seasonNumber.TabIndex = 0;
//
// seasonLabel
//
seasonLabel.Anchor = System.Windows.Forms.AnchorStyles.Right;
seasonLabel.AutoSize = true;
seasonLabel.Location = new System.Drawing.Point(6, 6);
seasonLabel.Name = "seasonLabel";
seasonLabel.Size = new System.Drawing.Size(84, 13);
seasonLabel.TabIndex = 2;
seasonLabel.Text = "Season number:";
//.........这里部分代码省略.........
示例15: selectChannel
/// <summary>
/// To handle files
/// </summary>
/// <param name="p"></param>
public selectChannel(string p)
{
try
{
TabControl streamParameterTabControl = new TabControl();
int maximumX = 0;
int maximumY = 0;
TabPage[] tabStream = new TabPage[Globals.limitPCAP.Keys.Count];
int pktCnt = 0;
foreach (int stream in Globals.limitPCAP.Keys)
{
string[] streamFiles = Array.FindAll(Globals.fileDump_list, element => element.Contains(String.Format("{0}_", stream)));
List<string> parametersList = new List<string>(streamFiles.ToList());
CheckBox[] dataSelect = new CheckBox[streamFiles.Length];
System.Windows.Forms.Label[] dataLabels = new System.Windows.Forms.Label[streamFiles.Length];
TableLayoutPanel[] dataColumns = new TableLayoutPanel[streamFiles.Length / 20 + 1];
FlowLayoutPanel flow = new FlowLayoutPanel();
flow.FlowDirection = FlowDirection.LeftToRight;
tabStream[pktCnt] = new TabPage();
for (int i = 0; i != streamFiles.Length; i++)
{
string streamString = stream.ToString();
var parName = parametersList[i].Substring((streamString.Length + 1) + (parametersList[i].IndexOf(String.Format("{0}_", stream))));
parName = parName.Substring(0, parName.LastIndexOf(".dat"));
int whichColumn = i / 20;
dataLabels[i] = new System.Windows.Forms.Label();
dataLabels[i].Name = i.ToString();
dataLabels[i].AutoSize = false;
dataLabels[i].Text = String.Format("{0}", parName.ToString());
dataLabels[i].Font = new Font(dataLabels[i].Font.FontFamily, 8, dataLabels[i].Font.Style);
dataLabels[i].Size = dataLabels[i].PreferredSize;
dataSelect[i] = new CheckBox();
dataSelect[i].Name = String.Format("{0}", parName.ToString());
dataSelect[i].AutoSize = false;
dataSelect[i].Font = new Font(dataLabels[i].Font.FontFamily, 8, dataLabels[i].Font.Style);
//Globals.dataHolders[i].TextAlign = ContentAlignment.BottomLeft;
dataSelect[i].Size = dataSelect[i].PreferredSize;
if (i % 20 == 0)
{
dataColumns[whichColumn] = new TableLayoutPanel();
dataColumns[whichColumn].ColumnCount = 2;
dataColumns[whichColumn].RowCount = 20;
}
dataColumns[whichColumn].Controls.Add(dataLabels[i]);
dataColumns[whichColumn].Controls.Add(dataSelect[i]);
dataColumns[whichColumn].Size = dataColumns[whichColumn].PreferredSize;
if (dataColumns[whichColumn].Size.Height > maximumY) maximumY = dataColumns[whichColumn].Size.Height;
//if (tabStream[pktCnt].Size.Width > maximumX) maximumX = tabStream[pktCnt].Size.Width;
}
for (int i = 0; i != dataColumns.Length; i++)
{
flow.Controls.Add(dataColumns[i]);
}
flow.SuspendLayout();
flow.ResumeLayout(false);
//tabStream[pktCnt].AutoScroll = true;
//tabStream[pktCnt].AutoScrollPosition = new System.Drawing.Point(349, 0);
flow.Size = flow.PreferredSize;
tabStream[pktCnt].Controls.Add(flow);
tabStream[pktCnt].Name = stream.ToString();
tabStream[pktCnt].Text = String.Format("ID={0}", stream);
tabStream[pktCnt].Size = tabStream[pktCnt].PreferredSize;
if (tabStream[pktCnt].Size.Height > maximumY) maximumY = tabStream[pktCnt].Size.Height;
if (tabStream[pktCnt].Size.Width > maximumX) maximumX = tabStream[pktCnt].Size.Width;
pktCnt++;
}
foreach (TabPage stream in tabStream)
{
streamParameterTabControl.Controls.Add(stream);
}
streamParameterTabControl.SuspendLayout(); streamParameterTabControl.ResumeLayout(false);
streamParameterTabControl.Size = new Size(maximumX + 5, maximumY + 15);//streamParameterTabControl.PreferredSize;
//this.Size = this.PreferredSize;
FlowLayoutPanel selectionFlow = new FlowLayoutPanel();
selectionFlow.FlowDirection = FlowDirection.LeftToRight;
selectionFlow.Controls.Add(streamParameterTabControl);
//streamParameterTabControl.Dock = DockStyle.Fill;
Button btnOK = new Button();
btnOK.Text = "Draw";
btnOK.Click += new EventHandler(selectChannelClick);
selectionFlow.Controls.Add(btnOK);
Button btnAll = new Button();
btnAll.Text = "All";
btnAll.Click += new EventHandler(selectAllClick);
selectionFlow.Controls.Add(btnAll);
selectionFlow.Size = selectionFlow.PreferredSize;
selectionFlow.SuspendLayout();
selectionFlow.ResumeLayout(false);
this.Controls.Add(selectionFlow);
this.Size = this.PreferredSize;//new Size(maximumX + 50, maximumY + 45);
this.Text = "Select Channels to Plot";
this.SuspendLayout();
this.ResumeLayout(false);
//.........这里部分代码省略.........