/// <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); }
private void Build() { var pnlTable = new WForms.TableLayoutPanel(); pnlTable.SuspendLayout(); pnlTable.Dock = WForms.DockStyle.Fill; pnlTable.Controls.Add(BuildNif()); pnlTable.Controls.Add(BuildNombre()); pnlTable.Controls.Add(BuildTelefono()); pnlTable.Controls.Add(BuildCorreo()); pnlTable.Controls.Add(BuildFiltroYear()); pnlTable.Controls.Add(BuildPanelBotones()); pnlTable.Controls.Add(BuildPanelBotonesSeleccion()); pnlTable.ResumeLayout(false); pnlTable.MinimumSize = new Draw.Size(400, 300); pnlTable.MaximumSize = pnlTable.MinimumSize; Controls.Add(pnlTable); Controls.Add(BuildDireccion()); MinimumSize = new Draw.Size(775, 300); MaximumSize = MinimumSize; ModoSeleccion(false); ModoInicial(); }
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(); }
private void ProductUC_Load(object sender, EventArgs e) { var tbLayoutPanel = new TableLayoutPanel(); tbLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); tbLayoutPanel.Name = "tlpProduct"; tbLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.OutsetDouble; tbLayoutPanel.ColumnCount = _seatCols; for (int i = 0; i < _seatCols; i++) { tbLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, (float)(100.0 / _seatCols))); } tbLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; tbLayoutPanel.Location = new System.Drawing.Point(0, 0); tbLayoutPanel.RowCount = _seatRows; for (int i = 0; i < _seatRows; i++) { tbLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, (float)(100.0 / _seatRows))); } tbLayoutPanel.Size = this.Parent.Size; tbLayoutPanel.TabIndex = 0; this.Controls.Add(tbLayoutPanel); _progressBarList = new ProgressBarEx[_productpositioncount]; tbLayoutPanel.SuspendLayout(); for (int i = 0; i < _productpositioncount; i++) { _progressBarList[i] = new ProgressBarEx(); _progressBarList[i].BackgroundPainter = PainterFactory.GetProductStatePainter("EMPTY"); _progressBarList[i].ProgressPainter = PainterFactory.GetProgressPainter("BURNIN"); _progressBarList[i].BorderPainter = PainterFactory.GetPlainBoarderPainter("UNACTIVE"); _progressBarList[i].Dock = System.Windows.Forms.DockStyle.Fill; _progressBarList[i].Location = new System.Drawing.Point(6 + (i % _seatCols) * 166, 6 + (i / _seatCols) * 124); _progressBarList[i].MarqueePercentage = 25; _progressBarList[i].MarqueeSpeed = 30; _progressBarList[i].MarqueeStep = 1; _progressBarList[i].Maximum = 100; _progressBarList[i].Minimum = 0; _progressBarList[i].Name = "pbeProduct" + i.ToString(); _progressBarList[i].ProgressPadding = 0; _progressBarList[i].ProgressType = ProgressODoom.ProgressType.Smooth; _progressBarList[i].ShowPercentage = false; _progressBarList[i].Text = (i + 1).ToString() + ": "; _progressBarList[i].Value = 0; _progressBarList[i].MouseDown += new System.Windows.Forms.MouseEventHandler(this.ProgressBarEx_MouseDown); _progressBarList[i].ContextMenuStrip = null; tbLayoutPanel.Controls.Add(_progressBarList[i]); } tbLayoutPanel.ResumeLayout(false); }
/// <summary> /// Copies the last row of a This and all controls in it. /// </summary> /// <param name="This">This TableLayoutPanel.</param> /// <param name="controlCallback">The control callback if any, passing targetRow,targetColumn,sourceControl,targetControl.</param> /// <param name="allowSuspendingLayout">if set to <c>true</c> allows suspending the This layout during this process to prevent flickering.</param> public static void CopyLastRow(this TableLayoutPanel This, Action <int, int, Control, Control> controlCallback = null, bool allowSuspendingLayout = true) { #if NET35 Debug.Assert(This != null); #else Contract.Requires(This != null); #endif if (allowSuspendingLayout) { This.SuspendLayout(); } var lastRow = This.RowCount - 1; // add line This.RowCount++; // add style var rowStyle = This.RowStyles[lastRow]; This.RowStyles.Add(new RowStyle(rowStyle.SizeType, rowStyle.Height)); // copy controls var alreadyVisitedControls = new Dictionary <Control, bool>(); for (var i = This.ColumnCount; i > 0;) { --i; var control = This.GetControlFromPositionFixed(i, lastRow); if (control == null || !alreadyVisitedControls.TryAdd(control, true)) { continue; } var newControl = control.Duplicate(); if (controlCallback != null) { controlCallback(lastRow + 1, i, control, newControl); } This.Controls.Add(newControl, i, lastRow + 1); This.SetRowSpan(newControl, This.GetRowSpan(control)); This.SetColumnSpan(newControl, This.GetColumnSpan(control)); } if (allowSuspendingLayout) { This.ResumeLayout(true); } }
public TableLayoutHandler() { Control = new swf.TableLayoutPanel { Margin = swf.Padding.Empty, Dock = swf.DockStyle.Fill, Size = sd.Size.Empty, MinimumSize = sd.Size.Empty, AutoSize = true, AutoSizeMode = swf.AutoSizeMode.GrowAndShrink }; this.Spacing = TableLayout.DefaultSpacing; this.Padding = TableLayout.DefaultPadding; Control.SuspendLayout(); }
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(); }
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(); }
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; }
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(); }
private void FormChooseRecipe_Load(object sender, EventArgs e) { if (!Directory.Exists(System.Environment.CurrentDirectory + "\\Recipe")) { Directory.CreateDirectory(System.Environment.CurrentDirectory + "\\Recipe"); } DirectoryInfo d = new DirectoryInfo(System.Environment.CurrentDirectory + "\\Recipe"); FileSystemInfo[] fsinfos = d.GetFileSystemInfos("*.recipe"); tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel1.ColumnCount = 5; tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; //tableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; for (int i = 0; i < fsinfos.Length; i++) { System.Windows.Forms.RadioButton rdo_Control = new System.Windows.Forms.RadioButton(); rdo_Control.AutoSize = true; //rdo_Control.Checked = true; rdo_Control.Location = new System.Drawing.Point(25, 248); rdo_Control.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); rdo_Control.Name = "rdo_Recipe" + i.ToString(); rdo_Control.Size = new System.Drawing.Size(103, 25); rdo_Control.TabIndex = i + 1; rdo_Control.TabStop = true; rdo_Control.Text = fsinfos[i].Name.Split('.')[0]; rdo_Control.UseVisualStyleBackColor = true; tableLayoutPanel1.Controls.Add(rdo_Control); } panel1.Controls.Add(tableLayoutPanel1); tableLayoutPanel1.SuspendLayout(); }
/// <summary> /// 07. Còn đang chỉnh sửa /// chưa viết sự kiện cho các button /// </summary> /// <param name="text"></param> /// <param name="caption"></param> /// <param name="buttons"></param> /// <param name="icon"></param> /// <returns></returns> public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon) { System.Windows.Forms.Panel pnButton; System.Windows.Forms.TableLayoutPanel tlpPanelMain; System.Windows.Forms.PictureBox ptbBaner; System.Windows.Forms.TableLayoutPanel tlpPanelContent; System.Windows.Forms.PictureBox ptbIcon; System.Windows.Forms.Label lbMessage; // // Button // System.Windows.Forms.Button btnAbort07; System.Windows.Forms.Button btnRetry07; System.Windows.Forms.Button btnIgnore07; System.Windows.Forms.Button btnOK07; System.Windows.Forms.Button btnCancel07; System.Windows.Forms.Button btnYes07; System.Windows.Forms.Button btnNo07; // // frmMsgBox01 // Khởi tạo & định dạng Form // frmMsgBox07 = new Form(); frmMsgBox07.Name = "frmMsgBox07"; frmMsgBox07.Text = caption; frmMsgBox07.StartPosition = FormStartPosition.CenterParent; frmMsgBox07.Size = new System.Drawing.Size(500, 300); // Kích thước form frmMsgBox07.MinimizeBox = false; frmMsgBox07.MaximizeBox = false; frmMsgBox07.FormBorderStyle = FormBorderStyle.FixedDialog; pnButton = new System.Windows.Forms.Panel(); btnAbort07 = new System.Windows.Forms.Button(); btnRetry07 = new System.Windows.Forms.Button(); btnIgnore07 = new System.Windows.Forms.Button(); btnOK07 = new System.Windows.Forms.Button(); btnCancel07 = new System.Windows.Forms.Button(); btnYes07 = new System.Windows.Forms.Button(); btnNo07 = new System.Windows.Forms.Button(); tlpPanelMain = new System.Windows.Forms.TableLayoutPanel(); ptbBaner = new System.Windows.Forms.PictureBox(); tlpPanelContent = new System.Windows.Forms.TableLayoutPanel(); ptbIcon = new System.Windows.Forms.PictureBox(); lbMessage = new System.Windows.Forms.Label(); pnButton.SuspendLayout(); tlpPanelMain.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(ptbBaner)).BeginInit(); tlpPanelContent.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(ptbIcon)).BeginInit(); // // pnButton // #region Thêm & định vị các button lên pnButton switch (buttons) { case MessageBoxButtons.AbortRetryIgnore: btnAbort07.Location = new System.Drawing.Point(478 - 75 - 25 - 75 - 10 - 75 - 10, 6); btnRetry07.Location = new System.Drawing.Point(478 - 75 - 25 - 75 - 10, 6); btnIgnore07.Location = new System.Drawing.Point(478 - 75 - 25, 6); pnButton.Controls.Add(btnAbort07); pnButton.Controls.Add(btnRetry07); pnButton.Controls.Add(btnIgnore07); break; case MessageBoxButtons.OK: btnOK07.Location = new System.Drawing.Point(478 - 75 - 25, 6); pnButton.Controls.Add(btnOK07); break; case MessageBoxButtons.OKCancel: btnOK07.Location = new System.Drawing.Point(478 - 75 - 25 - 75 - 10, 6); btnCancel07.Location = new System.Drawing.Point(478 - 75 - 25, 6); pnButton.Controls.Add(btnOK07); pnButton.Controls.Add(btnCancel07); break; case MessageBoxButtons.RetryCancel: btnRetry07.Location = new System.Drawing.Point(478 - 75 - 25 - 75 - 10, 6); btnCancel07.Location = new System.Drawing.Point(478 - 75 - 25, 6); pnButton.Controls.Add(btnRetry07); pnButton.Controls.Add(btnCancel07); break; case MessageBoxButtons.YesNo: btnYes07.Location = new System.Drawing.Point(478 - 75 - 25 - 75 - 10, 6); btnNo07.Location = new System.Drawing.Point(478 - 75 - 25, 6); pnButton.Controls.Add(btnYes07); pnButton.Controls.Add(btnNo07); break; case MessageBoxButtons.YesNoCancel: btnYes07.Location = new System.Drawing.Point(478 - 75 - 25 - 75 - 10 - 75 - 10, 6); btnNo07.Location = new System.Drawing.Point(478 - 75 - 25 - 75 - 10, 6); btnCancel07.Location = new System.Drawing.Point(478 - 75 - 25, 6); pnButton.Controls.Add(btnYes07); pnButton.Controls.Add(btnNo07); pnButton.Controls.Add(btnCancel07); break; default: //OK btnOK07.Location = new System.Drawing.Point(478 - 75 - 25, 6); pnButton.Controls.Add(btnOK07); break; } #endregion pnButton.Dock = System.Windows.Forms.DockStyle.Fill; pnButton.Location = new System.Drawing.Point(3, 225); pnButton.Name = "pnButton"; pnButton.Size = new System.Drawing.Size(478, 34); pnButton.TabIndex = 1; // // tlpPanelMain // tlpPanelMain.ColumnCount = 1; tlpPanelMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tlpPanelMain.Controls.Add(pnButton, 0, 2); tlpPanelMain.Controls.Add(tlpPanelContent, 0, 1); tlpPanelMain.Controls.Add(ptbBaner, 0, 0); tlpPanelMain.Dock = System.Windows.Forms.DockStyle.Fill; tlpPanelMain.Location = new System.Drawing.Point(0, 0); tlpPanelMain.Name = "tlpPanelMain"; tlpPanelMain.RowCount = 3; tlpPanelMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F)); tlpPanelMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); tlpPanelMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); tlpPanelMain.Size = new System.Drawing.Size(484, 262); tlpPanelMain.TabIndex = 0; // // ptbBaner // ptbBaner.Dock = System.Windows.Forms.DockStyle.Fill; ptbBaner.Image = global::Core.Librarys.Properties.Resources.Baner_MsgBox_01; ptbBaner.Location = new System.Drawing.Point(3, 3); ptbBaner.Name = "ptbBaner"; ptbBaner.Size = new System.Drawing.Size(478, 44); ptbBaner.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; ptbBaner.TabIndex = 3; ptbBaner.TabStop = false; #region Thêm vào các button // Abort: Hủy bỏ, kết thúc công việc btnAbort07 = new System.Windows.Forms.Button(); btnAbort07.Name = "btnAbort07"; btnAbort07.Size = new System.Drawing.Size(75, 23); btnAbort07.TabIndex = 0; btnAbort07.Text = "&Hủy bỏ"; btnAbort07.UseVisualStyleBackColor = true; btnAbort07.Click += new System.EventHandler(btnAbort05_Click); // Retry: Thử lại btnRetry07 = new System.Windows.Forms.Button(); btnRetry07.Name = "btnRetry07"; btnRetry07.Size = new System.Drawing.Size(75, 23); btnRetry07.TabIndex = 0; btnRetry07.Text = "&Thử lại"; btnRetry07.UseVisualStyleBackColor = true; btnRetry07.Click += new System.EventHandler(btnRetry05_Click); // Ignore: Bỏ qua, vẫn chạy tiếp chương trình btnIgnore07 = new System.Windows.Forms.Button(); btnIgnore07.Name = "btnIgnore07"; btnIgnore07.Size = new System.Drawing.Size(75, 23); btnIgnore07.TabIndex = 0; btnIgnore07.Text = "&Bỏ qua"; btnIgnore07.UseVisualStyleBackColor = true; btnIgnore07.Click += new System.EventHandler(btnIgnore05_Click); // btnOK07: Nhận btnOK07 = new System.Windows.Forms.Button(); btnOK07.Name = "btnOK07"; btnOK07.Size = new System.Drawing.Size(75, 23); btnOK07.TabIndex = 0; btnOK07.Text = "&Nhận"; btnOK07.UseVisualStyleBackColor = true; btnOK07.Click += new System.EventHandler(btnOK05_Click); // btnCancel07: Hủy btnCancel07 = new System.Windows.Forms.Button(); btnCancel07.Name = "btnCancel07"; btnCancel07.Size = new System.Drawing.Size(75, 23); btnCancel07.TabIndex = 0; btnCancel07.Text = "&Hủy"; btnCancel07.UseVisualStyleBackColor = true; btnCancel07.Click += new System.EventHandler(btnCancel05_Click); // btnYes07: Có btnYes07 = new System.Windows.Forms.Button(); btnYes07.Name = "btnYes07"; btnYes07.Size = new System.Drawing.Size(75, 23); btnYes07.TabIndex = 0; btnYes07.Text = "&Có"; btnYes07.UseVisualStyleBackColor = true; btnYes07.Click += new System.EventHandler(btnYes05_Click); // btnNo07: Không btnNo07 = new System.Windows.Forms.Button(); btnNo07.Name = "btnNo07"; btnNo07.Size = new System.Drawing.Size(75, 23); btnNo07.TabIndex = 0; btnNo07.Text = "&Không"; btnNo07.UseVisualStyleBackColor = true; btnNo07.Click += new System.EventHandler(btnNo05_Click); #endregion // // tlpPanelContent // tlpPanelContent.BackColor = System.Drawing.SystemColors.ControlLightLight; tlpPanelContent.ColumnCount = 2; tlpPanelContent.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F)); tlpPanelContent.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tlpPanelContent.Controls.Add(ptbIcon, 0, 1); tlpPanelContent.Controls.Add(lbMessage, 1, 1); tlpPanelContent.Dock = System.Windows.Forms.DockStyle.Fill; tlpPanelContent.Location = new System.Drawing.Point(3, 53); tlpPanelContent.Name = "tlpPanelContent"; tlpPanelContent.RowCount = 2; tlpPanelContent.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 10F)); tlpPanelContent.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); tlpPanelContent.Size = new System.Drawing.Size(478, 166); tlpPanelContent.TabIndex = 2; // // ptbIcon // ptbIcon.Dock = System.Windows.Forms.DockStyle.Top; switch (icon) { case MessageBoxIcon.Asterisk: // MessageBoxIcon.Information ptbIcon.Image = global::Core.Librarys.Properties.Resources.Button_Info_Icon_64_01; break; case MessageBoxIcon.Error: // MessageBoxIcon.Hand, MessageBoxIcon.Stop ptbIcon.Image = global::Core.Librarys.Properties.Resources.Button_Error_Icon_64_01; break; case MessageBoxIcon.Exclamation: // MessageBoxIcon.Warning ptbIcon.Image = global::Core.Librarys.Properties.Resources.Exclamatio_Icon_64_01; break; case MessageBoxIcon.None: //ptbIcon.Image = global::Core.Librarys.Properties.Resources.info64; break; case MessageBoxIcon.Question: ptbIcon.Image = global::Core.Librarys.Properties.Resources.Button_Help_icon_64_01; break; default: break; } ptbIcon.Location = new System.Drawing.Point(3, 13); ptbIcon.Name = "ptbIcon"; ptbIcon.Size = new System.Drawing.Size(44, 44); ptbIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; ptbIcon.TabIndex = 0; ptbIcon.TabStop = false; // // lbMessage // lbMessage.Dock = System.Windows.Forms.DockStyle.Fill; lbMessage.Location = new System.Drawing.Point(53, 10); lbMessage.Name = "lbMessage"; lbMessage.Size = new System.Drawing.Size(422, 156); lbMessage.TabIndex = 1; lbMessage.Text = text; // // TestForm1 // frmMsgBox07.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); frmMsgBox07.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; frmMsgBox07.ClientSize = new System.Drawing.Size(484, 262); frmMsgBox07.Controls.Add(tlpPanelMain); frmMsgBox07.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; frmMsgBox07.MaximizeBox = false; frmMsgBox07.MinimizeBox = false; frmMsgBox07.Name = "TestForm1"; frmMsgBox07.Text = "Thông báo"; ((System.ComponentModel.ISupportInitialize)(ptbBaner)).EndInit(); ((System.ComponentModel.ISupportInitialize)(ptbIcon)).EndInit(); frmMsgBox07.ResumeLayout(false); return(frmMsgBox07.ShowDialog()); }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(MakeLinkDialog)); this.lblItem = new Label(); this.rbLinkDefault = new RadioButton(); this.rbLinkSymbolic = new RadioButton(); this.rbLinkHard = new RadioButton(); this.rbLinkJunction = new RadioButton(); this.rbLinkShellFolder = new RadioButton(); this.cmbDestFolder = new ComboBox(); this.tsItem = new VirtualItemToolStrip(this.components); this.btnOk = new Button(); this.btnTree = new Button(); this.btnCancel = new Button(); this.bvlButtons = new Bevel(); this.Validator = new ValidatorProvider(); this.AutoComplete = new AutoCompleteProvider(); Label label = new Label(); TableLayoutPanel panel = new TableLayoutPanel(); GroupBox control = new GroupBox(); TableLayoutPanel panel2 = new TableLayoutPanel(); TableLayoutPanel panel3 = new TableLayoutPanel(); panel.SuspendLayout(); control.SuspendLayout(); panel2.SuspendLayout(); panel3.SuspendLayout(); base.SuspendLayout(); manager.ApplyResources(label, "lblIn"); label.Name = "lblIn"; manager.ApplyResources(panel, "tlpBack"); panel.Controls.Add(this.lblItem, 0, 0); panel.Controls.Add(control, 0, 4); panel.Controls.Add(this.cmbDestFolder, 0, 3); panel.Controls.Add(this.tsItem, 0, 1); panel.Controls.Add(label, 0, 2); panel.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; panel.Name = "tlpBack"; manager.ApplyResources(this.lblItem, "lblItem"); this.lblItem.Name = "lblItem"; manager.ApplyResources(control, "grpLinkType"); control.Controls.Add(panel2); control.Name = "grpLinkType"; control.TabStop = false; manager.ApplyResources(panel2, "tlpLinkType"); panel2.Controls.Add(this.rbLinkDefault, 0, 0); panel2.Controls.Add(this.rbLinkSymbolic, 0, 4); panel2.Controls.Add(this.rbLinkHard, 0, 1); panel2.Controls.Add(this.rbLinkJunction, 0, 3); panel2.Controls.Add(this.rbLinkShellFolder, 0, 2); panel2.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; panel2.Name = "tlpLinkType"; panel2.Validating += new CancelEventHandler(this.tlpLinkType_Validating); manager.ApplyResources(this.rbLinkDefault, "rbLinkDefault"); this.rbLinkDefault.Checked = true; this.rbLinkDefault.Name = "rbLinkDefault"; this.rbLinkDefault.TabStop = true; this.rbLinkDefault.UseVisualStyleBackColor = true; this.rbLinkDefault.Click += new EventHandler(this.rbLinkDefault_Click); manager.ApplyResources(this.rbLinkSymbolic, "rbLinkSymbolic"); this.rbLinkSymbolic.Name = "rbLinkSymbolic"; this.rbLinkSymbolic.UseVisualStyleBackColor = true; this.rbLinkSymbolic.Click += new EventHandler(this.rbLinkDefault_Click); manager.ApplyResources(this.rbLinkHard, "rbLinkHard"); this.rbLinkHard.Name = "rbLinkHard"; this.rbLinkHard.UseVisualStyleBackColor = true; this.rbLinkHard.Click += new EventHandler(this.rbLinkDefault_Click); manager.ApplyResources(this.rbLinkJunction, "rbLinkJunction"); this.rbLinkJunction.Name = "rbLinkJunction"; this.rbLinkJunction.UseVisualStyleBackColor = true; this.rbLinkJunction.Click += new EventHandler(this.rbLinkDefault_Click); manager.ApplyResources(this.rbLinkShellFolder, "rbLinkShellFolder"); this.rbLinkShellFolder.Name = "rbLinkShellFolder"; this.rbLinkShellFolder.UseVisualStyleBackColor = true; this.rbLinkShellFolder.Click += new EventHandler(this.rbLinkDefault_Click); this.AutoComplete.SetAutoComplete(this.cmbDestFolder, true); manager.ApplyResources(this.cmbDestFolder, "cmbDestFolder"); this.cmbDestFolder.Name = "cmbDestFolder"; this.Validator.SetValidateOn(this.cmbDestFolder, ValidateOn.TextChangedTimer); this.cmbDestFolder.Validating += new CancelEventHandler(this.cmbDestFolder_Validating); this.cmbDestFolder.Enter += new EventHandler(this.cmbDestFolder_Enter); this.cmbDestFolder.Validated += new EventHandler(this.cmbDestFolder_Validated); this.cmbDestFolder.TextUpdate += new EventHandler(this.cmbDestFolder_TextUpdate); this.tsItem.BackColor = SystemColors.ButtonFace; this.tsItem.GripStyle = ToolStripGripStyle.Hidden; manager.ApplyResources(this.tsItem, "tsItem"); this.tsItem.Name = "tsItem"; manager.ApplyResources(panel3, "tlpButtons"); panel3.Controls.Add(this.btnOk, 1, 0); panel3.Controls.Add(this.btnTree, 2, 0); panel3.Controls.Add(this.btnCancel, 3, 0); panel3.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; panel3.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.btnTree, "btnTree"); this.btnTree.Name = "btnTree"; this.btnTree.UseVisualStyleBackColor = true; this.btnTree.Click += new EventHandler(this.btnTree_Click); manager.ApplyResources(this.btnCancel, "btnCancel"); this.btnCancel.DialogResult = DialogResult.Cancel; this.btnCancel.Name = "btnCancel"; this.btnCancel.UseVisualStyleBackColor = true; manager.ApplyResources(this.bvlButtons, "bvlButtons"); this.bvlButtons.ForeColor = SystemColors.ControlDarkDark; this.bvlButtons.Name = "bvlButtons"; this.bvlButtons.Sides = Border3DSide.Top; this.bvlButtons.Style = Border3DStyle.Flat; this.Validator.Owner = this; this.Validator.OwnerFormValidate = FormValidate.DisableAcceptButton; this.AutoComplete.UseEnvironmentVariablesSource = Settings.Default.UseACSEnvironmentVariables; this.AutoComplete.UseFileSystemSource = Settings.Default.UseACSFileSystem; 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(panel); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "MakeLinkDialog"; base.ShowInTaskbar = false; base.Activated += new EventHandler(this.MakeLinkDialog_Activated); panel.ResumeLayout(false); panel.PerformLayout(); control.ResumeLayout(false); control.PerformLayout(); panel2.ResumeLayout(false); panel2.PerformLayout(); panel3.ResumeLayout(false); panel3.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
/// <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:"; // // episodeLabel // episodeLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; episodeLabel.AutoSize = true; episodeLabel.Location = new System.Drawing.Point(4, 31); episodeLabel.Name = "episodeLabel"; episodeLabel.Size = new System.Drawing.Size(86, 13); episodeLabel.TabIndex = 3; episodeLabel.Text = "Episode number:"; // // NumberInputDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(213, 81); this.ControlBox = false; this.Controls.Add(table); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "NumberInputDialog"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Set Episode"; table.ResumeLayout(false); table.PerformLayout(); flowButtons.ResumeLayout(false); this.ResumeLayout(false); }
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 (); }
/// <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 mainTable; System.Windows.Forms.Label nameLabel; this.listResults = new System.Windows.Forms.ListView(); this.nameColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.idColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.nameText = new System.Windows.Forms.TextBox(); this.searchButton = new System.Windows.Forms.Button(); this.closeButton = new System.Windows.Forms.Button(); this.selectButton = new System.Windows.Forms.Button(); mainTable = new System.Windows.Forms.TableLayoutPanel(); nameLabel = new System.Windows.Forms.Label(); mainTable.SuspendLayout(); this.SuspendLayout(); // // mainTable // mainTable.ColumnCount = 5; mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 44F)); mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F)); mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F)); mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F)); mainTable.Controls.Add(this.listResults, 0, 0); mainTable.Controls.Add(nameLabel, 0, 1); mainTable.Controls.Add(this.nameText, 1, 1); mainTable.Controls.Add(this.searchButton, 2, 1); mainTable.Controls.Add(this.closeButton, 4, 1); mainTable.Controls.Add(this.selectButton, 3, 1); mainTable.Dock = System.Windows.Forms.DockStyle.Fill; mainTable.Location = new System.Drawing.Point(0, 0); mainTable.Name = "mainTable"; mainTable.RowCount = 2; mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.31298F)); mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.68702F)); mainTable.Size = new System.Drawing.Size(458, 237); mainTable.TabIndex = 1; // // listResults // this.listResults.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.nameColumn, this.idColumn }); mainTable.SetColumnSpan(this.listResults, 5); this.listResults.Dock = System.Windows.Forms.DockStyle.Fill; this.listResults.FullRowSelect = true; this.listResults.Location = new System.Drawing.Point(3, 3); this.listResults.MultiSelect = false; this.listResults.Name = "listResults"; this.listResults.Size = new System.Drawing.Size(452, 205); this.listResults.TabIndex = 0; this.listResults.UseCompatibleStateImageBehavior = false; this.listResults.View = System.Windows.Forms.View.Details; this.listResults.DoubleClick += new System.EventHandler(this.ListResultsDoubleClick); // // nameColumn // this.nameColumn.Text = "Show Name"; this.nameColumn.Width = 338; // // idColumn // this.idColumn.Text = "TVDB ID"; this.idColumn.Width = 105; // // nameLabel // nameLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; nameLabel.AutoSize = true; nameLabel.Location = new System.Drawing.Point(3, 217); nameLabel.Name = "nameLabel"; nameLabel.Size = new System.Drawing.Size(38, 13); nameLabel.TabIndex = 1; nameLabel.Text = "Name:"; // // nameText // this.nameText.Dock = System.Windows.Forms.DockStyle.Fill; this.nameText.Location = new System.Drawing.Point(47, 214); this.nameText.Name = "nameText"; this.nameText.Size = new System.Drawing.Size(165, 20); this.nameText.TabIndex = 2; // // searchButton // this.searchButton.Dock = System.Windows.Forms.DockStyle.Fill; this.searchButton.Location = new System.Drawing.Point(218, 214); this.searchButton.Name = "searchButton"; this.searchButton.Size = new System.Drawing.Size(75, 20); this.searchButton.TabIndex = 3; this.searchButton.Text = "Search"; this.searchButton.UseVisualStyleBackColor = true; this.searchButton.Click += new System.EventHandler(this.SearchButtonClick); // // closeButton // this.closeButton.Dock = System.Windows.Forms.DockStyle.Fill; this.closeButton.Location = new System.Drawing.Point(380, 214); this.closeButton.Name = "closeButton"; this.closeButton.Size = new System.Drawing.Size(75, 20); this.closeButton.TabIndex = 4; this.closeButton.Text = "Close"; this.closeButton.UseVisualStyleBackColor = true; this.closeButton.Click += new System.EventHandler(this.CloseButtonClick); // // selectButton // this.selectButton.Dock = System.Windows.Forms.DockStyle.Fill; this.selectButton.Location = new System.Drawing.Point(299, 214); this.selectButton.Name = "selectButton"; this.selectButton.Size = new System.Drawing.Size(75, 20); this.selectButton.TabIndex = 5; this.selectButton.Text = "Select"; this.selectButton.UseVisualStyleBackColor = true; this.selectButton.Click += new System.EventHandler(this.SelectButtonClick); // // ShowSearchDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(458, 237); this.ControlBox = false; this.Controls.Add(mainTable); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "ShowSearchDialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Show Search"; this.Load += new System.EventHandler(this.ShowSearchDialogLoad); mainTable.ResumeLayout(false); mainTable.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { playerListMapSplitContainer = new SplitContainer(); playerBoxSearchBarContainer = new Panel(); playerBox = new PlayerListControl(); searchBarContainer = new TableLayoutPanel(); playerSearchBox = new ZklTextBox(); sendBox = new SendBox(); topicPanel = new Panel(); hideButton = new BitmapButton(); topicBox = new ChatBox(); ChatBox = new ChatBox(); splitContainer1 = new ZkSplitContainer(); ((ISupportInitialize)playerListMapSplitContainer).BeginInit(); playerListMapSplitContainer.Panel1.SuspendLayout(); playerListMapSplitContainer.SuspendLayout(); playerBoxSearchBarContainer.SuspendLayout(); searchBarContainer.SuspendLayout(); topicPanel.SuspendLayout(); ((ISupportInitialize)splitContainer1).BeginInit(); splitContainer1.Panel1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); splitContainer1.SuspendLayout(); SuspendLayout(); // // playerListMapSplitContainer // playerListMapSplitContainer.BackColor = Color.DimGray; playerListMapSplitContainer.Dock = DockStyle.Fill; playerListMapSplitContainer.Location = new Point(0, 0); playerListMapSplitContainer.Margin = new Padding(2); playerListMapSplitContainer.Name = "playerListMapSplitContainer"; playerListMapSplitContainer.Orientation = Orientation.Horizontal; // // playerListMapSplitContainer.Panel1 // playerListMapSplitContainer.Panel1.Controls.Add(playerBoxSearchBarContainer); // // playerListMapSplitContainer.Panel2 // playerListMapSplitContainer.Panel2.AutoScroll = true; playerListMapSplitContainer.Size = new Size(326, 793); playerListMapSplitContainer.SplitterDistance = 565; playerListMapSplitContainer.SplitterWidth = 3; playerListMapSplitContainer.TabIndex = 0; playerListMapSplitContainer.SplitterMoved += new SplitterEventHandler(playerListMapSplitContainer_SplitterMoved); // // playerBoxSearchBarContainer // playerBoxSearchBarContainer.AutoSizeMode = AutoSizeMode.GrowAndShrink; playerBoxSearchBarContainer.Controls.Add(playerBox); playerBoxSearchBarContainer.Controls.Add(searchBarContainer); playerBoxSearchBarContainer.Dock = DockStyle.Fill; playerBoxSearchBarContainer.Location = new Point(0, 0); playerBoxSearchBarContainer.Name = "playerBoxSearchBarContainer"; playerBoxSearchBarContainer.Size = new Size(326, 565); playerBoxSearchBarContainer.TabIndex = 2; // // playerBox // playerBox.BackColor = Color.DimGray; playerBox.Dock = DockStyle.Fill; playerBox.ForeColor = Color.White; playerBox.HoverItem = null; playerBox.IsBattle = false; playerBox.IsSorted = false; playerBox.Location = new Point(0, 24); playerBox.Name = "playerBox"; playerBox.SelectedItem = null; playerBox.Size = new Size(326, 541); playerBox.TabIndex = 1; // // searchBarContainer // searchBarContainer.ColumnCount = 2; searchBarContainer.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize, 20F)); searchBarContainer.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 20F)); searchBarContainer.Controls.Add(playerSearchBox, 1, 0); searchBarContainer.Dock = DockStyle.Top; searchBarContainer.Location = new Point(0, 0); searchBarContainer.Name = "searchBarContainer"; searchBarContainer.RowCount = 1; searchBarContainer.RowStyles.Add(new RowStyle(SizeType.Absolute, 25F)); searchBarContainer.Size = new Size(326, 30); searchBarContainer.AutoSize = false; searchBarContainer.TabIndex = 0; // // playerSearchBox // playerSearchBox.Anchor = AnchorStyles.Left | AnchorStyles.Top; playerSearchBox.Location = new Point(23, 22); playerSearchBox.Name = "playerSearchBox"; playerSearchBox.Size = new Size(300, 20); playerSearchBox.Margin = new Padding(0); playerSearchBox.TabIndex = 0; playerSearchBox.Font = Config.GeneralFontSmall; playerSearchBox.TextChanged += new EventHandler(playerSearchBox_TextChanged); // // sendBox // sendBox.Dock = DockStyle.Bottom; sendBox.Font = Config.GeneralFont; sendBox.ForeColor = Color.White; sendBox.Location = new Point(0, 765); sendBox.Multiline = true; sendBox.Name = "sendBox"; sendBox.Size = new Size(800, 28); sendBox.TabIndex = 0; sendBox.WordWrap = false; // // topicPanel // topicPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; topicPanel.Controls.Add(hideButton); topicPanel.Controls.Add(topicBox); topicPanel.Dock = DockStyle.Top; topicPanel.Location = new Point(0, 0); topicPanel.Margin = new Padding(0); topicPanel.Name = "topicPanel"; topicPanel.Size = new Size(800, 0); topicPanel.TabIndex = 3; // // hideButton // hideButton.Anchor = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right); hideButton.BackColor = Color.Transparent; hideButton.ButtonStyle = FrameBorderRenderer.StyleType.DarkHive; hideButton.Cursor = Cursors.Hand; hideButton.FlatStyle = FlatStyle.Flat; hideButton.ForeColor = Color.White; hideButton.Location = new Point(711, -29); hideButton.Name = "hideButton"; hideButton.Size = new Size(75, 23); hideButton.SoundType = SoundPalette.SoundType.Click; hideButton.TabIndex = 3; hideButton.Text = "Hide"; hideButton.UseVisualStyleBackColor = true; hideButton.Click += new EventHandler(hideButton_Click); // // topicBox // topicBox.BackColor = Color.FromArgb((int)(byte)0, (int)(byte)30, (int)(byte)40); topicBox.ChatBackgroundColor = 0; topicBox.DefaultTooltip = null; topicBox.Dock = DockStyle.Fill; topicBox.Font = Config.GeneralFontBig; topicBox.HideScroll = false; topicBox.IRCForeColor = 0; topicBox.LineHighlight = null; topicBox.Location = new Point(0, 0); topicBox.Name = "topicBox"; topicBox.NoColorMode = false; topicBox.ShowHistory = true; topicBox.ShowJoinLeave = false; topicBox.ShowUnreadLine = true; topicBox.SingleLine = false; topicBox.Size = new Size(800, 0); topicBox.TabIndex = 2; topicBox.TextFilter = null; // // ChatBox // ChatBox.BackColor = Color.DimGray; ChatBox.ChatBackgroundColor = 0; ChatBox.DefaultTooltip = null; ChatBox.Dock = DockStyle.Fill; ChatBox.Font = Config.GeneralFont; ChatBox.ForeColor = Color.White; ChatBox.HideScroll = false; ChatBox.IRCForeColor = 0; ChatBox.LineHighlight = null; ChatBox.Location = new Point(0, 0); ChatBox.Name = "ChatBox"; ChatBox.NoColorMode = false; ChatBox.ShowHistory = true; ChatBox.ShowJoinLeave = false; ChatBox.ShowUnreadLine = true; ChatBox.SingleLine = false; ChatBox.Size = new Size(800, 765); ChatBox.TabIndex = 1; ChatBox.TextFilter = null; // // splitContainer1 // splitContainer1.BackColor = Color.Transparent; splitContainer1.Dock = DockStyle.Fill; splitContainer1.Location = new Point(0, 0); splitContainer1.Margin = new Padding(0); splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // splitContainer1.Panel1.Controls.Add(ChatBox); splitContainer1.Panel1.Controls.Add(topicPanel); splitContainer1.Panel1.Controls.Add(sendBox); // // splitContainer1.Panel2 // splitContainer1.Panel2.Controls.Add(playerListMapSplitContainer); splitContainer1.Size = new Size(1130, 793); splitContainer1.SplitterDistance = 800; splitContainer1.TabIndex = 0; splitContainer1.SplitterMoved += splitContainer1_SplitterMoved; playerBox.BackColor = Config.BgColor; playerBox.ForeColor = Config.TextColor; playerBox_zklclick.AttachTo(playerBox); playerBox_zklclick.MouseClick += PlayerBox_MouseClick; playerSearchBox.BackColor = Config.BgColor; playerSearchBox.ForeColor = Config.TextColor; var searchLabel = new Label() { Text = "Search: ", AutoSize = true, Font = Config.GeneralFontSmall, Margin = new Padding(3) }; searchBarContainer.Controls.Add(searchLabel, 0, 0); // // ChatControl // Controls.Add(splitContainer1); Margin = new Padding(0); Name = "ChatControl"; Size = new Size(1130, 793); playerListMapSplitContainer.Panel1.ResumeLayout(false); ((ISupportInitialize)playerListMapSplitContainer).EndInit(); playerListMapSplitContainer.ResumeLayout(false); playerBoxSearchBarContainer.ResumeLayout(false); searchBarContainer.ResumeLayout(false); topicPanel.ResumeLayout(false); splitContainer1.Panel1.ResumeLayout(false); splitContainer1.Panel1.PerformLayout(); splitContainer1.Panel2.ResumeLayout(false); ((ISupportInitialize)splitContainer1).EndInit(); splitContainer1.ResumeLayout(false); ResumeLayout(false); }
//NOTE: The following procedure is required by the Windows Form Designer //It can be modified using the Windows Form Designer. //Do not modify it using the code editor. [System.Diagnostics.DebuggerStepThrough()] private void InitializeComponent() { System.Windows.Forms.TableLayoutPanel TableLayoutPanel1; System.Windows.Forms.ColumnHeader ColumnHeader1; System.Windows.Forms.ColumnHeader ColumnHeader2; System.Windows.Forms.ColumnHeader ColumnHeader3; System.Windows.Forms.ColumnHeader ColumnHeader4; System.Windows.Forms.FlowLayoutPanel FlowLayoutPanel1; this.lstDeltas = new System.Windows.Forms.ListBox(); this.lstValues = new System.Windows.Forms.ListView(); this.chkDisplayUnchanged = new System.Windows.Forms.CheckBox(); this.btnCancel = new System.Windows.Forms.Button(); this.btnDelete = new System.Windows.Forms.Button(); this.btnSave = new System.Windows.Forms.Button(); this.lblID = new System.Windows.Forms.Label(); this.dlgSave = new System.Windows.Forms.SaveFileDialog(); TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); ColumnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); FlowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); TableLayoutPanel1.SuspendLayout(); FlowLayoutPanel1.SuspendLayout(); this.SuspendLayout(); // // TableLayoutPanel1 // TableLayoutPanel1.ColumnCount = 1; TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); TableLayoutPanel1.Controls.Add(this.lstDeltas, 0, 0); TableLayoutPanel1.Controls.Add(this.lstValues, 0, 2); TableLayoutPanel1.Controls.Add(this.chkDisplayUnchanged, 0, 3); TableLayoutPanel1.Controls.Add(FlowLayoutPanel1, 0, 4); TableLayoutPanel1.Controls.Add(this.lblID, 0, 1); TableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; TableLayoutPanel1.Location = new System.Drawing.Point(0, 0); TableLayoutPanel1.Name = "TableLayoutPanel1"; TableLayoutPanel1.RowCount = 6; TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); TableLayoutPanel1.Size = new System.Drawing.Size(600, 534); TableLayoutPanel1.TabIndex = 1; // // lstDeltas // this.lstDeltas.Dock = System.Windows.Forms.DockStyle.Fill; this.lstDeltas.FormattingEnabled = true; this.lstDeltas.Location = new System.Drawing.Point(3, 3); this.lstDeltas.Name = "lstDeltas"; this.lstDeltas.Size = new System.Drawing.Size(594, 222); this.lstDeltas.TabIndex = 1; this.lstDeltas.SelectedIndexChanged += new System.EventHandler(this.lstDeltas_SelectedIndexChanged); // // lstValues // this.lstValues.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { ColumnHeader1, ColumnHeader2, ColumnHeader3, ColumnHeader4 }); this.lstValues.Dock = System.Windows.Forms.DockStyle.Fill; this.lstValues.FullRowSelect = true; this.lstValues.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; this.lstValues.HideSelection = false; this.lstValues.Location = new System.Drawing.Point(3, 251); this.lstValues.MultiSelect = false; this.lstValues.Name = "lstValues"; this.lstValues.Size = new System.Drawing.Size(594, 222); this.lstValues.TabIndex = 2; this.lstValues.UseCompatibleStateImageBehavior = false; this.lstValues.View = System.Windows.Forms.View.Details; this.lstValues.SelectedIndexChanged += new System.EventHandler(this.lstValues_SelectedIndexChanged); // // ColumnHeader1 // ColumnHeader1.Text = "Key"; ColumnHeader1.Width = 150; // // ColumnHeader2 // ColumnHeader2.Text = "Old value"; ColumnHeader2.Width = 100; // // ColumnHeader3 // ColumnHeader3.Text = "New value"; ColumnHeader3.Width = 100; // // ColumnHeader4 // ColumnHeader4.Text = "Descriptor"; // // chkDisplayUnchanged // this.chkDisplayUnchanged.AutoSize = true; this.chkDisplayUnchanged.Location = new System.Drawing.Point(3, 479); this.chkDisplayUnchanged.Name = "chkDisplayUnchanged"; this.chkDisplayUnchanged.Size = new System.Drawing.Size(290, 17); this.chkDisplayUnchanged.TabIndex = 3; this.chkDisplayUnchanged.Text = "List all values (including those which have not changed)"; this.chkDisplayUnchanged.UseVisualStyleBackColor = true; this.chkDisplayUnchanged.CheckedChanged += new System.EventHandler(this.lstDeltas_SelectedIndexChanged); // // FlowLayoutPanel1 // FlowLayoutPanel1.AutoSize = true; FlowLayoutPanel1.Controls.Add(this.btnCancel); FlowLayoutPanel1.Controls.Add(this.btnDelete); FlowLayoutPanel1.Controls.Add(this.btnSave); FlowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; FlowLayoutPanel1.Location = new System.Drawing.Point(0, 499); FlowLayoutPanel1.Margin = new System.Windows.Forms.Padding(0); FlowLayoutPanel1.Name = "FlowLayoutPanel1"; FlowLayoutPanel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; FlowLayoutPanel1.Size = new System.Drawing.Size(600, 35); FlowLayoutPanel1.TabIndex = 4; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.Location = new System.Drawing.Point(503, 3); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(94, 29); this.btnCancel.TabIndex = 0; this.btnCancel.Text = "Cancel"; this.btnCancel.UseVisualStyleBackColor = true; // // btnDelete // this.btnDelete.Enabled = false; this.btnDelete.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnDelete.Location = new System.Drawing.Point(359, 3); this.btnDelete.Margin = new System.Windows.Forms.Padding(20, 3, 3, 3); this.btnDelete.Name = "btnDelete"; this.btnDelete.Size = new System.Drawing.Size(121, 29); this.btnDelete.TabIndex = 1; this.btnDelete.Text = "Delete value"; this.btnDelete.UseVisualStyleBackColor = true; this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); // // btnSave // this.btnSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnSave.Location = new System.Drawing.Point(216, 3); this.btnSave.Margin = new System.Windows.Forms.Padding(12, 3, 3, 3); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(128, 29); this.btnSave.TabIndex = 2; this.btnSave.Text = "Save delta file"; this.btnSave.UseVisualStyleBackColor = true; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // lblID // this.lblID.AutoSize = true; this.lblID.Dock = System.Windows.Forms.DockStyle.Fill; this.lblID.Location = new System.Drawing.Point(3, 228); this.lblID.Name = "lblID"; this.lblID.Size = new System.Drawing.Size(594, 20); this.lblID.TabIndex = 6; // // dlgSave // this.dlgSave.DefaultExt = "delta"; this.dlgSave.Filter = "*.delta|*.delta"; this.dlgSave.RestoreDirectory = true; // // frmDeltas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(600, 534); this.Controls.Add(TableLayoutPanel1); this.MaximizeBox = false; this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(500, 400); this.Name = "frmDeltas"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Configuration deltas"; TableLayoutPanel1.ResumeLayout(false); TableLayoutPanel1.PerformLayout(); FlowLayoutPanel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <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 register_container; MetroFramework.Controls.MetroLabel register_label; System.Windows.Forms.TableLayoutPanel username_and_password_container; System.Windows.Forms.TableLayoutPanel first_and_last_name_container; System.Windows.Forms.TableLayoutPanel button_container; this.username = new MetroFramework.Controls.MetroTextBox(); this.password = new MetroFramework.Controls.MetroTextBox(); this.lastname = new MetroFramework.Controls.MetroTextBox(); this.firstname = new MetroFramework.Controls.MetroTextBox(); this.submit_button = new MetroFramework.Controls.MetroButton(); this.cancel_button = new MetroFramework.Controls.MetroButton(); this.birthday = new MetroFramework.Controls.MetroDateTime(); register_container = new System.Windows.Forms.TableLayoutPanel(); register_label = new MetroFramework.Controls.MetroLabel(); username_and_password_container = new System.Windows.Forms.TableLayoutPanel(); first_and_last_name_container = new System.Windows.Forms.TableLayoutPanel(); button_container = new System.Windows.Forms.TableLayoutPanel(); register_container.SuspendLayout(); username_and_password_container.SuspendLayout(); first_and_last_name_container.SuspendLayout(); button_container.SuspendLayout(); this.SuspendLayout(); // // register_container // register_container.ColumnCount = 1; register_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); register_container.Controls.Add(register_label, 0, 0); register_container.Controls.Add(username_and_password_container, 0, 1); register_container.Controls.Add(first_and_last_name_container, 0, 2); register_container.Controls.Add(button_container, 0, 4); register_container.Controls.Add(this.birthday, 0, 3); register_container.Location = new System.Drawing.Point(0, 31); register_container.Name = "register_container"; register_container.RowCount = 5; register_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); register_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F)); register_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 15F)); register_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 15F)); register_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); register_container.Size = new System.Drawing.Size(240, 309); register_container.TabIndex = 5; // // register_label // register_label.Anchor = System.Windows.Forms.AnchorStyles.None; register_label.AutoSize = true; register_label.Location = new System.Drawing.Point(48, 21); register_label.Name = "register_label"; register_label.Size = new System.Drawing.Size(143, 19); register_label.TabIndex = 5; register_label.Text = "Register a new account"; register_label.UseCustomBackColor = true; register_label.UseCustomForeColor = true; // // username_and_password_container // username_and_password_container.ColumnCount = 1; username_and_password_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); username_and_password_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); username_and_password_container.Controls.Add(this.username, 0, 0); username_and_password_container.Controls.Add(this.password, 0, 1); username_and_password_container.Location = new System.Drawing.Point(3, 64); username_and_password_container.Name = "username_and_password_container"; username_and_password_container.RowCount = 2; username_and_password_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); username_and_password_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); username_and_password_container.Size = new System.Drawing.Size(234, 86); username_and_password_container.TabIndex = 1; // // username // this.username.Anchor = System.Windows.Forms.AnchorStyles.None; this.username.CustomButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.username.CustomButton.Image = null; this.username.CustomButton.Location = new System.Drawing.Point(142, 1); this.username.CustomButton.Name = ""; this.username.CustomButton.Size = new System.Drawing.Size(21, 21); this.username.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.username.CustomButton.TabIndex = 1; this.username.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.username.CustomButton.UseSelectable = true; this.username.CustomButton.Visible = false; this.username.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.username.Lines = new string[0]; this.username.Location = new System.Drawing.Point(35, 10); this.username.MaxLength = 32767; this.username.Name = "username"; this.username.PasswordChar = '\0'; this.username.PromptText = "Username"; this.username.ScrollBars = System.Windows.Forms.ScrollBars.None; this.username.SelectedText = ""; this.username.SelectionLength = 0; this.username.SelectionStart = 0; this.username.ShortcutsEnabled = true; this.username.Size = new System.Drawing.Size(164, 23); this.username.TabIndex = 1; this.username.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.username.UseCustomBackColor = true; this.username.UseCustomForeColor = true; this.username.UseSelectable = true; this.username.WaterMark = "Username"; this.username.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.username.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.username.TextChanged += new System.EventHandler(this.username_TextChanged); // // password // this.password.Anchor = System.Windows.Forms.AnchorStyles.None; this.password.CustomButton.Image = null; this.password.CustomButton.Location = new System.Drawing.Point(142, 1); this.password.CustomButton.Name = ""; this.password.CustomButton.Size = new System.Drawing.Size(21, 21); this.password.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.password.CustomButton.TabIndex = 1; this.password.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.password.CustomButton.UseSelectable = true; this.password.CustomButton.Visible = false; this.password.Lines = new string[0]; this.password.Location = new System.Drawing.Point(35, 53); this.password.MaxLength = 32767; this.password.Name = "password"; this.password.PasswordChar = '●'; this.password.PromptText = "Password"; this.password.ScrollBars = System.Windows.Forms.ScrollBars.None; this.password.SelectedText = ""; this.password.SelectionLength = 0; this.password.SelectionStart = 0; this.password.ShortcutsEnabled = true; this.password.Size = new System.Drawing.Size(164, 23); this.password.TabIndex = 2; this.password.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.password.UseCustomBackColor = true; this.password.UseCustomForeColor = true; this.password.UseSelectable = true; this.password.UseSystemPasswordChar = true; this.password.WaterMark = "Password"; this.password.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.password.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.password.TextChanged += new System.EventHandler(this.password_TextChanged); // // first_and_last_name_container // first_and_last_name_container.ColumnCount = 2; first_and_last_name_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); first_and_last_name_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); first_and_last_name_container.Controls.Add(this.lastname, 1, 0); first_and_last_name_container.Controls.Add(this.firstname, 0, 0); first_and_last_name_container.Location = new System.Drawing.Point(3, 156); first_and_last_name_container.Name = "first_and_last_name_container"; first_and_last_name_container.RowCount = 1; first_and_last_name_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); first_and_last_name_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); first_and_last_name_container.Size = new System.Drawing.Size(234, 40); first_and_last_name_container.TabIndex = 2; // // lastname // this.lastname.Anchor = System.Windows.Forms.AnchorStyles.Left; this.lastname.CustomButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.lastname.CustomButton.Image = null; this.lastname.CustomButton.Location = new System.Drawing.Point(57, 1); this.lastname.CustomButton.Name = ""; this.lastname.CustomButton.Size = new System.Drawing.Size(21, 21); this.lastname.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.lastname.CustomButton.TabIndex = 1; this.lastname.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.lastname.CustomButton.UseSelectable = true; this.lastname.CustomButton.Visible = false; this.lastname.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.lastname.Lines = new string[0]; this.lastname.Location = new System.Drawing.Point(120, 8); this.lastname.MaxLength = 32767; this.lastname.Name = "lastname"; this.lastname.PasswordChar = '\0'; this.lastname.PromptText = "Last Name"; this.lastname.ScrollBars = System.Windows.Forms.ScrollBars.None; this.lastname.SelectedText = ""; this.lastname.SelectionLength = 0; this.lastname.SelectionStart = 0; this.lastname.ShortcutsEnabled = true; this.lastname.Size = new System.Drawing.Size(79, 23); this.lastname.TabIndex = 2; this.lastname.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.lastname.UseCustomBackColor = true; this.lastname.UseCustomForeColor = true; this.lastname.UseSelectable = true; this.lastname.WaterMark = "Last Name"; this.lastname.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.lastname.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.lastname.TextChanged += new System.EventHandler(this.lastname_TextChanged); // // firstname // this.firstname.Anchor = System.Windows.Forms.AnchorStyles.Right; this.firstname.CustomButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.firstname.CustomButton.Image = null; this.firstname.CustomButton.Location = new System.Drawing.Point(57, 1); this.firstname.CustomButton.Name = ""; this.firstname.CustomButton.Size = new System.Drawing.Size(21, 21); this.firstname.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.firstname.CustomButton.TabIndex = 1; this.firstname.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; this.firstname.CustomButton.UseSelectable = true; this.firstname.CustomButton.Visible = false; this.firstname.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.firstname.Lines = new string[0]; this.firstname.Location = new System.Drawing.Point(35, 8); this.firstname.MaxLength = 32767; this.firstname.Name = "firstname"; this.firstname.PasswordChar = '\0'; this.firstname.PromptText = "First Name"; this.firstname.ScrollBars = System.Windows.Forms.ScrollBars.None; this.firstname.SelectedText = ""; this.firstname.SelectionLength = 0; this.firstname.SelectionStart = 0; this.firstname.ShortcutsEnabled = true; this.firstname.Size = new System.Drawing.Size(79, 23); this.firstname.TabIndex = 1; this.firstname.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.firstname.UseCustomBackColor = true; this.firstname.UseCustomForeColor = true; this.firstname.UseSelectable = true; this.firstname.WaterMark = "First Name"; this.firstname.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); this.firstname.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.firstname.TextChanged += new System.EventHandler(this.firstname_TextChanged); // // button_container // button_container.ColumnCount = 2; button_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); button_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); button_container.Controls.Add(this.submit_button, 1, 0); button_container.Controls.Add(this.cancel_button, 0, 0); button_container.Location = new System.Drawing.Point(3, 248); button_container.Name = "button_container"; button_container.RowCount = 1; button_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); button_container.Size = new System.Drawing.Size(234, 58); button_container.TabIndex = 6; // // submit_button // this.submit_button.Anchor = System.Windows.Forms.AnchorStyles.Left; this.submit_button.Location = new System.Drawing.Point(120, 17); this.submit_button.Name = "submit_button"; this.submit_button.Size = new System.Drawing.Size(79, 23); this.submit_button.TabIndex = 5; this.submit_button.Text = "Submit"; this.submit_button.UseCustomBackColor = true; this.submit_button.UseCustomForeColor = true; this.submit_button.UseSelectable = true; this.submit_button.Click += new System.EventHandler(this.submit_button_Click); // // cancel_button // this.cancel_button.Anchor = System.Windows.Forms.AnchorStyles.Right; this.cancel_button.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.cancel_button.Location = new System.Drawing.Point(35, 17); this.cancel_button.Name = "cancel_button"; this.cancel_button.Size = new System.Drawing.Size(79, 23); this.cancel_button.TabIndex = 4; this.cancel_button.Text = "Cancel"; this.cancel_button.UseCustomBackColor = true; this.cancel_button.UseCustomForeColor = true; this.cancel_button.UseSelectable = true; this.cancel_button.Click += new System.EventHandler(this.cancel_button_Click); // // birthday // this.birthday.Anchor = System.Windows.Forms.AnchorStyles.None; this.birthday.CalendarForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.birthday.CalendarMonthBackground = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); this.birthday.CalendarTitleBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); this.birthday.CalendarTitleForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.birthday.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.birthday.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.birthday.Location = new System.Drawing.Point(38, 207); this.birthday.MinimumSize = new System.Drawing.Size(0, 29); this.birthday.Name = "birthday"; this.birthday.Size = new System.Drawing.Size(164, 29); this.birthday.TabIndex = 3; this.birthday.UseCustomBackColor = true; this.birthday.UseCustomForeColor = true; // // RegistrationScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(240, 340); this.Controls.Add(register_container); this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(240, 340); this.MinimumSize = new System.Drawing.Size(240, 340); this.Name = "RegistrationScreen"; this.Opacity = 0.8D; this.Resizable = false; this.ShowIcon = false; this.Theme = MetroFramework.MetroThemeStyle.Dark; register_container.ResumeLayout(false); register_container.PerformLayout(); username_and_password_container.ResumeLayout(false); first_and_last_name_container.ResumeLayout(false); button_container.ResumeLayout(false); this.ResumeLayout(false); }
/// <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 // this.groupDirectories.Controls.Add(tableDirectories); this.groupDirectories.Dock = System.Windows.Forms.DockStyle.Fill; this.groupDirectories.Location = new System.Drawing.Point(3, 3); this.groupDirectories.Name = "groupDirectories"; this.groupDirectories.Size = new System.Drawing.Size(631, 199); this.groupDirectories.TabIndex = 0; this.groupDirectories.TabStop = false; this.groupDirectories.Text = "Directory Settings"; // // tableDirectories // tableDirectories.ColumnCount = 3; tableDirectories.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 126F)); tableDirectories.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableDirectories.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 105F)); tableDirectories.Controls.Add(sourceLabel, 0, 0); tableDirectories.Controls.Add(this.sourceText, 1, 0); tableDirectories.Controls.Add(this.sourceBrowse, 2, 0); tableDirectories.Controls.Add(destinationListLabel, 0, 1); tableDirectories.Controls.Add(this.destinationList, 1, 1); tableDirectories.Controls.Add(destinationButtonsFlow, 2, 1); tableDirectories.Controls.Add(defaultDestinationLabel, 0, 3); tableDirectories.Controls.Add(this.defaultDestinationDirectory, 1, 3); tableDirectories.Controls.Add(this.label1, 0, 2); tableDirectories.Controls.Add(this.ignoreList, 1, 2); tableDirectories.Controls.Add(this.flowLayoutPanel1, 2, 2); tableDirectories.Dock = System.Windows.Forms.DockStyle.Fill; tableDirectories.Location = new System.Drawing.Point(3, 16); tableDirectories.Name = "tableDirectories"; tableDirectories.RowCount = 4; tableDirectories.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F)); tableDirectories.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableDirectories.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 71F)); tableDirectories.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); tableDirectories.Size = new System.Drawing.Size(625, 180); tableDirectories.TabIndex = 0; // // sourceLabel // sourceLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; sourceLabel.AutoSize = true; sourceLabel.Location = new System.Drawing.Point(34, 6); sourceLabel.Name = "sourceLabel"; sourceLabel.Size = new System.Drawing.Size(89, 13); sourceLabel.TabIndex = 0; sourceLabel.Text = "Source Directory:"; // // sourceText // this.sourceText.Dock = System.Windows.Forms.DockStyle.Fill; this.sourceText.Location = new System.Drawing.Point(129, 3); this.sourceText.Name = "sourceText"; this.sourceText.ReadOnly = true; this.sourceText.Size = new System.Drawing.Size(388, 20); this.sourceText.TabIndex = 1; this.toolTip.SetToolTip(this.sourceText, "The source directory to search for TV Show files."); // // sourceBrowse // this.sourceBrowse.Dock = System.Windows.Forms.DockStyle.Fill; this.sourceBrowse.Location = new System.Drawing.Point(523, 3); this.sourceBrowse.Name = "sourceBrowse"; this.sourceBrowse.Size = new System.Drawing.Size(99, 20); this.sourceBrowse.TabIndex = 2; this.sourceBrowse.Text = "Browse"; this.sourceBrowse.UseVisualStyleBackColor = true; this.sourceBrowse.Click += new System.EventHandler(this.SourceBrowseClick); // // destinationListLabel // destinationListLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; destinationListLabel.AutoSize = true; destinationListLabel.Location = new System.Drawing.Point(7, 51); destinationListLabel.Name = "destinationListLabel"; destinationListLabel.Size = new System.Drawing.Size(116, 13); destinationListLabel.TabIndex = 5; destinationListLabel.Text = "Destination Directories:"; // // destinationList // this.destinationList.Dock = System.Windows.Forms.DockStyle.Fill; this.destinationList.FormattingEnabled = true; this.destinationList.Location = new System.Drawing.Point(129, 29); this.destinationList.Name = "destinationList"; this.destinationList.Size = new System.Drawing.Size(388, 57); this.destinationList.TabIndex = 6; this.toolTip.SetToolTip(this.destinationList, "All the directories where TV Shows are stored. Only the selected one will have TV" + " moved to it but all will be used in Missing and Duplicate episode searches."); // // destinationButtonsFlow // destinationButtonsFlow.Controls.Add(this.addDestinationButton); destinationButtonsFlow.Controls.Add(this.removeDestinationButton); destinationButtonsFlow.Dock = System.Windows.Forms.DockStyle.Fill; destinationButtonsFlow.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; destinationButtonsFlow.Location = new System.Drawing.Point(520, 26); destinationButtonsFlow.Margin = new System.Windows.Forms.Padding(0); destinationButtonsFlow.Name = "destinationButtonsFlow"; destinationButtonsFlow.Size = new System.Drawing.Size(105, 63); destinationButtonsFlow.TabIndex = 7; // // addDestinationButton // this.addDestinationButton.Location = new System.Drawing.Point(3, 3); this.addDestinationButton.Name = "addDestinationButton"; this.addDestinationButton.Size = new System.Drawing.Size(99, 23); this.addDestinationButton.TabIndex = 0; this.addDestinationButton.Text = "Add"; this.addDestinationButton.UseVisualStyleBackColor = true; this.addDestinationButton.Click += new System.EventHandler(this.AddDestinationButtonClick); // // removeDestinationButton // this.removeDestinationButton.Location = new System.Drawing.Point(3, 32); this.removeDestinationButton.Name = "removeDestinationButton"; this.removeDestinationButton.Size = new System.Drawing.Size(99, 23); this.removeDestinationButton.TabIndex = 1; this.removeDestinationButton.Text = "Remove"; this.removeDestinationButton.UseVisualStyleBackColor = true; this.removeDestinationButton.Click += new System.EventHandler(this.RemoveDestinationButtonClick); // // defaultDestinationLabel // defaultDestinationLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; defaultDestinationLabel.AutoSize = true; defaultDestinationLabel.Location = new System.Drawing.Point(23, 163); defaultDestinationLabel.Name = "defaultDestinationLabel"; defaultDestinationLabel.Size = new System.Drawing.Size(100, 13); defaultDestinationLabel.TabIndex = 8; defaultDestinationLabel.Text = "Default Destination:"; // // defaultDestinationDirectory // this.defaultDestinationDirectory.Dock = System.Windows.Forms.DockStyle.Fill; this.defaultDestinationDirectory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.defaultDestinationDirectory.FormattingEnabled = true; this.defaultDestinationDirectory.Location = new System.Drawing.Point(129, 163); this.defaultDestinationDirectory.Name = "defaultDestinationDirectory"; this.defaultDestinationDirectory.Size = new System.Drawing.Size(388, 21); this.defaultDestinationDirectory.TabIndex = 9; // // sortOptionsGroup // sortOptionsGroup.Controls.Add(sortOptionsFlow); sortOptionsGroup.Dock = System.Windows.Forms.DockStyle.Fill; sortOptionsGroup.Location = new System.Drawing.Point(3, 262); sortOptionsGroup.Name = "sortOptionsGroup"; sortOptionsGroup.Size = new System.Drawing.Size(631, 89); sortOptionsGroup.TabIndex = 1; sortOptionsGroup.TabStop = false; sortOptionsGroup.Text = "Sort Options"; // // sortOptionsFlow // sortOptionsFlow.Controls.Add(this.recurseSubdirectoriesCheck); sortOptionsFlow.Controls.Add(this.deleteEmptyCheck); sortOptionsFlow.Controls.Add(this.renameIfExistsCheck); sortOptionsFlow.Controls.Add(this.addUnmatchedShowsCheck); sortOptionsFlow.Controls.Add(this.unlockAndUpdateCheck); sortOptionsFlow.Controls.Add(this.lockShowWithNoNewEpisodesCheck); sortOptionsFlow.Dock = System.Windows.Forms.DockStyle.Fill; sortOptionsFlow.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; sortOptionsFlow.Location = new System.Drawing.Point(3, 16); sortOptionsFlow.Name = "sortOptionsFlow"; sortOptionsFlow.Size = new System.Drawing.Size(625, 70); sortOptionsFlow.TabIndex = 0; // // recurseSubdirectoriesCheck // this.recurseSubdirectoriesCheck.AutoSize = true; this.recurseSubdirectoriesCheck.Location = new System.Drawing.Point(3, 3); this.recurseSubdirectoriesCheck.Name = "recurseSubdirectoriesCheck"; this.recurseSubdirectoriesCheck.Size = new System.Drawing.Size(136, 17); this.recurseSubdirectoriesCheck.TabIndex = 0; this.recurseSubdirectoriesCheck.Text = "Recurse Subdirectories"; this.toolTip.SetToolTip(this.recurseSubdirectoriesCheck, "When selected, this option will search the subdirectories of the source directory" + " as well."); this.recurseSubdirectoriesCheck.UseVisualStyleBackColor = true; // // deleteEmptyCheck // this.deleteEmptyCheck.AutoSize = true; this.deleteEmptyCheck.Location = new System.Drawing.Point(3, 26); this.deleteEmptyCheck.Name = "deleteEmptyCheck"; this.deleteEmptyCheck.Size = new System.Drawing.Size(159, 17); this.deleteEmptyCheck.TabIndex = 1; this.deleteEmptyCheck.Text = "Delete Empty Subdirectories"; this.toolTip.SetToolTip(this.deleteEmptyCheck, "When selected, this option will delete subdirectories of Source Directory after f" + "iles have been moved out of them if this leaves the directory empty."); this.deleteEmptyCheck.UseVisualStyleBackColor = true; // // renameIfExistsCheck // this.renameIfExistsCheck.AutoSize = true; this.renameIfExistsCheck.Location = new System.Drawing.Point(3, 49); this.renameIfExistsCheck.Name = "renameIfExistsCheck"; this.renameIfExistsCheck.Size = new System.Drawing.Size(213, 17); this.renameIfExistsCheck.TabIndex = 2; this.renameIfExistsCheck.Text = "Rename if Episode Exists at Destination"; this.toolTip.SetToolTip(this.renameIfExistsCheck, "When selected, this option will search the destination directoy for the episode b" + "eing processed and renamed the copy there if it exists with a different name."); this.renameIfExistsCheck.UseVisualStyleBackColor = true; // // addUnmatchedShowsCheck // this.addUnmatchedShowsCheck.AutoSize = true; this.addUnmatchedShowsCheck.Location = new System.Drawing.Point(222, 3); this.addUnmatchedShowsCheck.Name = "addUnmatchedShowsCheck"; this.addUnmatchedShowsCheck.Size = new System.Drawing.Size(203, 17); this.addUnmatchedShowsCheck.TabIndex = 3; this.addUnmatchedShowsCheck.Text = "Add Unmatched Shows Automatically"; this.toolTip.SetToolTip(this.addUnmatchedShowsCheck, resources.GetString("addUnmatchedShowsCheck.ToolTip")); this.addUnmatchedShowsCheck.UseVisualStyleBackColor = true; // // unlockAndUpdateCheck // this.unlockAndUpdateCheck.AutoSize = true; this.unlockAndUpdateCheck.Location = new System.Drawing.Point(222, 26); this.unlockAndUpdateCheck.Name = "unlockAndUpdateCheck"; this.unlockAndUpdateCheck.Size = new System.Drawing.Size(202, 17); this.unlockAndUpdateCheck.TabIndex = 4; this.unlockAndUpdateCheck.Text = "Unlock and Update Locked Matches"; this.toolTip.SetToolTip(this.unlockAndUpdateCheck, "When selected, this option will unlock any shows that are locked and update them " + "if a match is found."); this.unlockAndUpdateCheck.UseVisualStyleBackColor = true; // // lockShowWithNoNewEpisodesCheck // this.lockShowWithNoNewEpisodesCheck.AutoSize = true; this.lockShowWithNoNewEpisodesCheck.Location = new System.Drawing.Point(222, 49); this.lockShowWithNoNewEpisodesCheck.Name = "lockShowWithNoNewEpisodesCheck"; this.lockShowWithNoNewEpisodesCheck.Size = new System.Drawing.Size(264, 17); this.lockShowWithNoNewEpisodesCheck.TabIndex = 5; this.lockShowWithNoNewEpisodesCheck.Text = "Lock Show After 3 Weeks With No New Episodes\r\n"; this.toolTip.SetToolTip(this.lockShowWithNoNewEpisodesCheck, "When selected, during an update, if the show hasn\'t \r\nhad any new episodes for 3 " + "weeks, the show will be\r\nlocked and skipped in future updates."); this.lockShowWithNoNewEpisodesCheck.UseVisualStyleBackColor = true; // // searchOptionsGroup // searchOptionsGroup.Controls.Add(searchOptionsFlow); searchOptionsGroup.Dock = System.Windows.Forms.DockStyle.Fill; searchOptionsGroup.Location = new System.Drawing.Point(3, 357); searchOptionsGroup.Name = "searchOptionsGroup"; searchOptionsGroup.Size = new System.Drawing.Size(631, 50); searchOptionsGroup.TabIndex = 2; searchOptionsGroup.TabStop = false; searchOptionsGroup.Text = "Search Options"; // // searchOptionsFlow // searchOptionsFlow.Controls.Add(this.regExButton); searchOptionsFlow.Controls.Add(this.fileExtensionsButton); searchOptionsFlow.Controls.Add(editOverwriteKeywordsButton); searchOptionsFlow.Dock = System.Windows.Forms.DockStyle.Fill; searchOptionsFlow.Location = new System.Drawing.Point(3, 16); searchOptionsFlow.Name = "searchOptionsFlow"; searchOptionsFlow.Size = new System.Drawing.Size(625, 31); searchOptionsFlow.TabIndex = 0; // // regExButton // this.regExButton.Location = new System.Drawing.Point(3, 3); this.regExButton.Name = "regExButton"; this.regExButton.Size = new System.Drawing.Size(136, 23); this.regExButton.TabIndex = 0; this.regExButton.Text = "Edit Regular Expressions"; this.toolTip.SetToolTip(this.regExButton, "Edit the regular expressions used for searching.\r\nSee http://code.google.com/p/tv" + "sorter for more\r\ninformation."); this.regExButton.UseVisualStyleBackColor = true; this.regExButton.Click += new System.EventHandler(this.RegExButtonClick); // // fileExtensionsButton // this.fileExtensionsButton.Location = new System.Drawing.Point(145, 3); this.fileExtensionsButton.Name = "fileExtensionsButton"; this.fileExtensionsButton.Size = new System.Drawing.Size(136, 23); this.fileExtensionsButton.TabIndex = 1; this.fileExtensionsButton.Text = "Edit File Extensions"; this.toolTip.SetToolTip(this.fileExtensionsButton, "Edit the file extensions that are searched."); this.fileExtensionsButton.UseVisualStyleBackColor = true; this.fileExtensionsButton.Click += new System.EventHandler(this.FileExtensionsButtonClick); // // editOverwriteKeywordsButton // editOverwriteKeywordsButton.Location = new System.Drawing.Point(287, 3); editOverwriteKeywordsButton.Name = "editOverwriteKeywordsButton"; editOverwriteKeywordsButton.Size = new System.Drawing.Size(146, 23); editOverwriteKeywordsButton.TabIndex = 2; editOverwriteKeywordsButton.Text = "Edit Overwrite Keywords"; this.toolTip.SetToolTip(editOverwriteKeywordsButton, resources.GetString("editOverwriteKeywordsButton.ToolTip")); editOverwriteKeywordsButton.UseVisualStyleBackColor = true; editOverwriteKeywordsButton.Click += new System.EventHandler(this.EditOverwriteKeywordsButtonClick); // // formatOptionsGroup // formatOptionsGroup.Controls.Add(formatTable); formatOptionsGroup.Dock = System.Windows.Forms.DockStyle.Fill; formatOptionsGroup.Location = new System.Drawing.Point(3, 208); formatOptionsGroup.Name = "formatOptionsGroup"; formatOptionsGroup.Size = new System.Drawing.Size(631, 48); formatOptionsGroup.TabIndex = 3; formatOptionsGroup.TabStop = false; formatOptionsGroup.Text = "Format Options"; // // formatTable // formatTable.ColumnCount = 3; formatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 126F)); formatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); formatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 105F)); formatTable.Controls.Add(formatLabel, 0, 0); formatTable.Controls.Add(this.formatText, 1, 0); formatTable.Controls.Add(this.formatBuilderButton, 2, 0); formatTable.Dock = System.Windows.Forms.DockStyle.Fill; formatTable.Location = new System.Drawing.Point(3, 16); formatTable.Name = "formatTable"; formatTable.RowCount = 1; formatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); formatTable.Size = new System.Drawing.Size(625, 29); formatTable.TabIndex = 0; // // formatLabel // formatLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; formatLabel.AutoSize = true; formatLabel.Location = new System.Drawing.Point(46, 8); formatLabel.Name = "formatLabel"; formatLabel.Size = new System.Drawing.Size(77, 13); formatLabel.TabIndex = 0; formatLabel.Text = "Output Format:"; // // formatText // this.formatText.Dock = System.Windows.Forms.DockStyle.Fill; this.formatText.Location = new System.Drawing.Point(129, 3); this.formatText.Name = "formatText"; this.formatText.Size = new System.Drawing.Size(388, 20); this.formatText.TabIndex = 1; this.toolTip.SetToolTip(this.formatText, "The formatting string used to set the output path for an episode. This setting ca" + "n be overriden on a per show basis."); // // formatBuilderButton // this.formatBuilderButton.Dock = System.Windows.Forms.DockStyle.Top; this.formatBuilderButton.Location = new System.Drawing.Point(523, 3); this.formatBuilderButton.Name = "formatBuilderButton"; this.formatBuilderButton.Size = new System.Drawing.Size(99, 23); this.formatBuilderButton.TabIndex = 2; this.formatBuilderButton.Text = "Format Builder"; this.formatBuilderButton.UseVisualStyleBackColor = true; this.formatBuilderButton.Click += new System.EventHandler(this.FormatBuilderButtonClick); // // flowBottomButtons // flowBottomButtons.Controls.Add(this.revertButton); flowBottomButtons.Controls.Add(this.saveButton); flowBottomButtons.Dock = System.Windows.Forms.DockStyle.Fill; flowBottomButtons.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; flowBottomButtons.Location = new System.Drawing.Point(3, 413); flowBottomButtons.Name = "flowBottomButtons"; flowBottomButtons.Size = new System.Drawing.Size(631, 34); flowBottomButtons.TabIndex = 4; // // revertButton // this.revertButton.Location = new System.Drawing.Point(553, 3); this.revertButton.Name = "revertButton"; this.revertButton.Size = new System.Drawing.Size(75, 23); this.revertButton.TabIndex = 0; this.revertButton.Text = "Revert"; this.revertButton.UseVisualStyleBackColor = true; this.revertButton.Click += new System.EventHandler(this.RevertButtonClick); // // saveButton // this.saveButton.Location = new System.Drawing.Point(472, 3); this.saveButton.Name = "saveButton"; this.saveButton.Size = new System.Drawing.Size(75, 23); this.saveButton.TabIndex = 1; this.saveButton.Text = "Save"; this.saveButton.UseVisualStyleBackColor = true; this.saveButton.Click += new System.EventHandler(this.SaveButtonClick); // // label1 // this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(43, 118); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 13); this.label1.TabIndex = 10; this.label1.Text = "Ignored folders:"; // // ignoreList // this.ignoreList.Dock = System.Windows.Forms.DockStyle.Fill; this.ignoreList.FormattingEnabled = true; this.ignoreList.Location = new System.Drawing.Point(129, 92); this.ignoreList.Name = "ignoreList"; this.ignoreList.Size = new System.Drawing.Size(388, 65); this.ignoreList.TabIndex = 11; // // flowLayoutPanel1 // this.flowLayoutPanel1.Controls.Add(this.addIgnore_btn); this.flowLayoutPanel1.Controls.Add(this.removeIgnore_btn); this.flowLayoutPanel1.Location = new System.Drawing.Point(523, 92); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Size = new System.Drawing.Size(99, 65); this.flowLayoutPanel1.TabIndex = 12; // // addIgnore_btn // this.addIgnore_btn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.addIgnore_btn.Location = new System.Drawing.Point(3, 3); this.addIgnore_btn.Name = "addIgnore_btn"; this.addIgnore_btn.Size = new System.Drawing.Size(96, 23); this.addIgnore_btn.TabIndex = 0; this.addIgnore_btn.Text = "Add"; this.addIgnore_btn.UseVisualStyleBackColor = true; this.addIgnore_btn.Click += new System.EventHandler(this.addIgnore_btn_Click); // // removeIgnore_btn // this.removeIgnore_btn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.removeIgnore_btn.Location = new System.Drawing.Point(3, 32); this.removeIgnore_btn.Name = "removeIgnore_btn"; this.removeIgnore_btn.Size = new System.Drawing.Size(96, 23); this.removeIgnore_btn.TabIndex = 1; this.removeIgnore_btn.Text = "Remove"; this.removeIgnore_btn.UseVisualStyleBackColor = true; this.removeIgnore_btn.Click += new System.EventHandler(this.removeIgnore_btn_Click); // // Settings // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(mainTable); this.Name = "Settings"; this.Size = new System.Drawing.Size(637, 450); this.Load += new System.EventHandler(this.SettingsLoad); mainTable.ResumeLayout(false); this.groupDirectories.ResumeLayout(false); tableDirectories.ResumeLayout(false); tableDirectories.PerformLayout(); destinationButtonsFlow.ResumeLayout(false); sortOptionsGroup.ResumeLayout(false); sortOptionsFlow.ResumeLayout(false); sortOptionsFlow.PerformLayout(); searchOptionsGroup.ResumeLayout(false); searchOptionsFlow.ResumeLayout(false); formatOptionsGroup.ResumeLayout(false); formatTable.ResumeLayout(false); formatTable.PerformLayout(); flowBottomButtons.ResumeLayout(false); this.flowLayoutPanel1.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle(); dtgrdAttributes = new DataGridView(); description = new RichTextBox(); splitter1 = new Splitter(); panel1 = new Panel(); btnInf = new Button(); btnMinusInf = new Button(); lblColor = new Label(); lblCNoA = new Label(); tableLayoutPanel1 = new TableLayoutPanel(); rdoFloat = new RadioButton(); rdoInt = new RadioButton(); rdoColor = new RadioButton(); rdoFlags = new RadioButton(); rdoDegrees = new RadioButton(); rdoUnknown = new RadioButton(); ((ISupportInitialize)dtgrdAttributes).BeginInit(); panel1.SuspendLayout(); tableLayoutPanel1.SuspendLayout(); SuspendLayout(); // // dtgrdAttributes // dtgrdAttributes.AllowUserToAddRows = false; dtgrdAttributes.AllowUserToDeleteRows = false; dtgrdAttributes.AllowUserToResizeRows = false; dtgrdAttributes.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dtgrdAttributes.BackgroundColor = SystemColors.ControlLightLight; dtgrdAttributes.BorderStyle = BorderStyle.Fixed3D; dtgrdAttributes.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dtgrdAttributes.ColumnHeadersVisible = false; dataGridViewCellStyle1.Alignment = DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle1.BackColor = SystemColors.Window; dataGridViewCellStyle1.Font = new Font("Microsoft Sans Serif", 8.25F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); dataGridViewCellStyle1.ForeColor = SystemColors.ControlText; dataGridViewCellStyle1.Format = "N4"; dataGridViewCellStyle1.NullValue = null; dataGridViewCellStyle1.SelectionBackColor = SystemColors.Highlight; dataGridViewCellStyle1.SelectionForeColor = SystemColors.HighlightText; dataGridViewCellStyle1.WrapMode = DataGridViewTriState.False; dtgrdAttributes.DefaultCellStyle = dataGridViewCellStyle1; dtgrdAttributes.Dock = DockStyle.Fill; dtgrdAttributes.EditMode = DataGridViewEditMode.EditOnKeystroke; dtgrdAttributes.EnableHeadersVisualStyles = false; dtgrdAttributes.GridColor = SystemColors.ControlLight; dtgrdAttributes.Location = new System.Drawing.Point(0, 0); dtgrdAttributes.MultiSelect = false; dtgrdAttributes.Name = "dtgrdAttributes"; dtgrdAttributes.RowHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; dtgrdAttributes.RowHeadersWidth = 8; dtgrdAttributes.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing; dtgrdAttributes.RowTemplate.Height = 16; dtgrdAttributes.ScrollBars = ScrollBars.Vertical; dtgrdAttributes.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dtgrdAttributes.Size = new System.Drawing.Size(479, 200); dtgrdAttributes.TabIndex = 5; dtgrdAttributes.CellEndEdit += new DataGridViewCellEventHandler(dtgrdAttributes_CellEndEdit); dtgrdAttributes.CurrentCellChanged += new EventHandler(dtgrdAttributes_CurrentCellChanged); // // description // description.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; description.BackColor = SystemColors.Control; description.BorderStyle = BorderStyle.None; description.Cursor = Cursors.Default; description.Font = new Font("Microsoft Sans Serif", 11.25F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); description.ForeColor = Color.Black; description.Location = new System.Drawing.Point(0, 0); description.Name = "description"; description.ScrollBars = RichTextBoxScrollBars.Vertical; description.Size = new System.Drawing.Size(479, 74); description.TabIndex = 6; description.Text = "No Description Available."; description.LinkClicked += new LinkClickedEventHandler(description_LinkClicked); description.TextChanged += new EventHandler(description_TextChanged); // // splitter1 // splitter1.Dock = DockStyle.Bottom; splitter1.Location = new System.Drawing.Point(0, 200); splitter1.Name = "splitter1"; splitter1.Size = new System.Drawing.Size(479, 3); splitter1.TabIndex = 7; splitter1.TabStop = false; // // panel1 // panel1.Controls.Add(btnInf); panel1.Controls.Add(btnMinusInf); panel1.Controls.Add(lblColor); panel1.Controls.Add(lblCNoA); panel1.Controls.Add(tableLayoutPanel1); panel1.Controls.Add(description); panel1.Dock = DockStyle.Bottom; panel1.Location = new System.Drawing.Point(0, 203); panel1.Name = "panel1"; panel1.Size = new System.Drawing.Size(479, 102); panel1.TabIndex = 8; // // btnInf // btnInf.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; btnInf.Font = new Font("Microsoft Sans Serif", 11F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); btnInf.Location = new System.Drawing.Point(446, 44); btnInf.Name = "btnInf"; btnInf.Size = new System.Drawing.Size(30, 30); btnInf.TabIndex = 13; btnInf.Text = "∞"; btnInf.UseVisualStyleBackColor = true; btnInf.Visible = false; btnInf.Click += new EventHandler(btnInf_Click); // // btnMinusInf // btnMinusInf.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; btnMinusInf.Font = new Font("Microsoft Sans Serif", 11F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); btnMinusInf.Location = new System.Drawing.Point(412, 44); btnMinusInf.Name = "btnMinusInf"; btnMinusInf.Size = new System.Drawing.Size(30, 30); btnMinusInf.TabIndex = 12; btnMinusInf.Text = "-∞"; btnMinusInf.UseVisualStyleBackColor = true; btnMinusInf.Visible = false; btnMinusInf.Click += new EventHandler(btnMinusInf_Click); // // lblColor // lblColor.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; lblColor.BorderStyle = BorderStyle.FixedSingle; lblColor.Location = new System.Drawing.Point(394, 60); lblColor.Name = "lblColor"; lblColor.Size = new System.Drawing.Size(41, 14); lblColor.TabIndex = 10; lblColor.Visible = false; lblColor.Click += new EventHandler(lblColor_Click); // // lblCNoA // lblCNoA.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; lblCNoA.BorderStyle = BorderStyle.FixedSingle; lblCNoA.Location = new System.Drawing.Point(434, 60); lblCNoA.Name = "lblCNoA"; lblCNoA.Size = new System.Drawing.Size(41, 14); lblCNoA.TabIndex = 11; lblCNoA.Visible = false; lblCNoA.Click += new EventHandler(lblColor_Click); // // tableLayoutPanel1 // tableLayoutPanel1.ColumnCount = 6; tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); tableLayoutPanel1.Controls.Add(rdoFloat, 0, 0); tableLayoutPanel1.Controls.Add(rdoInt, 1, 0); tableLayoutPanel1.Controls.Add(rdoColor, 2, 0); tableLayoutPanel1.Controls.Add(rdoFlags, 3, 0); tableLayoutPanel1.Controls.Add(rdoDegrees, 4, 0); tableLayoutPanel1.Controls.Add(rdoUnknown, 5, 0); tableLayoutPanel1.Dock = DockStyle.Bottom; tableLayoutPanel1.Location = new System.Drawing.Point(0, 77); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 1; tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); tableLayoutPanel1.Size = new System.Drawing.Size(479, 25); tableLayoutPanel1.TabIndex = 9; // // rdoFloat // rdoFloat.Appearance = Appearance.Button; rdoFloat.AutoSize = true; rdoFloat.Dock = DockStyle.Fill; rdoFloat.Font = new Font("Microsoft Sans Serif", 8F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); rdoFloat.Location = new System.Drawing.Point(0, 0); rdoFloat.Margin = new Padding(0); rdoFloat.Name = "rdoFloat"; rdoFloat.Size = new System.Drawing.Size(79, 25); rdoFloat.TabIndex = 0; rdoFloat.TabStop = true; rdoFloat.Text = "Float"; rdoFloat.UseVisualStyleBackColor = true; rdoFloat.CheckedChanged += new EventHandler(radioButtonsChanged); // // rdoInt // rdoInt.Appearance = Appearance.Button; rdoInt.AutoSize = true; rdoInt.Dock = DockStyle.Fill; rdoInt.Font = new Font("Microsoft Sans Serif", 8F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); rdoInt.Location = new System.Drawing.Point(79, 0); rdoInt.Margin = new Padding(0); rdoInt.Name = "rdoInt"; rdoInt.Size = new System.Drawing.Size(79, 25); rdoInt.TabIndex = 1; rdoInt.TabStop = true; rdoInt.Text = "Integer"; rdoInt.UseVisualStyleBackColor = true; rdoInt.CheckedChanged += new EventHandler(radioButtonsChanged); // // rdoColor // rdoColor.Appearance = Appearance.Button; rdoColor.AutoSize = true; rdoColor.Dock = DockStyle.Fill; rdoColor.Font = new Font("Microsoft Sans Serif", 8F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); rdoColor.Location = new System.Drawing.Point(158, 0); rdoColor.Margin = new Padding(0); rdoColor.Name = "rdoColor"; rdoColor.Size = new System.Drawing.Size(79, 25); rdoColor.TabIndex = 1; rdoColor.TabStop = true; rdoColor.Text = "Color"; rdoColor.UseVisualStyleBackColor = true; rdoColor.CheckedChanged += new EventHandler(radioButtonsChanged); // // rdoFlags // rdoFlags.Appearance = Appearance.Button; rdoFlags.AutoSize = true; rdoFlags.Dock = DockStyle.Fill; rdoFlags.Font = new Font("Microsoft Sans Serif", 8F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); rdoFlags.Location = new System.Drawing.Point(237, 0); rdoFlags.Margin = new Padding(0); rdoFlags.Name = "rdoFlags"; rdoFlags.Size = new System.Drawing.Size(79, 25); rdoFlags.TabIndex = 2; rdoFlags.TabStop = true; rdoFlags.Text = "Flags"; rdoFlags.UseVisualStyleBackColor = true; rdoFlags.CheckedChanged += new EventHandler(radioButtonsChanged); // // rdoDegrees // rdoDegrees.Appearance = Appearance.Button; rdoDegrees.AutoSize = true; rdoDegrees.Dock = DockStyle.Fill; rdoDegrees.Font = new Font("Microsoft Sans Serif", 8F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); rdoDegrees.Location = new System.Drawing.Point(316, 0); rdoDegrees.Margin = new Padding(0); rdoDegrees.Name = "rdoDegrees"; rdoDegrees.Size = new System.Drawing.Size(79, 25); rdoDegrees.TabIndex = 2; rdoDegrees.TabStop = true; rdoDegrees.Text = "Degrees"; rdoDegrees.UseVisualStyleBackColor = true; rdoDegrees.CheckedChanged += new EventHandler(radioButtonsChanged); // // rdoUnknown // rdoUnknown.Appearance = Appearance.Button; rdoUnknown.AutoSize = true; rdoUnknown.Dock = DockStyle.Fill; rdoUnknown.Font = new Font("Microsoft Sans Serif", 8F, Drawing.FontStyle.Regular, GraphicsUnit.Point, 0); rdoUnknown.Location = new System.Drawing.Point(395, 0); rdoUnknown.Margin = new Padding(0); rdoUnknown.Name = "rdoUnknown"; rdoUnknown.Size = new System.Drawing.Size(84, 25); rdoUnknown.TabIndex = 1; rdoUnknown.TabStop = true; rdoUnknown.Text = "Hex"; rdoUnknown.UseVisualStyleBackColor = true; rdoUnknown.CheckedChanged += new EventHandler(radioButtonsChanged); // // AttributeGrid // Controls.Add(dtgrdAttributes); Controls.Add(splitter1); Controls.Add(panel1); Name = "AttributeGrid"; Size = new System.Drawing.Size(479, 305); ((ISupportInitialize)dtgrdAttributes).EndInit(); panel1.ResumeLayout(false); tableLayoutPanel1.ResumeLayout(false); tableLayoutPanel1.PerformLayout(); ResumeLayout(false); }
/// <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.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 // this.selectedShowBanner.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowBanner.Location = new System.Drawing.Point(3, 33); this.selectedShowBanner.Name = "selectedShowBanner"; this.selectedShowBanner.Size = new System.Drawing.Size(565, 144); this.selectedShowBanner.TabIndex = 1; this.selectedShowBanner.TabStop = false; // // selectedShowLastUpdated // this.selectedShowLastUpdated.AutoSize = true; this.selectedShowLastUpdated.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowLastUpdated.Location = new System.Drawing.Point(3, 205); this.selectedShowLastUpdated.Name = "selectedShowLastUpdated"; this.selectedShowLastUpdated.Size = new System.Drawing.Size(565, 25); this.selectedShowLastUpdated.TabIndex = 2; this.selectedShowLastUpdated.Text = "Last Updated:"; this.toolTip.SetToolTip(this.selectedShowLastUpdated, "The time that the show was last updated in TheTVDB.com\'s server time (UTC)."); // // selectedShowTvdb // this.selectedShowTvdb.AutoSize = true; this.selectedShowTvdb.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowTvdb.Location = new System.Drawing.Point(3, 180); this.selectedShowTvdb.Name = "selectedShowTvdb"; this.selectedShowTvdb.Size = new System.Drawing.Size(565, 25); this.selectedShowTvdb.TabIndex = 3; this.selectedShowTvdb.Text = "TVDB ID: "; this.toolTip.SetToolTip(this.selectedShowTvdb, "The show\'s ID on TheTVDB.com"); // // customSettingsGroup // customSettingsGroup.Controls.Add(this.customFormatTable); customSettingsGroup.Dock = System.Windows.Forms.DockStyle.Fill; customSettingsGroup.Location = new System.Drawing.Point(3, 233); customSettingsGroup.Name = "customSettingsGroup"; customSettingsGroup.Size = new System.Drawing.Size(565, 136); customSettingsGroup.TabIndex = 4; customSettingsGroup.TabStop = false; customSettingsGroup.Text = "Custom Settings"; // // customFormatTable // this.customFormatTable.ColumnCount = 3; this.customFormatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 79F)); this.customFormatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.customFormatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 102F)); this.customFormatTable.Controls.Add(this.selectedShowUseCustomFormat, 0, 0); this.customFormatTable.Controls.Add(this.selectedShowCustomFormatText, 1, 1); this.customFormatTable.Controls.Add(this.formatLabel, 0, 1); this.customFormatTable.Controls.Add(this.formatBuilder, 2, 1); this.customFormatTable.Controls.Add(this.useCustomDestinationDirectory, 0, 2); this.customFormatTable.Controls.Add(destinationLabel, 0, 3); this.customFormatTable.Controls.Add(this.customDestination, 1, 3); this.customFormatTable.Dock = System.Windows.Forms.DockStyle.Fill; this.customFormatTable.Location = new System.Drawing.Point(3, 16); this.customFormatTable.Margin = new System.Windows.Forms.Padding(0); this.customFormatTable.Name = "customFormatTable"; this.customFormatTable.RowCount = 4; this.customFormatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); this.customFormatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); this.customFormatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); this.customFormatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); this.customFormatTable.Size = new System.Drawing.Size(559, 117); this.customFormatTable.TabIndex = 3; // // selectedShowUseCustomFormat // this.selectedShowUseCustomFormat.Anchor = System.Windows.Forms.AnchorStyles.Left; this.selectedShowUseCustomFormat.AutoSize = true; this.customFormatTable.SetColumnSpan(this.selectedShowUseCustomFormat, 3); this.selectedShowUseCustomFormat.Location = new System.Drawing.Point(3, 6); this.selectedShowUseCustomFormat.Name = "selectedShowUseCustomFormat"; this.selectedShowUseCustomFormat.Size = new System.Drawing.Size(118, 17); this.selectedShowUseCustomFormat.TabIndex = 0; this.selectedShowUseCustomFormat.Text = "Use Custom Format"; this.toolTip.SetToolTip(this.selectedShowUseCustomFormat, "Indicates whether to use a custom format with this show."); this.selectedShowUseCustomFormat.UseVisualStyleBackColor = true; this.selectedShowUseCustomFormat.CheckedChanged += new System.EventHandler(this.SelectedUseCustomFormatCheckedChanged); // // selectedShowCustomFormatText // this.selectedShowCustomFormatText.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowCustomFormatText.Enabled = false; this.selectedShowCustomFormatText.Location = new System.Drawing.Point(82, 33); this.selectedShowCustomFormatText.Name = "selectedShowCustomFormatText"; this.selectedShowCustomFormatText.Size = new System.Drawing.Size(372, 20); this.selectedShowCustomFormatText.TabIndex = 2; this.toolTip.SetToolTip(this.selectedShowCustomFormatText, "The custom format to use for this show."); // // formatLabel // this.formatLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; this.formatLabel.AutoSize = true; this.formatLabel.Location = new System.Drawing.Point(34, 37); this.formatLabel.Name = "formatLabel"; this.formatLabel.Size = new System.Drawing.Size(42, 13); this.formatLabel.TabIndex = 1; this.formatLabel.Text = "Format:"; // // formatBuilder // this.formatBuilder.Enabled = false; this.formatBuilder.Location = new System.Drawing.Point(460, 33); this.formatBuilder.Name = "formatBuilder"; this.formatBuilder.Size = new System.Drawing.Size(95, 22); this.formatBuilder.TabIndex = 3; this.formatBuilder.Text = "Format Builder"; this.formatBuilder.UseVisualStyleBackColor = true; this.formatBuilder.Click += new System.EventHandler(this.FormatBuilderClick); // // useCustomDestinationDirectory // this.useCustomDestinationDirectory.Anchor = System.Windows.Forms.AnchorStyles.Left; this.useCustomDestinationDirectory.AutoSize = true; this.customFormatTable.SetColumnSpan(this.useCustomDestinationDirectory, 2); this.useCustomDestinationDirectory.Location = new System.Drawing.Point(3, 64); this.useCustomDestinationDirectory.Name = "useCustomDestinationDirectory"; this.useCustomDestinationDirectory.Size = new System.Drawing.Size(184, 17); this.useCustomDestinationDirectory.TabIndex = 4; this.useCustomDestinationDirectory.Text = "Use Custom Destination Directory"; this.useCustomDestinationDirectory.UseVisualStyleBackColor = true; this.useCustomDestinationDirectory.CheckedChanged += new System.EventHandler(this.UseCustomDestinationDirectoryCheckedChanged); // // destinationLabel // destinationLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; destinationLabel.AutoSize = true; destinationLabel.Location = new System.Drawing.Point(13, 96); destinationLabel.Name = "destinationLabel"; destinationLabel.Size = new System.Drawing.Size(63, 13); destinationLabel.TabIndex = 5; destinationLabel.Text = "Destination:"; // // customDestination // this.customDestination.Dock = System.Windows.Forms.DockStyle.Fill; this.customDestination.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.customDestination.Enabled = false; this.customDestination.FormattingEnabled = true; this.customDestination.Location = new System.Drawing.Point(82, 91); this.customDestination.Name = "customDestination"; this.customDestination.Size = new System.Drawing.Size(372, 21); this.customDestination.TabIndex = 6; // // selectedShowButtons // selectedShowButtons.Controls.Add(this.saveButton); selectedShowButtons.Controls.Add(this.revertButton); selectedShowButtons.Controls.Add(this.updateShowButton); selectedShowButtons.Controls.Add(this.removeShowButton); selectedShowButtons.Controls.Add(this.resetLastUpdatedButton); selectedShowButtons.Dock = System.Windows.Forms.DockStyle.Fill; selectedShowButtons.Location = new System.Drawing.Point(0, 542); selectedShowButtons.Margin = new System.Windows.Forms.Padding(0); selectedShowButtons.Name = "selectedShowButtons"; selectedShowButtons.Size = new System.Drawing.Size(571, 121); selectedShowButtons.TabIndex = 5; // // saveButton // this.saveButton.Location = new System.Drawing.Point(3, 3); this.saveButton.Name = "saveButton"; this.saveButton.Size = new System.Drawing.Size(75, 23); this.saveButton.TabIndex = 0; this.saveButton.Text = "Save"; this.toolTip.SetToolTip(this.saveButton, "Saves any changes to the show\'s configuration."); this.saveButton.UseVisualStyleBackColor = true; this.saveButton.Click += new System.EventHandler(this.SaveButtonClick); // // revertButton // this.revertButton.Location = new System.Drawing.Point(84, 3); this.revertButton.Name = "revertButton"; this.revertButton.Size = new System.Drawing.Size(75, 23); this.revertButton.TabIndex = 1; this.revertButton.Text = "Revert"; this.toolTip.SetToolTip(this.revertButton, "Revert\'s any unsaved changes to the show\'s configuration."); this.revertButton.UseVisualStyleBackColor = true; this.revertButton.Click += new System.EventHandler(this.RevertButtonClick); // // updateShowButton // this.updateShowButton.Location = new System.Drawing.Point(165, 3); this.updateShowButton.Name = "updateShowButton"; this.updateShowButton.Size = new System.Drawing.Size(93, 23); this.updateShowButton.TabIndex = 2; this.updateShowButton.Text = "Update Show"; this.toolTip.SetToolTip(this.updateShowButton, "Updates the show\'s episode data."); this.updateShowButton.UseVisualStyleBackColor = true; this.updateShowButton.Click += new System.EventHandler(this.UpdateShowButtonClick); // // removeShowButton // this.removeShowButton.Location = new System.Drawing.Point(264, 3); this.removeShowButton.Name = "removeShowButton"; this.removeShowButton.Size = new System.Drawing.Size(75, 23); this.removeShowButton.TabIndex = 3; this.removeShowButton.Text = "Remove"; this.toolTip.SetToolTip(this.removeShowButton, "Removes the show from TVSorter."); this.removeShowButton.UseVisualStyleBackColor = true; this.removeShowButton.Click += new System.EventHandler(this.RemoveShowButtonClick); // // resetLastUpdatedButton // this.resetLastUpdatedButton.Location = new System.Drawing.Point(345, 3); this.resetLastUpdatedButton.Name = "resetLastUpdatedButton"; this.resetLastUpdatedButton.Size = new System.Drawing.Size(115, 23); this.resetLastUpdatedButton.TabIndex = 4; this.resetLastUpdatedButton.Text = "Reset Last Updated"; this.toolTip.SetToolTip(this.resetLastUpdatedButton, "Resets the Last Updated timestamp of the show. \r\nThis allows new data to be downl" + "oaded in the next\r\nupdate."); this.resetLastUpdatedButton.UseVisualStyleBackColor = true; this.resetLastUpdatedButton.Click += new System.EventHandler(this.ResetLastUpdatedButtonClick); // // namesGroup // this.namesGroup.Controls.Add(this.nameTable); this.namesGroup.Dock = System.Windows.Forms.DockStyle.Fill; this.namesGroup.Location = new System.Drawing.Point(3, 375); this.namesGroup.Name = "namesGroup"; this.namesGroup.Size = new System.Drawing.Size(565, 79); this.namesGroup.TabIndex = 6; this.namesGroup.TabStop = false; this.namesGroup.Text = "Names"; // // nameTable // this.nameTable.ColumnCount = 3; this.nameTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F)); this.nameTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.nameTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 102F)); this.nameTable.Controls.Add(folderNameLabel, 0, 0); this.nameTable.Controls.Add(this.selectedShowFolderNameText, 1, 0); this.nameTable.Controls.Add(this.alternateNamesButton, 1, 1); this.nameTable.Dock = System.Windows.Forms.DockStyle.Fill; this.nameTable.Location = new System.Drawing.Point(3, 16); this.nameTable.Margin = new System.Windows.Forms.Padding(0); this.nameTable.Name = "nameTable"; this.nameTable.RowCount = 2; this.nameTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); this.nameTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); this.nameTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.nameTable.Size = new System.Drawing.Size(559, 60); this.nameTable.TabIndex = 4; // // folderNameLabel // folderNameLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; folderNameLabel.AutoSize = true; folderNameLabel.Location = new System.Drawing.Point(7, 8); folderNameLabel.Name = "folderNameLabel"; folderNameLabel.Size = new System.Drawing.Size(70, 13); folderNameLabel.TabIndex = 1; folderNameLabel.Text = "Folder Name:"; // // selectedShowFolderNameText // this.selectedShowFolderNameText.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowFolderNameText.Location = new System.Drawing.Point(83, 3); this.selectedShowFolderNameText.Name = "selectedShowFolderNameText"; this.selectedShowFolderNameText.Size = new System.Drawing.Size(371, 20); this.selectedShowFolderNameText.TabIndex = 2; this.toolTip.SetToolTip(this.selectedShowFolderNameText, "The folder name that the show is in."); // // alternateNamesButton // this.alternateNamesButton.Location = new System.Drawing.Point(83, 33); this.alternateNamesButton.Name = "alternateNamesButton"; this.alternateNamesButton.Size = new System.Drawing.Size(100, 23); this.alternateNamesButton.TabIndex = 3; this.alternateNamesButton.Text = "Alternate Names"; this.toolTip.SetToolTip(this.alternateNamesButton, "Edit the alternate names used by the show."); this.alternateNamesButton.UseVisualStyleBackColor = true; this.alternateNamesButton.Click += new System.EventHandler(this.AlternateNamesButtonClick); // // episodesGroup // episodesGroup.Controls.Add(this.episodesFlow); episodesGroup.Dock = System.Windows.Forms.DockStyle.Fill; episodesGroup.Location = new System.Drawing.Point(3, 460); episodesGroup.Name = "episodesGroup"; episodesGroup.Size = new System.Drawing.Size(565, 79); episodesGroup.TabIndex = 7; episodesGroup.TabStop = false; episodesGroup.Text = "Episodes"; // // episodesFlow // this.episodesFlow.Controls.Add(this.selectedShowUseDvdOrder); this.episodesFlow.Controls.Add(this.selectedShowLockButton); this.episodesFlow.Dock = System.Windows.Forms.DockStyle.Fill; this.episodesFlow.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; this.episodesFlow.Location = new System.Drawing.Point(3, 16); this.episodesFlow.Name = "episodesFlow"; this.episodesFlow.Size = new System.Drawing.Size(559, 60); this.episodesFlow.TabIndex = 1; // // selectedShowUseDvdOrder // this.selectedShowUseDvdOrder.AutoSize = true; this.selectedShowUseDvdOrder.Location = new System.Drawing.Point(3, 3); this.selectedShowUseDvdOrder.Name = "selectedShowUseDvdOrder"; this.selectedShowUseDvdOrder.Size = new System.Drawing.Size(100, 17); this.selectedShowUseDvdOrder.TabIndex = 0; this.selectedShowUseDvdOrder.Text = "Use DVD Order"; this.toolTip.SetToolTip(this.selectedShowUseDvdOrder, "Indicates whether the show should use the DVD order for episodes."); this.selectedShowUseDvdOrder.UseVisualStyleBackColor = true; // // selectedShowLockButton // this.selectedShowLockButton.Location = new System.Drawing.Point(3, 26); this.selectedShowLockButton.Name = "selectedShowLockButton"; this.selectedShowLockButton.Size = new System.Drawing.Size(90, 23); this.selectedShowLockButton.TabIndex = 1; this.selectedShowLockButton.Text = "Unlock Show"; this.toolTip.SetToolTip(this.selectedShowLockButton, "Locks/Unlocks the show."); this.selectedShowLockButton.UseVisualStyleBackColor = true; this.selectedShowLockButton.Click += new System.EventHandler(this.SelectedShowLockButtonClick); // // updateAllButton // this.updateAllButton.Location = new System.Drawing.Point(3, 3); this.updateAllButton.Name = "updateAllButton"; this.updateAllButton.Size = new System.Drawing.Size(75, 23); this.updateAllButton.TabIndex = 0; this.updateAllButton.Text = "Update All"; this.toolTip.SetToolTip(this.updateAllButton, "Updates the episode data for all the unlocked shows."); this.updateAllButton.UseVisualStyleBackColor = true; this.updateAllButton.Click += new System.EventHandler(this.UpdateAllButtonClick); // // addShowButton // this.addShowButton.Location = new System.Drawing.Point(84, 3); this.addShowButton.Name = "addShowButton"; this.addShowButton.Size = new System.Drawing.Size(75, 23); this.addShowButton.TabIndex = 1; this.addShowButton.Text = "Add Show"; this.toolTip.SetToolTip(this.addShowButton, "Adds a new show."); this.addShowButton.UseVisualStyleBackColor = true; this.addShowButton.Click += new System.EventHandler(this.AddShowButtonClick); // // searchShowsButton // this.searchShowsButton.Location = new System.Drawing.Point(165, 3); this.searchShowsButton.Name = "searchShowsButton"; this.searchShowsButton.Size = new System.Drawing.Size(112, 23); this.searchShowsButton.TabIndex = 2; this.searchShowsButton.Text = "Search for Shows"; this.toolTip.SetToolTip(this.searchShowsButton, "Searches for new shows in the output directories.\r\nThis looks up shows by folder " + "name."); this.searchShowsButton.UseVisualStyleBackColor = true; this.searchShowsButton.Click += new System.EventHandler(this.SearchShowsButtonClick); // // tvShowsList // this.tvShowsList.Dock = System.Windows.Forms.DockStyle.Left; this.tvShowsList.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; this.tvShowsList.FormattingEnabled = true; this.tvShowsList.ItemHeight = 20; this.tvShowsList.Location = new System.Drawing.Point(0, 35); this.tvShowsList.Name = "tvShowsList"; this.tvShowsList.Size = new System.Drawing.Size(178, 649); this.tvShowsList.TabIndex = 1; this.tvShowsList.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.TvShowsListDrawItem); this.tvShowsList.SelectedIndexChanged += new System.EventHandler(this.TvShowsListSelectedIndexChanged); // // topButtonsFlow // this.topButtonsFlow.Controls.Add(this.updateAllButton); this.topButtonsFlow.Controls.Add(this.addShowButton); this.topButtonsFlow.Controls.Add(this.searchShowsButton); this.topButtonsFlow.Dock = System.Windows.Forms.DockStyle.Top; this.topButtonsFlow.Location = new System.Drawing.Point(0, 0); this.topButtonsFlow.Name = "topButtonsFlow"; this.topButtonsFlow.Size = new System.Drawing.Size(749, 35); this.topButtonsFlow.TabIndex = 0; // // TvShows // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(selectedShowTable); this.Controls.Add(this.tvShowsList); this.Controls.Add(this.topButtonsFlow); this.Name = "TvShows"; this.Size = new System.Drawing.Size(749, 684); this.Load += new System.EventHandler(this.TvShowsLoad); selectedShowTable.ResumeLayout(false); selectedShowTable.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.selectedShowBanner)).EndInit(); customSettingsGroup.ResumeLayout(false); this.customFormatTable.ResumeLayout(false); this.customFormatTable.PerformLayout(); selectedShowButtons.ResumeLayout(false); this.namesGroup.ResumeLayout(false); this.nameTable.ResumeLayout(false); this.nameTable.PerformLayout(); episodesGroup.ResumeLayout(false); this.episodesFlow.ResumeLayout(false); this.episodesFlow.PerformLayout(); this.topButtonsFlow.ResumeLayout(false); this.ResumeLayout(false); }
private void button2_Click(object sender, EventArgs e) { string message = "Z uwagi na fakt, że tworzenie całego systemu pod kątem oceny nie przyniosłoby rezultatów (wszystkie funkcje kluczowe z punktu widzenia wymogów projektu zostały już zaimplementowane), twórcy postanowili pozostawić sobie zadanie zaprojektowania działania tego formularza do dalszej, samodzielnej już zabawy z .NET. To, co zostało zaprezentowane tutaj jest wyłącznie wizualną prezentacją potencjalnych funkcji SOKu."; string caption = "To wciąż wersja Alpha :("; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message, caption, buttons2); Form zapisy = new Form(); zapisy.Height = 534; zapisy.Width = 745; #region layout System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ParticipantMenu)); TableLayoutPanel tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); //PictureBox pictureBox1 = new System.Windows.Forms.PictureBox(); Label label1 = new System.Windows.Forms.Label(); ListBox listBoxZapisz = new System.Windows.Forms.ListBox(); Button ZapiszBtn = new System.Windows.Forms.Button(); tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(pictureBox1)).BeginInit(); zapisy.SuspendLayout(); // // tableLayoutPanel1 // tableLayoutPanel1.ColumnCount = 3; tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 57F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 88.65672F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.34328F)); //tableLayoutPanel1.Controls.Add(pictureBox1, 2, 0); tableLayoutPanel1.Controls.Add(label1, 1, 1); tableLayoutPanel1.Controls.Add(listBoxZapisz, 1, 2); tableLayoutPanel1.Controls.Add(ZapiszBtn, 1, 3); tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 4; tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 49.16667F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50.83333F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 298F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 128F)); tableLayoutPanel1.Size = new System.Drawing.Size(727, 520); tableLayoutPanel1.TabIndex = 0; //tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(tableLayoutPanel1_Paint); // // pictureBox1 // //pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand; //pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); //pictureBox1.Location = new System.Drawing.Point(654, 3); //pictureBox1.Name = "pictureBox1"; //pictureBox1.Size = new System.Drawing.Size(70, 40); //pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; //pictureBox1.TabIndex = 1; //pictureBox1.TabStop = false; // // label1 // label1.AutoSize = true; label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 17F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label1.Location = new System.Drawing.Point(60, 46); label1.Name = "label1"; label1.Size = new System.Drawing.Size(298, 33); label1.TabIndex = 2; label1.Text = "Dostępne konferencje"; //label1.Click += new System.EventHandler(label1_Click); // // listBoxZapisz // listBoxZapisz.FormattingEnabled = true; listBoxZapisz.ItemHeight = 16; listBoxZapisz.Location = new System.Drawing.Point(60, 96); listBoxZapisz.Name = "listBoxZapisz"; listBoxZapisz.Size = new System.Drawing.Size(584, 292); listBoxZapisz.TabIndex = 3; // // ZapiszBtn // ZapiszBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); ZapiszBtn.Location = new System.Drawing.Point(515, 394); ZapiszBtn.Name = "ZapiszBtn"; ZapiszBtn.Size = new System.Drawing.Size(133, 45); ZapiszBtn.TabIndex = 4; ZapiszBtn.Text = "Zapisz się"; ZapiszBtn.UseVisualStyleBackColor = true; // // Zapisy // zapisy.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); zapisy.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; zapisy.ClientSize = new System.Drawing.Size(727, 487); //zapisy.Controls.Add(pictureBox1); zapisy.Controls.Add(label1); zapisy.Controls.Add(listBoxZapisz); zapisy.Controls.Add(ZapiszBtn); zapisy.Controls.Add(tableLayoutPanel1); zapisy.Name = "Zapisy"; zapisy.Text = "Zapisy"; zapisy.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; //zapisy.Load += new System.EventHandler(this.FormularzTestowy_Load); ((System.ComponentModel.ISupportInitialize)(pictureBox1)).EndInit(); tableLayoutPanel1.ResumeLayout(false); zapisy.ResumeLayout(false); zapisy.PerformLayout(); zapisy.ShowDialog(); #endregion }
private void button1_Click(object sender, EventArgs e) { string message = "Z uwagi na fakt, że tworzenie całego systemu pod kątem oceny nie przyniosłoby rezultatów (wszystkie funkcje kluczowe z punktu widzenia wymogów projektu zostały już zaimplementowane), twórcy postanowili pozostawić sobie zadanie zaprojektowania działania tego formularza do dalszej, samodzielnej już zabawy z .NET. To, co zostało zaprezentowane tutaj jest wyłącznie wizualną prezentacją potencjalnych funkcji SOKu."; string caption = "To wciąż wersja Alpha :("; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message, caption, buttons2); Form przegladKonferencji = new Form(); przegladKonferencji.Height = 610; przegladKonferencji.Width = 773; #region layout ListBox ListViewConferece = new System.Windows.Forms.ListBox(); ColumnHeader Number = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader SubjectOfConference = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader Date = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); Button ShowDetails = new System.Windows.Forms.Button(); ComboBox SortComboBox1 = new System.Windows.Forms.ComboBox(); Button SortBtn = new System.Windows.Forms.Button(); TableLayoutPanel tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel1.SuspendLayout(); przegladKonferencji.SuspendLayout(); Adres adresik = new Adres("Sienkiewicza", "Krakow", "22-600", "123", "13"); MiejsceKonferencji miejsce = new MiejsceKonferencji(adresik.ulica, adresik.miejscowosc, adresik.kodPocztowy, adresik.numerBudynku, adresik.numerLokalu, 112, 100); Organizator o = new Organizator("pirateska", "martynka"); Sluchacz s = new Sluchacz("kasia", "basia", "kasia", "kasia1", "kobieta", "14.10.9999", "696454787", "*****@*****.**"); Prelegent p = new Prelegent("karol", "karol"); ListaUczestnikówKonferencji Lp = new ListaUczestnikówKonferencji(); Lp.DodajObiekt(s); ListaPrelegentówKonferencji LLP = new ListaPrelegentówKonferencji(); LLP.DodajObiekt(p); Referat r = new Referat("kas", "bla,bla", p); PlanKonferencji plan = new PlanKonferencji(); plan.DodajReferat(r); Konferencja GonKon = new Konferencja("jutrobedziedeszcz", "12.13.1333", o, miejsce); GonKon.Uczestnicy = Lp; GonKon.Prelegenci = LLP; GonKon.Plan = plan; ListaKonferencji listaKon = new ListaKonferencji(); listaKon.DodajObiekt(GonKon); ListViewConferece.FormattingEnabled = true; ListViewConferece.ItemHeight = 18; ListViewConferece.Location = new System.Drawing.Point(128, 121); ListViewConferece.Name = "listBoxPokaz"; ListViewConferece.Size = new System.Drawing.Size(560, 337); ListViewConferece.TabIndex = 5; ListViewConferece.Items.Add(listaKon.ToString()); ListViewConferece.SelectionMode = SelectionMode.One; // // ListViewConferece // //ListViewConferece.AccessibleRole = System.Windows.Forms.AccessibleRole.None; //ListViewConferece.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { //Number, //SubjectOfConference, //}); //ListViewConferece.GridLines = true; //ListViewConferece.HideSelection = false; //ListViewConferece.Location = new System.Drawing.Point(128, 121); //ListViewConferece.Name = "ListViewConferece"; //ListViewConferece.Size = new System.Drawing.Size(560, 337); //ListViewConferece.TabIndex = 5; //ListViewConferece.UseCompatibleStateImageBehavior = false; //ListViewConferece.View = System.Windows.Forms.View.Details; //ListViewConferece.SelectedIndexChanged += new System.EventHandler(ListViewConferece_SelectedIndexChanged); // // Number // Number.Text = "Nr"; Number.Width = 30; // // SubjectOfConference // SubjectOfConference.Text = "Temat Konferencji"; SubjectOfConference.Width = 400; // // Date // Date.Text = "Data Konferencji"; Date.Width = 125; // // ShowDetails // ShowDetails.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); ShowDetails.Location = new System.Drawing.Point(512, 489); ShowDetails.Name = "ShowDetails"; ShowDetails.Size = new System.Drawing.Size(176, 41); ShowDetails.TabIndex = 4; ShowDetails.Text = "Pokaż szczegóły"; ShowDetails.UseVisualStyleBackColor = true; ShowDetails.Click += new EventHandler(ShowDetails_Click); // // SortComboBox1 // SortComboBox1.Anchor = System.Windows.Forms.AnchorStyles.Left; SortComboBox1.FormattingEnabled = true; SortComboBox1.Items.AddRange(new object[] { "data rosnąco", "data malejąco", "alfabetycznie" }); SortComboBox1.Location = new System.Drawing.Point(128, 92); SortComboBox1.Name = "SortComboBox1"; SortComboBox1.Size = new System.Drawing.Size(159, 24); SortComboBox1.TabIndex = 2; //SortComboBox1.SelectedIndexChanged += new System.EventHandler(comboBox1_SelectedIndexChanged); // // SortBtn // SortBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); SortBtn.Location = new System.Drawing.Point(25, 92); SortBtn.Name = "SortBtn"; SortBtn.Size = new System.Drawing.Size(97, 23); SortBtn.TabIndex = 0; SortBtn.Text = "Sortuj"; SortBtn.UseVisualStyleBackColor = true; // // tableLayoutPanel1 // tableLayoutPanel1.ColumnCount = 3; tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.59808F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 74.90092F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.586526F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 95F)); tableLayoutPanel1.Controls.Add(SortBtn, 0, 2); tableLayoutPanel1.Controls.Add(SortComboBox1, 1, 2); tableLayoutPanel1.Controls.Add(ShowDetails, 1, 4); tableLayoutPanel1.Controls.Add(ListViewConferece, 1, 3); tableLayoutPanel1.Location = new System.Drawing.Point(2, 1); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 5; tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 23.76238F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 76.23763F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 368F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 78F)); tableLayoutPanel1.Size = new System.Drawing.Size(757, 565); tableLayoutPanel1.TabIndex = 0; //tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(tableLayoutPanel1_Paint); // // PrzeglądKonferencji // przegladKonferencji.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); przegladKonferencji.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; przegladKonferencji.ClientSize = new System.Drawing.Size(755, 563); przegladKonferencji.Controls.Add(ListViewConferece); przegladKonferencji.Controls.Add(ShowDetails); przegladKonferencji.Controls.Add(ShowDetails); przegladKonferencji.Controls.Add(SortComboBox1); przegladKonferencji.Controls.Add(SortBtn); przegladKonferencji.Controls.Add(tableLayoutPanel1); przegladKonferencji.Name = "PrzeglądKonferencji"; przegladKonferencji.Text = "Przegląd Konferencji"; przegladKonferencji.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; //przegladKonferencji.Load += new System.EventHandler(this.FormularzTestowy_Load); tableLayoutPanel1.ResumeLayout(false); przegladKonferencji.ResumeLayout(false); przegladKonferencji.PerformLayout(); przegladKonferencji.ShowDialog(); #endregion void ShowDetails_Click(object sender2, EventArgs e2) { foreach (Object obj in ListViewConferece.SelectedItems) { Form szczegolyKonf = new Form(); szczegolyKonf.Height = 553; szczegolyKonf.Width = 713; #region layout Label labelM = new System.Windows.Forms.Label(); Label labelN = new System.Windows.Forms.Label(); Label labelO = new System.Windows.Forms.Label(); Label labelP = new System.Windows.Forms.Label(); Label labelX = new System.Windows.Forms.Label(); Label labelY = new System.Windows.Forms.Label(); ListView listView1 = new System.Windows.Forms.ListView(); ColumnHeader ColumnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader ColumnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader ColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); Label labelU = new System.Windows.Forms.Label(); Label labelJ = new System.Windows.Forms.Label(); Label labelG = new System.Windows.Forms.Label(); Label labelM0 = new System.Windows.Forms.Label(); Label labelM1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // labelM // labelM.Anchor = System.Windows.Forms.AnchorStyles.None; labelM.AutoSize = true; labelM.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM.Location = new System.Drawing.Point(43, 43); labelM.Name = "labelM"; labelM.Size = new System.Drawing.Size(73, 25); labelM.TabIndex = 0; labelM.Text = "Temat"; // // labelN // labelN.Anchor = System.Windows.Forms.AnchorStyles.None; labelN.AutoSize = true; labelN.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelN.Location = new System.Drawing.Point(43, 88); labelN.Name = "labelN"; labelN.Size = new System.Drawing.Size(125, 25); labelN.TabIndex = 1; labelN.Text = "Organizator"; //labelN.Click += new System.EventHandler(labelN_Click); // // labelO // labelO.Anchor = System.Windows.Forms.AnchorStyles.None; labelO.AutoSize = true; labelO.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelO.Location = new System.Drawing.Point(43, 132); labelO.Name = "labelO"; labelO.Size = new System.Drawing.Size(57, 25); labelO.TabIndex = 2; labelO.Text = "Data"; // // labelP // labelP.Anchor = System.Windows.Forms.AnchorStyles.None; labelP.AutoSize = true; labelP.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelP.Location = new System.Drawing.Point(43, 178); labelP.Name = "labelP"; labelP.Size = new System.Drawing.Size(86, 25); labelP.TabIndex = 3; labelP.Text = "Miejsce"; // // labelX // labelX.Anchor = System.Windows.Forms.AnchorStyles.None; labelX.AutoSize = true; labelX.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelX.Location = new System.Drawing.Point(43, 224); labelX.Name = "labelX"; labelX.Size = new System.Drawing.Size(226, 25); labelX.TabIndex = 4; labelX.Text = "Liczba wolnych miejsc"; // // labelY // labelY.Anchor = System.Windows.Forms.AnchorStyles.None; labelY.AutoSize = true; labelY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelY.Location = new System.Drawing.Point(43, 271); labelY.Name = "labelY"; labelY.Size = new System.Drawing.Size(170, 25); labelY.TabIndex = 5; labelY.Text = "Plan Konferencji"; // // listView1 // listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { ColumnHeader2, ColumnHeader1, ColumnHeader }); listView1.GridLines = true; listView1.HideSelection = false; listView1.Location = new System.Drawing.Point(48, 299); listView1.Name = "listView1"; listView1.Size = new System.Drawing.Size(618, 177); listView1.TabIndex = 6; listView1.UseCompatibleStateImageBehavior = false; listView1.View = System.Windows.Forms.View.Details; // // ColumnHeader2 // ColumnHeader2.Text = "Nr"; ColumnHeader2.Width = 30; // // ColumnHeader1 // ColumnHeader1.Text = "TematReferatu"; ColumnHeader1.Width = 400; // // ColumnHeader // ColumnHeader.Text = "Autor"; ColumnHeader.Width = 200; // // labelU // labelU.Anchor = System.Windows.Forms.AnchorStyles.None; labelU.AutoSize = true; labelU.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelU.Location = new System.Drawing.Point(267, 224); labelU.Name = "labelU"; labelU.Size = new System.Drawing.Size(23, 25); labelU.TabIndex = 9; labelU.Text = " _ "; // // labelJ // labelJ.Anchor = System.Windows.Forms.AnchorStyles.None; labelJ.AutoSize = true; labelJ.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelJ.Location = new System.Drawing.Point(134, 178); labelJ.Name = "labelJ"; labelJ.Size = new System.Drawing.Size(23, 25); labelJ.TabIndex = 10; labelJ.Text = "_"; // // labelG // labelG.Anchor = System.Windows.Forms.AnchorStyles.None; labelG.AutoSize = true; labelG.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelG.Location = new System.Drawing.Point(112, 132); labelG.Name = "labelG"; labelG.Size = new System.Drawing.Size(23, 25); labelG.TabIndex = 11; labelG.Text = "_"; // // labelM0 // labelM0.Anchor = System.Windows.Forms.AnchorStyles.None; labelM0.AutoSize = true; labelM0.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM0.Location = new System.Drawing.Point(174, 88); labelM0.Name = "labelM0"; labelM0.Size = new System.Drawing.Size(23, 25); labelM0.TabIndex = 12; labelM0.Text = "_"; // // labelM1 // labelM1.Anchor = System.Windows.Forms.AnchorStyles.None; labelM1.AutoSize = true; labelM1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM1.Location = new System.Drawing.Point(134, 43); labelM1.Name = "labelM1"; labelM1.Size = new System.Drawing.Size(23, 25); labelM1.TabIndex = 13; labelM1.Text = "_"; // // KonferencjaSzczegoly // szczegolyKonf.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; szczegolyKonf.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); szczegolyKonf.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; szczegolyKonf.ClientSize = new System.Drawing.Size(695, 506); szczegolyKonf.Controls.Add(labelM1); szczegolyKonf.Controls.Add(labelM0); szczegolyKonf.Controls.Add(labelG); szczegolyKonf.Controls.Add(labelJ); szczegolyKonf.Controls.Add(labelU); szczegolyKonf.Controls.Add(listView1); szczegolyKonf.Controls.Add(labelY); szczegolyKonf.Controls.Add(labelX); szczegolyKonf.Controls.Add(labelP); szczegolyKonf.Controls.Add(labelO); szczegolyKonf.Controls.Add(labelN); szczegolyKonf.Controls.Add(labelM); szczegolyKonf.Name = "KonferencjaSzczegoly"; szczegolyKonf.Text = "KonferencjaSzczegoly"; szczegolyKonf.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; // szczegolyKonf.Load += new System.EventHandler(thiKonferencjaSzczegoly_Load); szczegolyKonf.ResumeLayout(false); szczegolyKonf.PerformLayout(); szczegolyKonf.ShowDialog(); #endregion } } }
/// <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 tableMain; System.Windows.Forms.FlowLayoutPanel flowBottomButtons; this.closeButton = new System.Windows.Forms.Button(); this.saveButton = new System.Windows.Forms.Button(); this.list = new System.Windows.Forms.ListBox(); this.text = new System.Windows.Forms.TextBox(); this.addButton = new System.Windows.Forms.Button(); this.removeButton = new System.Windows.Forms.Button(); tableMain = new System.Windows.Forms.TableLayoutPanel(); flowBottomButtons = new System.Windows.Forms.FlowLayoutPanel(); tableMain.SuspendLayout(); flowBottomButtons.SuspendLayout(); this.SuspendLayout(); // // tableMain // tableMain.ColumnCount = 2; tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 118F)); tableMain.Controls.Add(flowBottomButtons, 0, 2); tableMain.Controls.Add(this.list, 0, 1); tableMain.Controls.Add(this.text, 0, 0); tableMain.Controls.Add(this.addButton, 1, 0); tableMain.Controls.Add(this.removeButton, 1, 1); tableMain.Dock = System.Windows.Forms.DockStyle.Fill; tableMain.Location = new System.Drawing.Point(0, 0); tableMain.Name = "tableMain"; tableMain.RowCount = 3; tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); tableMain.Size = new System.Drawing.Size(306, 237); tableMain.TabIndex = 0; // // flowBottomButtons // tableMain.SetColumnSpan(flowBottomButtons, 2); flowBottomButtons.Controls.Add(this.closeButton); flowBottomButtons.Controls.Add(this.saveButton); flowBottomButtons.Dock = System.Windows.Forms.DockStyle.Fill; flowBottomButtons.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; flowBottomButtons.Location = new System.Drawing.Point(0, 207); flowBottomButtons.Margin = new System.Windows.Forms.Padding(0); flowBottomButtons.Name = "flowBottomButtons"; flowBottomButtons.Size = new System.Drawing.Size(306, 30); flowBottomButtons.TabIndex = 0; // // closeButton // this.closeButton.Location = new System.Drawing.Point(228, 3); this.closeButton.Name = "closeButton"; this.closeButton.Size = new System.Drawing.Size(75, 23); this.closeButton.TabIndex = 1; this.closeButton.Text = "Close"; this.closeButton.UseVisualStyleBackColor = true; this.closeButton.Click += new System.EventHandler(this.CloseButtonClick); // // saveButton // this.saveButton.Location = new System.Drawing.Point(147, 3); this.saveButton.Name = "saveButton"; this.saveButton.Size = new System.Drawing.Size(75, 23); this.saveButton.TabIndex = 0; this.saveButton.Text = "OK"; this.saveButton.UseVisualStyleBackColor = true; this.saveButton.Click += new System.EventHandler(this.SaveButtonClick); // // list // this.list.Dock = System.Windows.Forms.DockStyle.Fill; this.list.FormattingEnabled = true; this.list.Location = new System.Drawing.Point(3, 31); this.list.Name = "list"; this.list.Size = new System.Drawing.Size(182, 173); this.list.TabIndex = 1; // // text // this.text.Dock = System.Windows.Forms.DockStyle.Fill; this.text.Location = new System.Drawing.Point(3, 3); this.text.Name = "text"; this.text.Size = new System.Drawing.Size(182, 20); this.text.TabIndex = 2; // // addButton // this.addButton.Dock = System.Windows.Forms.DockStyle.Fill; this.addButton.Location = new System.Drawing.Point(191, 3); this.addButton.Name = "addButton"; this.addButton.Size = new System.Drawing.Size(112, 22); this.addButton.TabIndex = 3; this.addButton.Text = "Add"; this.addButton.UseVisualStyleBackColor = true; this.addButton.Click += new System.EventHandler(this.AddButtonClick); // // removeButton // this.removeButton.Dock = System.Windows.Forms.DockStyle.Top; this.removeButton.Location = new System.Drawing.Point(191, 31); this.removeButton.Name = "removeButton"; this.removeButton.Size = new System.Drawing.Size(112, 23); this.removeButton.TabIndex = 4; this.removeButton.Text = "Remove"; this.removeButton.UseVisualStyleBackColor = true; this.removeButton.Click += new System.EventHandler(this.RemoveButtonClick); // // ListDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(306, 237); this.ControlBox = false; this.Controls.Add(tableMain); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.Name = "ListDialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "ListDialog"; this.Load += new System.EventHandler(this.ListDialogLoad); tableMain.ResumeLayout(false); tableMain.PerformLayout(); flowBottomButtons.ResumeLayout(false); this.ResumeLayout(false); }
/// ----------------------------------------------------------------------------------- /// <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.Button btnClose; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DiffDialog)); System.Windows.Forms.ImageList imageList1; System.Windows.Forms.Button btnHelp; System.Windows.Forms.Panel pnlCloseHelp; System.Windows.Forms.TableLayoutPanel tableLayoutRevision; System.Windows.Forms.TableLayoutPanel tableLayoutCurrent; this.btnRevertToOld = new System.Windows.Forms.Button(); this.btnKeepCurrent = new System.Windows.Forms.Button(); this.btnNext = new System.Windows.Forms.Button(); this.btnEdit = new System.Windows.Forms.Button(); this.btnPrev = new System.Windows.Forms.Button(); this.lblDiffCount = new System.Windows.Forms.Label(); this.lblRevDiffType = new System.Windows.Forms.Label(); this.lblCurrentDiffType = new System.Windows.Forms.Label(); this.lblReference = new System.Windows.Forms.Label(); this.lblSavedVersion = new System.Windows.Forms.Label(); this.lblCurrent = new System.Windows.Forms.Label(); this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); this.persistence = new SIL.FieldWorks.Common.Controls.Persistence(this.components); btnClose = new System.Windows.Forms.Button(); imageList1 = new System.Windows.Forms.ImageList(this.components); btnHelp = new System.Windows.Forms.Button(); pnlCloseHelp = new System.Windows.Forms.Panel(); tableLayoutRevision = new System.Windows.Forms.TableLayoutPanel(); tableLayoutCurrent = new System.Windows.Forms.TableLayoutPanel(); pnlCloseHelp.SuspendLayout(); tableLayoutRevision.SuspendLayout(); tableLayoutCurrent.SuspendLayout(); this.tableLayoutPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.persistence)).BeginInit(); this.SuspendLayout(); // // btnClose // resources.ApplyResources(btnClose, "btnClose"); btnClose.BackColor = System.Drawing.SystemColors.Control; btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; btnClose.ImageList = imageList1; btnClose.Name = "btnClose"; btnClose.UseVisualStyleBackColor = true; btnClose.Click += new System.EventHandler(this.btnClose_Click); // // imageList1 // imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); imageList1.TransparentColor = System.Drawing.Color.Magenta; imageList1.Images.SetKeyName(0, ""); imageList1.Images.SetKeyName(1, ""); imageList1.Images.SetKeyName(2, ""); imageList1.Images.SetKeyName(3, ""); imageList1.Images.SetKeyName(4, ""); // // btnHelp // resources.ApplyResources(btnHelp, "btnHelp"); btnHelp.BackColor = System.Drawing.SystemColors.Control; btnHelp.ImageList = imageList1; btnHelp.Name = "btnHelp"; btnHelp.UseVisualStyleBackColor = true; btnHelp.Click += new System.EventHandler(this.btnHelp_Click); // // btnRevertToOld // resources.ApplyResources(this.btnRevertToOld, "btnRevertToOld"); this.btnRevertToOld.ImageList = imageList1; this.btnRevertToOld.Name = "btnRevertToOld"; this.btnRevertToOld.Click += new System.EventHandler(this.btnRevertToOld_Click); // // btnKeepCurrent // resources.ApplyResources(this.btnKeepCurrent, "btnKeepCurrent"); this.btnKeepCurrent.ImageList = imageList1; this.btnKeepCurrent.Name = "btnKeepCurrent"; this.btnKeepCurrent.Click += new System.EventHandler(this.btnKeepCurrent_Click); // // btnNext // resources.ApplyResources(this.btnNext, "btnNext"); this.btnNext.ImageList = imageList1; this.btnNext.Name = "btnNext"; this.btnNext.Click += new System.EventHandler(this.btnNext_Click); // // btnEdit // resources.ApplyResources(this.btnEdit, "btnEdit"); this.btnEdit.BackColor = System.Drawing.SystemColors.Control; this.btnEdit.ImageList = imageList1; this.btnEdit.Name = "btnEdit"; this.btnEdit.UseVisualStyleBackColor = true; this.btnEdit.Click += new System.EventHandler(this.btnEdit_click); // // btnPrev // resources.ApplyResources(this.btnPrev, "btnPrev"); this.btnPrev.ImageList = imageList1; this.btnPrev.Name = "btnPrev"; this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click); // // pnlCloseHelp // tableLayoutCurrent.SetColumnSpan(pnlCloseHelp, 2); pnlCloseHelp.Controls.Add(btnClose); pnlCloseHelp.Controls.Add(btnHelp); resources.ApplyResources(pnlCloseHelp, "pnlCloseHelp"); pnlCloseHelp.Name = "pnlCloseHelp"; // // tableLayoutRevision // resources.ApplyResources(tableLayoutRevision, "tableLayoutRevision"); tableLayoutRevision.Controls.Add(this.lblDiffCount, 0, 2); tableLayoutRevision.Controls.Add(this.lblRevDiffType, 0, 0); tableLayoutRevision.Controls.Add(this.btnRevertToOld, 2, 1); tableLayoutRevision.Controls.Add(this.btnPrev, 0, 1); tableLayoutRevision.Name = "tableLayoutRevision"; // // lblDiffCount // resources.ApplyResources(this.lblDiffCount, "lblDiffCount"); this.lblDiffCount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; tableLayoutRevision.SetColumnSpan(this.lblDiffCount, 3); this.lblDiffCount.Name = "lblDiffCount"; // // lblRevDiffType // resources.ApplyResources(this.lblRevDiffType, "lblRevDiffType"); this.lblRevDiffType.BackColor = System.Drawing.Color.Honeydew; this.lblRevDiffType.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; tableLayoutRevision.SetColumnSpan(this.lblRevDiffType, 3); this.lblRevDiffType.ForeColor = System.Drawing.SystemColors.InfoText; this.lblRevDiffType.MinimumSize = new System.Drawing.Size(0, 27); this.lblRevDiffType.Name = "lblRevDiffType"; this.lblRevDiffType.Paint += new System.Windows.Forms.PaintEventHandler(this.lblRevDiffType_Paint); // // tableLayoutCurrent // resources.ApplyResources(tableLayoutCurrent, "tableLayoutCurrent"); tableLayoutCurrent.Controls.Add(this.lblCurrentDiffType, 0, 0); tableLayoutCurrent.Controls.Add(this.btnKeepCurrent, 0, 1); tableLayoutCurrent.Controls.Add(this.btnEdit, 1, 1); tableLayoutCurrent.Controls.Add(this.btnNext, 2, 1); tableLayoutCurrent.Controls.Add(pnlCloseHelp, 1, 2); tableLayoutCurrent.Controls.Add(this.lblReference, 0, 2); tableLayoutCurrent.Name = "tableLayoutCurrent"; // // lblCurrentDiffType // resources.ApplyResources(this.lblCurrentDiffType, "lblCurrentDiffType"); this.lblCurrentDiffType.BackColor = System.Drawing.Color.Honeydew; this.lblCurrentDiffType.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; tableLayoutCurrent.SetColumnSpan(this.lblCurrentDiffType, 3); this.lblCurrentDiffType.ForeColor = System.Drawing.SystemColors.InfoText; this.lblCurrentDiffType.MinimumSize = new System.Drawing.Size(0, 27); this.lblCurrentDiffType.Name = "lblCurrentDiffType"; this.lblCurrentDiffType.Paint += new System.Windows.Forms.PaintEventHandler(this.lblCurrentDiffType_Paint); // // lblReference // this.lblReference.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; resources.ApplyResources(this.lblReference, "lblReference"); this.lblReference.Name = "lblReference"; // // lblSavedVersion // this.lblSavedVersion.AutoEllipsis = true; resources.ApplyResources(this.lblSavedVersion, "lblSavedVersion"); this.lblSavedVersion.Name = "lblSavedVersion"; // // lblCurrent // this.lblCurrent.BackColor = System.Drawing.SystemColors.Control; resources.ApplyResources(this.lblCurrent, "lblCurrent"); this.lblCurrent.Name = "lblCurrent"; // // tableLayoutPanel // resources.ApplyResources(this.tableLayoutPanel, "tableLayoutPanel"); this.tableLayoutPanel.Controls.Add(this.lblCurrent, 1, 0); this.tableLayoutPanel.Controls.Add(this.lblSavedVersion, 0, 0); this.tableLayoutPanel.Controls.Add(tableLayoutCurrent, 1, 3); this.tableLayoutPanel.Controls.Add(tableLayoutRevision, 0, 3); this.tableLayoutPanel.Name = "tableLayoutPanel"; // // persistence // this.persistence.Parent = this; this.persistence.LoadSettings += new SIL.FieldWorks.Common.Controls.Persistence.Settings(this.OnLoadSettings); this.persistence.SaveSettings += new SIL.FieldWorks.Common.Controls.Persistence.Settings(this.OnSaveSettings); // // DiffDialog // this.AcceptButton = btnClose; resources.ApplyResources(this, "$this"); this.AccessibleRole = System.Windows.Forms.AccessibleRole.Dialog; this.CancelButton = btnClose; this.Controls.Add(this.tableLayoutPanel); this.MinimizeBox = false; this.Name = "DiffDialog"; this.ShowIcon = false; this.ShowInTaskbar = false; pnlCloseHelp.ResumeLayout(false); tableLayoutRevision.ResumeLayout(false); tableLayoutRevision.PerformLayout(); tableLayoutCurrent.ResumeLayout(false); tableLayoutCurrent.PerformLayout(); this.tableLayoutPanel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.persistence)).EndInit(); this.ResumeLayout(false); }
public void AddToTable( TableLayoutPanel table, int row ) { table.SuspendLayout(); table.Controls.Add( Name, 0, row ); table.Controls.Add( Level, 1, row ); table.Controls.Add( HP, 2, row ); table.Controls.Add( Condition, 3, row ); table.Controls.Add( ShipResource, 4, row ); table.Controls.Add( Equipments, 5, row ); table.ResumeLayout(); #region set RowStyle RowStyle rs = new RowStyle( SizeType.Absolute, 21 ); if ( table.RowStyles.Count > row ) table.RowStyles[row] = rs; else while ( table.RowStyles.Count <= row ) table.RowStyles.Add( rs ); #endregion }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); System.Windows.Forms.TableLayoutPanel tableTopRight; System.Windows.Forms.TableLayoutPanel tableTopLeft; System.Windows.Forms.Label lblEnOld; System.Windows.Forms.Label lblEnNew; System.Windows.Forms.ToolStripSeparator toolStripSeparator1; System.Windows.Forms.ToolStripSeparator toolStripSeparator2; System.Windows.Forms.StatusStrip statusStrip; this.tableTopAll = new System.Windows.Forms.TableLayoutPanel(); this.txtEnNew = new System.Windows.Forms.TextBox(); this.btnEnNew = new System.Windows.Forms.Button(); this.txtEnOld = new System.Windows.Forms.TextBox(); this.btnEnOld = new System.Windows.Forms.Button(); this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel(); this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); this.menuStrip = new System.Windows.Forms.MenuStrip(); this.changeFontToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exportChangesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fontDialog = new System.Windows.Forms.FontDialog(); this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.btnDoWork = new System.Windows.Forms.Button(); this.editor = new Updater.Common.EditorTabControl(); tableTopRight = new System.Windows.Forms.TableLayoutPanel(); tableTopLeft = new System.Windows.Forms.TableLayoutPanel(); lblEnOld = new System.Windows.Forms.Label(); lblEnNew = new System.Windows.Forms.Label(); toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); statusStrip = new System.Windows.Forms.StatusStrip(); this.tableTopAll.SuspendLayout(); tableTopRight.SuspendLayout(); tableTopLeft.SuspendLayout(); statusStrip.SuspendLayout(); this.menuStrip.SuspendLayout(); this.SuspendLayout(); // // tableTopAll // resources.ApplyResources(this.tableTopAll, "tableTopAll"); this.tableTopAll.Controls.Add(tableTopRight, 1, 1); this.tableTopAll.Controls.Add(tableTopLeft, 0, 1); this.tableTopAll.Controls.Add(lblEnOld, 0, 0); this.tableTopAll.Controls.Add(lblEnNew, 1, 0); this.tableTopAll.Name = "tableTopAll"; // // tableTopRight // resources.ApplyResources(tableTopRight, "tableTopRight"); tableTopRight.Controls.Add(this.txtEnNew, 0, 0); tableTopRight.Controls.Add(this.btnEnNew, 1, 0); tableTopRight.Name = "tableTopRight"; // // txtEnNew // resources.ApplyResources(this.txtEnNew, "txtEnNew"); this.txtEnNew.Name = "txtEnNew"; this.txtEnNew.ReadOnly = true; // // btnEnNew // resources.ApplyResources(this.btnEnNew, "btnEnNew"); this.btnEnNew.Name = "btnEnNew"; this.btnEnNew.UseVisualStyleBackColor = true; this.btnEnNew.Click += new System.EventHandler(this.btnEnNew_Click); // // tableTopLeft // resources.ApplyResources(tableTopLeft, "tableTopLeft"); tableTopLeft.Controls.Add(this.txtEnOld, 0, 0); tableTopLeft.Controls.Add(this.btnEnOld, 1, 0); tableTopLeft.Name = "tableTopLeft"; // // txtEnOld // resources.ApplyResources(this.txtEnOld, "txtEnOld"); this.txtEnOld.Name = "txtEnOld"; this.txtEnOld.ReadOnly = true; // // btnEnOld // resources.ApplyResources(this.btnEnOld, "btnEnOld"); this.btnEnOld.Name = "btnEnOld"; this.btnEnOld.UseVisualStyleBackColor = true; this.btnEnOld.Click += new System.EventHandler(this.btnEnOld_Click); // // lblEnOld // resources.ApplyResources(lblEnOld, "lblEnOld"); lblEnOld.Name = "lblEnOld"; lblEnOld.Text = global::Updater.Common.Properties.Settings.Default.StepOneExplanation; // // lblEnNew // resources.ApplyResources(lblEnNew, "lblEnNew"); lblEnNew.Name = "lblEnNew"; lblEnNew.Text = global::Updater.Common.Properties.Settings.Default.StepTwoExplanation; // // toolStripSeparator1 // toolStripSeparator1.Name = "toolStripSeparator1"; resources.ApplyResources(toolStripSeparator1, "toolStripSeparator1"); // // toolStripSeparator2 // toolStripSeparator2.Name = "toolStripSeparator2"; resources.ApplyResources(toolStripSeparator2, "toolStripSeparator2"); // // statusStrip // statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.lblStatus }); resources.ApplyResources(statusStrip, "statusStrip"); statusStrip.Name = "statusStrip"; // // lblStatus // this.lblStatus.ForeColor = System.Drawing.Color.Red; this.lblStatus.Margin = new System.Windows.Forms.Padding(10, 3, 0, 2); this.lblStatus.Name = "lblStatus"; resources.ApplyResources(this.lblStatus, "lblStatus"); this.lblStatus.Spring = true; // // openFileDialog // resources.ApplyResources(this.openFileDialog, "openFileDialog"); // // menuStrip // this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.changeFontToolStripMenuItem, this.exportChangesToolStripMenuItem }); resources.ApplyResources(this.menuStrip, "menuStrip"); this.menuStrip.Name = "menuStrip"; // // changeFontToolStripMenuItem // this.changeFontToolStripMenuItem.Name = "changeFontToolStripMenuItem"; resources.ApplyResources(this.changeFontToolStripMenuItem, "changeFontToolStripMenuItem"); this.changeFontToolStripMenuItem.Text = global::Updater.Common.Properties.Settings.Default.ChangeFont; this.changeFontToolStripMenuItem.Click += new System.EventHandler(this.changeFontToolStripMenuItem_Click); // // exportChangesToolStripMenuItem // resources.ApplyResources(this.exportChangesToolStripMenuItem, "exportChangesToolStripMenuItem"); this.exportChangesToolStripMenuItem.Name = "exportChangesToolStripMenuItem"; this.exportChangesToolStripMenuItem.Text = global::Updater.Common.Properties.Settings.Default.ExportChanges; this.exportChangesToolStripMenuItem.Click += new System.EventHandler(this.exportChangesToolStripMenuItem_Click); // // saveFileDialog // this.saveFileDialog.DefaultExt = "xml"; resources.ApplyResources(this.saveFileDialog, "saveFileDialog"); // // btnDoWork // resources.ApplyResources(this.btnDoWork, "btnDoWork"); this.btnDoWork.Name = "btnDoWork"; this.btnDoWork.Text = global::Updater.Common.Properties.Settings.Default.StepThreeExplanation; this.btnDoWork.UseVisualStyleBackColor = true; this.btnDoWork.Click += new System.EventHandler(this.btnDoWork_Click); // // editor // resources.ApplyResources(this.editor, "editor"); this.editor.Name = "editor"; this.editor.NewFilePath = null; this.editor.OldFilePath = null; this.editor.UpdatedFilePath = null; this.editor.UpdatePaneFont = new System.Drawing.Font("Verdana", 8.25F); // // MainForm // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.btnDoWork); this.Controls.Add(this.editor); this.Controls.Add(statusStrip); this.Controls.Add(this.menuStrip); this.Controls.Add(this.tableTopAll); this.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::Updater.Common.Properties.Settings.Default, "FormTitle", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); this.DoubleBuffered = true; this.MainMenuStrip = this.menuStrip; this.Name = "MainForm"; this.Text = global::Updater.Common.Properties.Settings.Default.FormTitle; this.ResizeBegin += new System.EventHandler(this.form_ResizeBegin); this.tableTopAll.ResumeLayout(false); this.tableTopAll.PerformLayout(); tableTopRight.ResumeLayout(false); tableTopRight.PerformLayout(); tableTopLeft.ResumeLayout(false); tableTopLeft.PerformLayout(); statusStrip.ResumeLayout(false); statusStrip.PerformLayout(); this.menuStrip.ResumeLayout(false); this.menuStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <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.Panel panelControls; System.Windows.Forms.GroupBox filtersGroup; System.Windows.Forms.SplitContainer splitContainer; System.Windows.Forms.TableLayoutPanel tableLeft; System.Windows.Forms.TableLayoutPanel tableRight; this.episodesTree = new System.Windows.Forms.TreeView(); this.episodesCountLabel = new System.Windows.Forms.Label(); this.refreshButton = new System.Windows.Forms.Button(); this.hideWholeSeasons = new System.Windows.Forms.CheckBox(); this.hideLocked = new System.Windows.Forms.CheckBox(); this.hidePart2 = new System.Windows.Forms.CheckBox(); this.hideSeason0 = new System.Windows.Forms.CheckBox(); this.hideUnaired = new System.Windows.Forms.CheckBox(); this.duplicatesButton = new System.Windows.Forms.Button(); this.missingButton = new System.Windows.Forms.Button(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); panelControls = new System.Windows.Forms.Panel(); filtersGroup = new System.Windows.Forms.GroupBox(); splitContainer = new System.Windows.Forms.SplitContainer(); tableLeft = new System.Windows.Forms.TableLayoutPanel(); tableRight = new System.Windows.Forms.TableLayoutPanel(); panelControls.SuspendLayout(); filtersGroup.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(splitContainer)).BeginInit(); splitContainer.Panel1.SuspendLayout(); splitContainer.Panel2.SuspendLayout(); splitContainer.SuspendLayout(); tableLeft.SuspendLayout(); tableRight.SuspendLayout(); this.SuspendLayout(); // // episodesTree // this.episodesTree.Dock = System.Windows.Forms.DockStyle.Fill; this.episodesTree.Location = new System.Drawing.Point(3, 36); this.episodesTree.Name = "episodesTree"; this.episodesTree.Size = new System.Drawing.Size(232, 497); this.episodesTree.TabIndex = 0; this.toolTip.SetToolTip(this.episodesTree, "Shows the results of the search"); // // episodesCountLabel // this.episodesCountLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.episodesCountLabel.AutoSize = true; this.episodesCountLabel.Location = new System.Drawing.Point(3, 20); this.episodesCountLabel.Name = "episodesCountLabel"; this.episodesCountLabel.Size = new System.Drawing.Size(114, 13); this.episodesCountLabel.TabIndex = 1; this.episodesCountLabel.Text = "Number of Episodes: 0"; // // refreshButton // this.refreshButton.Anchor = System.Windows.Forms.AnchorStyles.Left; this.refreshButton.Location = new System.Drawing.Point(3, 5); this.refreshButton.Name = "refreshButton"; this.refreshButton.Size = new System.Drawing.Size(144, 23); this.refreshButton.TabIndex = 1; this.refreshButton.Text = "Refresh Episode Counts"; this.toolTip.SetToolTip(this.refreshButton, "Searches the Output Directories for episodes and updates their file count numbers" + ". \r\nThis is used to determine the results of the missing and duplicate episode\r\n" + "searches."); this.refreshButton.UseVisualStyleBackColor = true; this.refreshButton.Click += new System.EventHandler(this.RefreshButtonClick); // // panelControls // panelControls.Controls.Add(filtersGroup); panelControls.Controls.Add(this.duplicatesButton); panelControls.Controls.Add(this.missingButton); panelControls.Dock = System.Windows.Forms.DockStyle.Fill; panelControls.Location = new System.Drawing.Point(0, 33); panelControls.Margin = new System.Windows.Forms.Padding(0); panelControls.Name = "panelControls"; panelControls.Size = new System.Drawing.Size(468, 503); panelControls.TabIndex = 2; // // filtersGroup // filtersGroup.Controls.Add(this.hideWholeSeasons); filtersGroup.Controls.Add(this.hideLocked); filtersGroup.Controls.Add(this.hidePart2); filtersGroup.Controls.Add(this.hideSeason0); filtersGroup.Controls.Add(this.hideUnaired); filtersGroup.Location = new System.Drawing.Point(3, 32); filtersGroup.Name = "filtersGroup"; filtersGroup.Size = new System.Drawing.Size(294, 136); filtersGroup.TabIndex = 4; filtersGroup.TabStop = false; filtersGroup.Text = "Missing Episode Filters"; // // hideWholeSeasons // this.hideWholeSeasons.AutoSize = true; this.hideWholeSeasons.Location = new System.Drawing.Point(6, 111); this.hideWholeSeasons.Name = "hideWholeSeasons"; this.hideWholeSeasons.Size = new System.Drawing.Size(156, 17); this.hideWholeSeasons.TabIndex = 4; this.hideWholeSeasons.Text = "Hide entire missing seasons"; this.toolTip.SetToolTip(this.hideWholeSeasons, "Hides episodes where and entire season is missing. This can be useful for long ru" + "nning where you don\'t have early seasons."); this.hideWholeSeasons.UseVisualStyleBackColor = true; // // hideLocked // this.hideLocked.AutoSize = true; this.hideLocked.Location = new System.Drawing.Point(6, 88); this.hideLocked.Name = "hideLocked"; this.hideLocked.Size = new System.Drawing.Size(116, 17); this.hideLocked.TabIndex = 3; this.hideLocked.Text = "Hide locked shows"; this.toolTip.SetToolTip(this.hideLocked, "Hides the episodes from shows that are locked."); this.hideLocked.UseVisualStyleBackColor = true; // // hidePart2 // this.hidePart2.AutoSize = true; this.hidePart2.Location = new System.Drawing.Point(6, 65); this.hidePart2.Name = "hidePart2"; this.hidePart2.Size = new System.Drawing.Size(165, 17); this.hidePart2.TabIndex = 2; this.hidePart2.Text = "Hide episodes ending with (2)"; this.toolTip.SetToolTip(this.hidePart2, "Hides episodes with the name ending in (2). \r\nIt is possible these aren\'t missing" + " but the filename\r\ndoesn\'t contain both episode numbers and so\r\nTVSorter isn\'t a" + "ble to match it."); this.hidePart2.UseVisualStyleBackColor = true; // // hideSeason0 // this.hideSeason0.AutoSize = true; this.hideSeason0.Location = new System.Drawing.Point(6, 42); this.hideSeason0.Name = "hideSeason0"; this.hideSeason0.Size = new System.Drawing.Size(143, 17); this.hideSeason0.TabIndex = 1; this.hideSeason0.Text = "Hide season 0 (Specials)"; this.toolTip.SetToolTip(this.hideSeason0, "Hides episode in season 0. These are generally specials."); this.hideSeason0.UseVisualStyleBackColor = true; // // hideUnaired // this.hideUnaired.AutoSize = true; this.hideUnaired.Location = new System.Drawing.Point(6, 19); this.hideUnaired.Name = "hideUnaired"; this.hideUnaired.Size = new System.Drawing.Size(109, 17); this.hideUnaired.TabIndex = 0; this.hideUnaired.Text = "Hide not yet aired"; this.toolTip.SetToolTip(this.hideUnaired, "Hides episodes from the results whose air date is in the future"); this.hideUnaired.UseVisualStyleBackColor = true; // // duplicatesButton // this.duplicatesButton.Location = new System.Drawing.Point(153, 3); this.duplicatesButton.Name = "duplicatesButton"; this.duplicatesButton.Size = new System.Drawing.Size(144, 23); this.duplicatesButton.TabIndex = 3; this.duplicatesButton.Text = "Display Duplicate Episodes"; this.toolTip.SetToolTip(this.duplicatesButton, "Searches for duplicate episodes"); this.duplicatesButton.UseVisualStyleBackColor = true; this.duplicatesButton.Click += new System.EventHandler(this.DuplicatesButtonClick); // // missingButton // this.missingButton.Location = new System.Drawing.Point(3, 3); this.missingButton.Name = "missingButton"; this.missingButton.Size = new System.Drawing.Size(144, 23); this.missingButton.TabIndex = 2; this.missingButton.Text = "Display Missing Episodes"; this.toolTip.SetToolTip(this.missingButton, "Searches for missing episodes."); this.missingButton.UseVisualStyleBackColor = true; this.missingButton.Click += new System.EventHandler(this.MissingButtonClick); // // splitContainer // splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; splitContainer.Location = new System.Drawing.Point(0, 0); splitContainer.Name = "splitContainer"; // // splitContainer.Panel1 // splitContainer.Panel1.Controls.Add(tableLeft); // // splitContainer.Panel2 // splitContainer.Panel2.Controls.Add(tableRight); splitContainer.Size = new System.Drawing.Size(710, 536); splitContainer.SplitterDistance = 238; splitContainer.TabIndex = 5; // // tableLeft // tableLeft.ColumnCount = 1; tableLeft.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableLeft.Controls.Add(this.episodesTree, 0, 1); tableLeft.Controls.Add(this.episodesCountLabel, 0, 0); tableLeft.Dock = System.Windows.Forms.DockStyle.Fill; tableLeft.Location = new System.Drawing.Point(0, 0); tableLeft.Name = "tableLeft"; tableLeft.RowCount = 2; tableLeft.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 33F)); tableLeft.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableLeft.Size = new System.Drawing.Size(238, 536); tableLeft.TabIndex = 0; // // tableRight // tableRight.ColumnCount = 1; tableRight.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableRight.Controls.Add(panelControls, 0, 1); tableRight.Controls.Add(this.refreshButton, 0, 0); tableRight.Dock = System.Windows.Forms.DockStyle.Fill; tableRight.Location = new System.Drawing.Point(0, 0); tableRight.Name = "tableRight"; tableRight.RowCount = 2; tableRight.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 33F)); tableRight.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableRight.Size = new System.Drawing.Size(468, 536); tableRight.TabIndex = 0; // // MissingDuplicateEpisodes // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(splitContainer); this.Name = "MissingDuplicateEpisodes"; this.Size = new System.Drawing.Size(710, 536); this.Load += new System.EventHandler(this.MissingDuplicateEpisodesLoad); panelControls.ResumeLayout(false); filtersGroup.ResumeLayout(false); filtersGroup.PerformLayout(); splitContainer.Panel1.ResumeLayout(false); splitContainer.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(splitContainer)).EndInit(); splitContainer.ResumeLayout(false); tableLeft.ResumeLayout(false); tableLeft.PerformLayout(); tableRight.ResumeLayout(false); this.ResumeLayout(false); }
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 : sDevice = [CONF] sCallIDTelSys = 9D1CE0BF47B8039EDB48 sDeviceDistantEnd = 3321 bUseDistantEndAlsoIfUsingCallID = True bCallInInfoOverride = False sCallInInfoGrp = sCallInInfoDDIDigits = bIgnoreNonCallConnections = True bSearchForwards = False bSearchAllCallConnections = True bClearByDevFirstRung = False bClearDistantEndConnectionIfFlagsMatch = False iClearDistantEndConnectionIfFlagsMatch = 0 bDoNotAttemptOnHookCalculation = False ================================================================ DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDevice = 3321 sCallIDTelSys = 9D1CE0BF47B8039EDB48 sDeviceDistantEnd = bUseDistantEndAlsoIfUsingCallID = False bCallInInfoOverride = False sCallInInfoGrp = sCallInInfoDDIDigits = bIgnoreNonCallConnections = True bSearchForwards = False bSearchAllCallConnections = True bClearByDevFirstRung = False bClearDistantEndConnectionIfFlagsMatch = False iClearDistantEndConnectionIfFlagsMatch = 0 bDoNotAttemptOnHookCalculation = False ================================================================ DevCallConnctnDelete - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDevice = [CONF] sCallIDTelSys = 9D1CE0BF47B8039EDB48 sDeviceDistantEnd = bUseDistantEndAlsoIfUsingCallID = False bCallInInfoOverride = False sCallInInfoGrp = sCallInInfoDDIDigits = bIgnoreNonCallConnections = True bSearchForwards = False bSearchAllCallConnections = True bClearByDevFirstRung = False bClearDistantEndConnectionIfFlagsMatch = False iClearDistantEndConnectionIfFlagsMatch = 0 bDoNotAttemptOnHookCalculation = False ================================================================ DevCallAnswer - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sDeviceLocal = 3311, LegID = sDeviceDistant = 3321, LegID = sDeviceGroup = , LegID = bAlwaysUseDevGrpToCalcGrpDistrib = False iCallModellingFlags = 15 sCallIDTelSys = 9D1CE0BF47B8039EDB48 bCalcMainCallIDFromConnectns = True bMarkAnsweredIn = True bMarkAnsweredOut = True bMarkUnHeldIn = True bMarkUnHeldOut = True bDeleteCallConnectnsElsewhere = False bUseCallAnswerFlagForCallConnectns = False bDegenerateCallConference = True bSegAlgrthmRun = True iSegAlgrthmFlags = 257 ================================================================ MainCallEnd - sCallIDTelSys = 9D1CE0BF47B8039EDB48 : sCallIDTelSys = 9D1CE0BF47B8039EDB48 pSDeviceDistant = [CONF], LegID = pSDeviceLocal = 3311, LegID = sDeviceExtLst = "; string[] bbb = System.Text.RegularExpressions.Regex.Split(aaa, String.Format("{1}+{0}{1}+", @"={2,}\s*", Environment.NewLine));//, System.Text.RegularExpressions.RegexOptions.Multiline); int counter = 1; foreach (string item in bbb) { eee.Text += item; if (!String.IsNullOrWhiteSpace(item)) { string []info = item.Split(new string[]{" - "}, StringSplitOptions.RemoveEmptyEntries); if (info.Length == 2) { TabPage tb = new TabPage(counter.ToString()); RichTextBox tbText = new RichTextBox(); tbText.Text = info[0] + Environment.NewLine; tbText.Text += " " + info[1]; tbText.Size = tbText.PreferredSize; tb.Controls.Add(tbText); tbc.TabPages.Add(tb); tb.Dock = DockStyle.Fill; counter++; } } } //tbc.Size = tbc.GetPreferredSize(tbc.Size); tbc.Dock = DockStyle.Fill; //tbc.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right; //int globalindex = 0; //foreach (string line in eee.Lines) //{ // int index = line.IndexOf(" = ", 0); // if (index > -1) // { // eee.SelectionStart = globalindex + index + 3; // eee.SelectionLength = line.Length - index - 3; // eee.SelectionFont = new System.Drawing.Font(eee.Font, FontStyle.Bold); // } // globalindex += line.Length + 1; //} eee.Size = eee.PreferredSize; ModelingForm.SuspendLayout(); sc.Size = sc.PreferredSize; sc.SuspendLayout(); //ModelingForm.Controls.AddRange(new Control[] { eee, tbc }); //ModelingForm.Controls.AddRange(new Control[] { tbc }); ModelingForm.Controls.AddRange(new Control[] { sc }); ModelingForm.Show(this); sc.ResumeLayout(); ModelingForm.ResumeLayout(); } else { ModelingForm.Close(); ModelingForm = null; } }
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 (); }
public static Task ShowPlots(string wndTitlle, params PlotModel[] models) { Task task = Task.Run(() => { // var frm = new Form(); // // tableLayoutPanel1 // var tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel1.SuspendLayout(); frm.SuspendLayout(); tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); tableLayoutPanel1.Name = "tableLayoutPanel1"; //column/row tableLayoutPanel1.ColumnCount = 1; tableLayoutPanel1.ColumnStyles.Add( new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableLayoutPanel1.RowCount = models.Length; for (int i = 0; i < models.Length; i++) { tableLayoutPanel1.RowStyles.Add( new System.Windows.Forms.RowStyle(SizeType.Percent, (float)(1.0 / (float)models.Length))); } for (int i = 0; i < models.Length; i++) { tableLayoutPanel1.Controls.Add(getplotView(models[i]), 0, i); } tableLayoutPanel1.Size = new System.Drawing.Size(0, 0); tableLayoutPanel1.TabIndex = 0; frm.Size = new System.Drawing.Size(950, 600); frm.WindowState = FormWindowState.Normal; frm.StartPosition = FormStartPosition.CenterScreen; frm.Text = wndTitlle; tableLayoutPanel1.ResumeLayout(false); frm.Controls.Add(tableLayoutPanel1); frm.ResumeLayout(false); frm.ShowDialog(); }); return(task); OxyPlot.WindowsForms.PlotView getplotView(PlotModel model) { var plot1 = new OxyPlot.WindowsForms.PlotView(); // // plot1 // plot1.Dock = System.Windows.Forms.DockStyle.Fill; plot1.Location = new System.Drawing.Point(0, 0); plot1.Name = "plot1"; plot1.PanCursor = System.Windows.Forms.Cursors.Hand; //plot1.Size = new System.Drawing.Size(1219, 688); plot1.TabIndex = 1; plot1.ZoomHorizontalCursor = System.Windows.Forms.Cursors.SizeWE; plot1.ZoomRectangleCursor = System.Windows.Forms.Cursors.SizeNWSE; plot1.ZoomVerticalCursor = System.Windows.Forms.Cursors.SizeNS; plot1.Model = model; //plot1.Show(); return(plot1); } }
public void XamarinBug18638 () { // Spanning items should not have their entire width assigned to the first column in the span. TableLayoutPanel tlp = new TableLayoutPanel (); tlp.SuspendLayout (); tlp.Size = new Size(291, 100); tlp.AutoSize = true; tlp.ColumnStyles.Add (new ColumnStyle (SizeType.Absolute, 60)); tlp.ColumnStyles.Add (new ColumnStyle (SizeType.Percent, 100)); tlp.ColumnStyles.Add (new ColumnStyle (SizeType.Absolute, 45)); tlp.ColumnCount = 3; tlp.RowStyles.Add (new RowStyle (SizeType.AutoSize)); var label1 = new Label {AutoSize = true, Text = @"This line spans all three columns in the table!"}; tlp.Controls.Add (label1, 0, 0); tlp.SetColumnSpan (label1, 3); tlp.RowStyles.Add (new RowStyle (SizeType.AutoSize)); tlp.RowCount = 1; var label2 = new Label {AutoSize = true, Text = @"This line spans columns two and three."}; tlp.Controls.Add (label2, 1, 1); tlp.SetColumnSpan (label2, 2); tlp.RowCount = 2; AddTableRow (tlp, "First Row", "This is a test"); AddTableRow (tlp, "Row 2", "This is another test"); tlp.ResumeLayout (); var widths = tlp.GetColumnWidths (); Assert.AreEqual (4, tlp.RowCount, "X18638-1"); Assert.AreEqual (3, tlp.ColumnCount, "X18638-2"); Assert.AreEqual (60, widths[0], "X18638-3"); Assert.Greater (label2.Width, widths[1], "X18638-5"); Assert.AreEqual (45, widths[2], "X18638-4"); }
public void AddToTable( TableLayoutPanel table ) { table.SuspendLayout(); table.Controls.Add( Name, 0, 0 ); table.Controls.Add( StateMain, 1, 0 ); table.Controls.Add( AirSuperiority, 2, 0 ); table.Controls.Add( SearchingAbility, 3, 0 ); table.Controls.Add( DrumCanister, 4, 0 ); table.Controls.Add( LandingCraft, 5, 0 ); table.Controls.Add( ConditionSparkle, 6, 0 ); table.ResumeLayout(); int row = 0; #region set RowStyle RowStyle rs = new RowStyle( SizeType.Absolute, 21 ); if ( table.RowStyles.Count > row ) table.RowStyles[row] = rs; else while ( table.RowStyles.Count <= row ) table.RowStyles.Add( rs ); #endregion }
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(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { TitlePanel = new System.Windows.Forms.Panel(); TitleLabel = new System.Windows.Forms.Label(); Title = new System.Windows.Forms.Label(); tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); CancelLabel = new System.Windows.Forms.Label(); ConfirmLabel = new System.Windows.Forms.Label(); CareerTabel = new System.Windows.Forms.TableLayoutPanel(); label20 = new System.Windows.Forms.Label(); label19 = new System.Windows.Forms.Label(); label18 = new System.Windows.Forms.Label(); label17 = new System.Windows.Forms.Label(); label16 = new System.Windows.Forms.Label(); label15 = new System.Windows.Forms.Label(); label14 = new System.Windows.Forms.Label(); label13 = new System.Windows.Forms.Label(); label12 = new System.Windows.Forms.Label(); label11 = new System.Windows.Forms.Label(); label10 = new System.Windows.Forms.Label(); label8 = new System.Windows.Forms.Label(); label1 = new System.Windows.Forms.Label(); label9 = new System.Windows.Forms.Label(); label31 = new System.Windows.Forms.Label(); label32 = new System.Windows.Forms.Label(); label33 = new System.Windows.Forms.Label(); CareerLabel = new System.Windows.Forms.Label(); label3 = new System.Windows.Forms.Label(); TitlePanel.SuspendLayout(); tableLayoutPanel2.SuspendLayout(); CareerTabel.SuspendLayout(); SuspendLayout(); // // TitlePanel // TitlePanel.BackColor = System.Drawing.Color.Transparent; TitlePanel.Controls.Add(TitleLabel); TitlePanel.Controls.Add(Title); TitlePanel.Dock = System.Windows.Forms.DockStyle.Top; TitlePanel.Location = new System.Drawing.Point(0, 0); TitlePanel.Name = "TitlePanel"; TitlePanel.Size = new System.Drawing.Size(1096, 40); TitlePanel.TabIndex = 1; // // TitleLabel // TitleLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180))))); TitleLabel.Dock = System.Windows.Forms.DockStyle.Fill; TitleLabel.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); TitleLabel.ForeColor = System.Drawing.Color.White; TitleLabel.Location = new System.Drawing.Point(0, 0); TitleLabel.Name = "TitleLabel"; TitleLabel.Size = new System.Drawing.Size(1096, 40); TitleLabel.TabIndex = 2; TitleLabel.Text = "職業選取"; TitleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; TitleLabel.UseCompatibleTextRendering = true; TitleLabel.MouseDown += new System.Windows.Forms.MouseEventHandler(TitleLabel_MouseDown); TitleLabel.MouseMove += new System.Windows.Forms.MouseEventHandler(TitleLabel_MouseMove); TitleLabel.MouseUp += new System.Windows.Forms.MouseEventHandler(TitleLabel_MouseUp); // // Title // Title.AutoSize = true; Title.BackColor = System.Drawing.Color.Transparent; Title.Location = new System.Drawing.Point(0, 0); Title.Name = "Title"; Title.Size = new System.Drawing.Size(41, 15); Title.TabIndex = 0; Title.Text = "label1"; // // tableLayoutPanel2 // tableLayoutPanel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180))))); tableLayoutPanel2.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; tableLayoutPanel2.ColumnCount = 2; tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel2.Controls.Add(CancelLabel, 0, 0); tableLayoutPanel2.Controls.Add(ConfirmLabel, 0, 0); tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Bottom; tableLayoutPanel2.Location = new System.Drawing.Point(0, 448); tableLayoutPanel2.Name = "tableLayoutPanel2"; tableLayoutPanel2.RowCount = 1; tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); tableLayoutPanel2.Size = new System.Drawing.Size(1096, 42); tableLayoutPanel2.TabIndex = 2; // // CancelLabel // CancelLabel.BackColor = System.Drawing.Color.Transparent; CancelLabel.Dock = System.Windows.Forms.DockStyle.Fill; CancelLabel.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); CancelLabel.ForeColor = System.Drawing.Color.White; CancelLabel.Location = new System.Drawing.Point(551, 1); CancelLabel.Name = "CancelLabel"; CancelLabel.Size = new System.Drawing.Size(541, 40); CancelLabel.TabIndex = 4; CancelLabel.Text = "取消"; CancelLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; CancelLabel.UseCompatibleTextRendering = true; CancelLabel.Click += new System.EventHandler(CancelLabel_Click); // // ConfirmLabel // ConfirmLabel.BackColor = System.Drawing.Color.Transparent; ConfirmLabel.Dock = System.Windows.Forms.DockStyle.Fill; ConfirmLabel.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); ConfirmLabel.ForeColor = System.Drawing.Color.White; ConfirmLabel.Location = new System.Drawing.Point(4, 1); ConfirmLabel.Name = "ConfirmLabel"; ConfirmLabel.Size = new System.Drawing.Size(540, 40); ConfirmLabel.TabIndex = 3; ConfirmLabel.Text = "確認"; ConfirmLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; ConfirmLabel.UseCompatibleTextRendering = true; ConfirmLabel.Click += new System.EventHandler(ConfirmLabel_Click); // // CareerTabel // CareerTabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180))))); CareerTabel.ColumnCount = 13; CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 180F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F)); CareerTabel.Controls.Add(label20, 11, 0); CareerTabel.Controls.Add(label19, 10, 0); CareerTabel.Controls.Add(label18, 9, 0); CareerTabel.Controls.Add(label17, 8, 0); CareerTabel.Controls.Add(label16, 7, 0); CareerTabel.Controls.Add(label15, 6, 0); CareerTabel.Controls.Add(label14, 5, 0); CareerTabel.Controls.Add(label13, 4, 0); CareerTabel.Controls.Add(label12, 3, 0); CareerTabel.Controls.Add(label11, 2, 0); CareerTabel.Controls.Add(label10, 1, 0); CareerTabel.Controls.Add(label8, 0, 6); CareerTabel.Controls.Add(label1, 0, 0); CareerTabel.Controls.Add(label9, 0, 2); CareerTabel.Controls.Add(label31, 0, 3); CareerTabel.Controls.Add(label32, 0, 4); CareerTabel.Controls.Add(label33, 0, 5); CareerTabel.Controls.Add(CareerLabel, 0, 1); CareerTabel.Controls.Add(label3, 12, 0); CareerTabel.Dock = System.Windows.Forms.DockStyle.Fill; CareerTabel.Location = new System.Drawing.Point(0, 40); CareerTabel.Name = "CareerTabel"; CareerTabel.RowCount = 7; CareerTabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); CareerTabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); CareerTabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); CareerTabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); CareerTabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); CareerTabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); CareerTabel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); CareerTabel.Size = new System.Drawing.Size(1096, 408); CareerTabel.TabIndex = 3; // // label20 // label20.BackColor = System.Drawing.Color.Transparent; label20.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label20.Dock = System.Windows.Forms.DockStyle.Fill; label20.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label20.ForeColor = System.Drawing.Color.White; label20.Location = new System.Drawing.Point(943, 0); label20.Name = "label20"; label20.Size = new System.Drawing.Size(70, 58); label20.TabIndex = 20; label20.Text = "十一"; label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label20.UseCompatibleTextRendering = true; // // label19 // label19.BackColor = System.Drawing.Color.Transparent; label19.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label19.Dock = System.Windows.Forms.DockStyle.Fill; label19.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label19.ForeColor = System.Drawing.Color.White; label19.Location = new System.Drawing.Point(867, 0); label19.Name = "label19"; label19.Size = new System.Drawing.Size(70, 58); label19.TabIndex = 19; label19.Text = "十"; label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label19.UseCompatibleTextRendering = true; // // label18 // label18.BackColor = System.Drawing.Color.Transparent; label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label18.Dock = System.Windows.Forms.DockStyle.Fill; label18.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label18.ForeColor = System.Drawing.Color.White; label18.Location = new System.Drawing.Point(791, 0); label18.Name = "label18"; label18.Size = new System.Drawing.Size(70, 58); label18.TabIndex = 18; label18.Text = "九"; label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label18.UseCompatibleTextRendering = true; // // label17 // label17.BackColor = System.Drawing.Color.Transparent; label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label17.Dock = System.Windows.Forms.DockStyle.Fill; label17.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label17.ForeColor = System.Drawing.Color.White; label17.Location = new System.Drawing.Point(715, 0); label17.Name = "label17"; label17.Size = new System.Drawing.Size(70, 58); label17.TabIndex = 17; label17.Text = "八"; label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label17.UseCompatibleTextRendering = true; // // label16 // label16.BackColor = System.Drawing.Color.Transparent; label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label16.Dock = System.Windows.Forms.DockStyle.Fill; label16.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label16.ForeColor = System.Drawing.Color.White; label16.Location = new System.Drawing.Point(639, 0); label16.Name = "label16"; label16.Size = new System.Drawing.Size(70, 58); label16.TabIndex = 16; label16.Text = "七"; label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label16.UseCompatibleTextRendering = true; // // label15 // label15.BackColor = System.Drawing.Color.Transparent; label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label15.Dock = System.Windows.Forms.DockStyle.Fill; label15.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label15.ForeColor = System.Drawing.Color.White; label15.Location = new System.Drawing.Point(563, 0); label15.Name = "label15"; label15.Size = new System.Drawing.Size(70, 58); label15.TabIndex = 15; label15.Text = "六"; label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label15.UseCompatibleTextRendering = true; // // label14 // label14.BackColor = System.Drawing.Color.Transparent; label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label14.Dock = System.Windows.Forms.DockStyle.Fill; label14.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label14.ForeColor = System.Drawing.Color.White; label14.Location = new System.Drawing.Point(487, 0); label14.Name = "label14"; label14.Size = new System.Drawing.Size(70, 58); label14.TabIndex = 14; label14.Text = "五"; label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label14.UseCompatibleTextRendering = true; // // label13 // label13.BackColor = System.Drawing.Color.Transparent; label13.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label13.Dock = System.Windows.Forms.DockStyle.Fill; label13.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label13.ForeColor = System.Drawing.Color.White; label13.Location = new System.Drawing.Point(411, 0); label13.Name = "label13"; label13.Size = new System.Drawing.Size(70, 58); label13.TabIndex = 13; label13.Text = "四"; label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label13.UseCompatibleTextRendering = true; // // label12 // label12.BackColor = System.Drawing.Color.Transparent; label12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label12.Dock = System.Windows.Forms.DockStyle.Fill; label12.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label12.ForeColor = System.Drawing.Color.White; label12.Location = new System.Drawing.Point(335, 0); label12.Name = "label12"; label12.Size = new System.Drawing.Size(70, 58); label12.TabIndex = 12; label12.Text = "三"; label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label12.UseCompatibleTextRendering = true; // // label11 // label11.BackColor = System.Drawing.Color.Transparent; label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label11.Dock = System.Windows.Forms.DockStyle.Fill; label11.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label11.ForeColor = System.Drawing.Color.White; label11.Location = new System.Drawing.Point(259, 0); label11.Name = "label11"; label11.Size = new System.Drawing.Size(70, 58); label11.TabIndex = 11; label11.Text = "二"; label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label11.UseCompatibleTextRendering = true; // // label10 // label10.BackColor = System.Drawing.Color.Transparent; label10.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label10.Dock = System.Windows.Forms.DockStyle.Fill; label10.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label10.ForeColor = System.Drawing.Color.White; label10.Location = new System.Drawing.Point(183, 0); label10.Name = "label10"; label10.Size = new System.Drawing.Size(70, 58); label10.TabIndex = 10; label10.Text = "一"; label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label10.UseCompatibleTextRendering = true; // // label8 // label8.BackColor = System.Drawing.Color.Transparent; label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label8.Dock = System.Windows.Forms.DockStyle.Fill; label8.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label8.ForeColor = System.Drawing.Color.White; label8.Location = new System.Drawing.Point(3, 348); label8.Name = "label8"; label8.Size = new System.Drawing.Size(174, 60); label8.TabIndex = 8; label8.Text = "會計師"; label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label8.UseCompatibleTextRendering = true; // // label1 // label1.BackColor = System.Drawing.Color.Transparent; label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label1.Dock = System.Windows.Forms.DockStyle.Fill; label1.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label1.ForeColor = System.Drawing.Color.White; label1.Location = new System.Drawing.Point(3, 0); label1.Name = "label1"; label1.Size = new System.Drawing.Size(174, 58); label1.TabIndex = 2; label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label1.UseCompatibleTextRendering = true; // // label9 // label9.BackColor = System.Drawing.Color.Transparent; label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label9.Dock = System.Windows.Forms.DockStyle.Fill; label9.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label9.ForeColor = System.Drawing.Color.White; label9.Location = new System.Drawing.Point(3, 116); label9.Name = "label9"; label9.Size = new System.Drawing.Size(174, 58); label9.TabIndex = 9; label9.Text = "醫師"; label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label9.UseCompatibleTextRendering = true; // // label31 // label31.BackColor = System.Drawing.Color.Transparent; label31.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label31.Dock = System.Windows.Forms.DockStyle.Fill; label31.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label31.ForeColor = System.Drawing.Color.White; label31.Location = new System.Drawing.Point(3, 174); label31.Name = "label31"; label31.Size = new System.Drawing.Size(174, 58); label31.TabIndex = 9; label31.Text = "建築師"; label31.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label31.UseCompatibleTextRendering = true; // // label32 // label32.BackColor = System.Drawing.Color.Transparent; label32.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label32.Dock = System.Windows.Forms.DockStyle.Fill; label32.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label32.ForeColor = System.Drawing.Color.White; label32.Location = new System.Drawing.Point(3, 232); label32.Name = "label32"; label32.Size = new System.Drawing.Size(174, 58); label32.TabIndex = 9; label32.Text = "電腦工程師"; label32.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label32.UseCompatibleTextRendering = true; // // label33 // label33.BackColor = System.Drawing.Color.Transparent; label33.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label33.Dock = System.Windows.Forms.DockStyle.Fill; label33.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label33.ForeColor = System.Drawing.Color.White; label33.Location = new System.Drawing.Point(3, 290); label33.Name = "label33"; label33.Size = new System.Drawing.Size(174, 58); label33.TabIndex = 9; label33.Text = "立委"; label33.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label33.UseCompatibleTextRendering = true; // // CareerLabel // CareerLabel.BackColor = System.Drawing.Color.Transparent; CareerLabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; CareerLabel.Dock = System.Windows.Forms.DockStyle.Fill; CareerLabel.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); CareerLabel.ForeColor = System.Drawing.Color.White; CareerLabel.Location = new System.Drawing.Point(3, 58); CareerLabel.Name = "CareerLabel"; CareerLabel.Size = new System.Drawing.Size(174, 58); CareerLabel.TabIndex = 21; CareerLabel.Text = "記者"; CareerLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; CareerLabel.UseCompatibleTextRendering = true; // // label3 // label3.BackColor = System.Drawing.Color.Transparent; label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; label3.Dock = System.Windows.Forms.DockStyle.Fill; label3.Font = new System.Drawing.Font("Microsoft JhengHei", 20F, System.Drawing.FontStyle.Bold); label3.ForeColor = System.Drawing.Color.White; label3.Location = new System.Drawing.Point(1019, 0); label3.Name = "label3"; label3.Size = new System.Drawing.Size(74, 58); label3.TabIndex = 20; label3.Text = "十二"; label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label3.UseCompatibleTextRendering = true; // // Team_Selection // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; BackgroundImage = global::Clockwork_Battle_V.CSharp.Properties.Resources.Background; ClientSize = new System.Drawing.Size(1096, 490); ControlBox = false; Controls.Add(CareerTabel); Controls.Add(tableLayoutPanel2); Controls.Add(TitlePanel); DoubleBuffered = true; FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; MaximizeBox = false; MinimizeBox = false; Name = "TeamSelection"; StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; TopMost = true; TitlePanel.ResumeLayout(false); TitlePanel.PerformLayout(); tableLayoutPanel2.ResumeLayout(false); CareerTabel.ResumeLayout(false); ResumeLayout(false); }
private static void ShowPanelBar(string text) { if (_form == null) { return; } _form.UseWaitCursor = true; _splashOuterPanel = new Panel(); _splashOuterTable = new TableLayoutPanel(); _splashInnerTable = new TableLayoutPanel(); _splashStatusLabel = new Label(); _splashAnimation = new PictureBox(); _splashOuterPanel.SuspendLayout(); _splashOuterTable.SuspendLayout(); _splashInnerTable.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(_splashAnimation)).BeginInit(); _form.SuspendLayout(); var splashX = (_form.ClientRectangle.Width / 2) - (262 / 2); var splashY = (_form.ClientRectangle.Height / 2) - (117 / 2); // // splashOuterPanel // _splashOuterPanel.BorderStyle = BorderStyle.FixedSingle; _splashOuterPanel.Controls.Add(_splashOuterTable); _splashOuterPanel.Location = new System.Drawing.Point(splashX, splashY); _splashOuterPanel.Name = "splashOuterPanel"; _splashOuterPanel.Size = new System.Drawing.Size(262, 117); _splashOuterPanel.UseWaitCursor = true; // // splashOuterTable // _splashOuterTable.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; _splashOuterTable.ColumnCount = 1; _splashOuterTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); _splashOuterTable.Controls.Add(_splashInnerTable, 0, 0); _splashOuterTable.Dock = DockStyle.Fill; _splashOuterTable.Location = new System.Drawing.Point(0, 0); _splashOuterTable.Name = "splashOuterTable"; _splashOuterTable.RowCount = 1; _splashOuterTable.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); _splashOuterTable.Size = new System.Drawing.Size(260, 115); _splashOuterTable.UseWaitCursor = true; // // splashInnerTable // _splashInnerTable.AutoSize = true; _splashInnerTable.BackgroundImage = Properties.Resources.AboutBack; _splashInnerTable.BackgroundImageLayout = ImageLayout.Stretch; _splashInnerTable.ColumnCount = 1; _splashInnerTable.ColumnStyles.Add(new ColumnStyle()); _splashInnerTable.Controls.Add(_splashStatusLabel, 0, 0); _splashInnerTable.Controls.Add(_splashAnimation, 0, 1); _splashInnerTable.Dock = DockStyle.Fill; _splashInnerTable.ForeColor = System.Drawing.SystemColors.ControlText; _splashInnerTable.Location = new System.Drawing.Point(1, 1); _splashInnerTable.Margin = new Padding(0); _splashInnerTable.Name = "splashInnerTable"; _splashInnerTable.RowCount = 2; _splashInnerTable.RowStyles.Add(new RowStyle(SizeType.Absolute, 60F)); _splashInnerTable.RowStyles.Add(new RowStyle()); _splashInnerTable.Size = new System.Drawing.Size(258, 113); _splashInnerTable.UseWaitCursor = true; // // splashStatusLabel // _splashStatusLabel.BackColor = System.Drawing.Color.Transparent; _splashStatusLabel.Dock = DockStyle.Fill; _splashStatusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F); _splashStatusLabel.ImeMode = ImeMode.NoControl; _splashStatusLabel.Location = new System.Drawing.Point(20, 0); _splashStatusLabel.Margin = new Padding(20, 0, 40, 0); _splashStatusLabel.Name = "splashStatusLabel"; _splashStatusLabel.Size = new System.Drawing.Size(210, 60); if (text.Length > 0) { _splashStatusLabel.Text = text; } _splashStatusLabel.TextAlign = System.Drawing.ContentAlignment.BottomLeft; _splashStatusLabel.UseWaitCursor = true; // // splashAnimation // _splashAnimation.Image = Properties.Resources.progressbar_green; _splashAnimation.ImeMode = ImeMode.NoControl; _splashAnimation.Location = new System.Drawing.Point(20, 70); _splashAnimation.Margin = new Padding(20, 10, 0, 0); _splashAnimation.Name = "splashAnimation"; _splashAnimation.Size = new System.Drawing.Size(214, 15); _splashAnimation.TabStop = false; _splashAnimation.UseWaitCursor = true; // // Add to form // _form.Controls.Add(_splashOuterPanel); _splashOuterPanel.ResumeLayout(false); _splashOuterTable.ResumeLayout(false); _splashOuterTable.PerformLayout(); _splashInnerTable.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(_splashAnimation)).EndInit(); _form.ResumeLayout(false); _splashOuterPanel.BringToFront(); }
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; }
/// <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 mainTable; System.Windows.Forms.Label nameLabel; this.listResults = new System.Windows.Forms.ListView(); this.nameColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.idColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.nameText = new System.Windows.Forms.TextBox(); this.searchButton = new System.Windows.Forms.Button(); this.closeButton = new System.Windows.Forms.Button(); this.selectButton = new System.Windows.Forms.Button(); mainTable = new System.Windows.Forms.TableLayoutPanel(); nameLabel = new System.Windows.Forms.Label(); mainTable.SuspendLayout(); this.SuspendLayout(); // // mainTable // mainTable.ColumnCount = 5; mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 44F)); mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F)); mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F)); mainTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F)); mainTable.Controls.Add(this.listResults, 0, 0); mainTable.Controls.Add(nameLabel, 0, 1); mainTable.Controls.Add(this.nameText, 1, 1); mainTable.Controls.Add(this.searchButton, 2, 1); mainTable.Controls.Add(this.closeButton, 4, 1); mainTable.Controls.Add(this.selectButton, 3, 1); mainTable.Dock = System.Windows.Forms.DockStyle.Fill; mainTable.Location = new System.Drawing.Point(0, 0); mainTable.Name = "mainTable"; mainTable.RowCount = 2; mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.31298F)); mainTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.68702F)); mainTable.Size = new System.Drawing.Size(458, 237); mainTable.TabIndex = 1; // // listResults // this.listResults.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.nameColumn, this.idColumn}); mainTable.SetColumnSpan(this.listResults, 5); this.listResults.Dock = System.Windows.Forms.DockStyle.Fill; this.listResults.FullRowSelect = true; this.listResults.Location = new System.Drawing.Point(3, 3); this.listResults.MultiSelect = false; this.listResults.Name = "listResults"; this.listResults.Size = new System.Drawing.Size(452, 205); this.listResults.TabIndex = 0; this.listResults.UseCompatibleStateImageBehavior = false; this.listResults.View = System.Windows.Forms.View.Details; this.listResults.DoubleClick += new System.EventHandler(this.ListResultsDoubleClick); // // nameColumn // this.nameColumn.Text = "Show Name"; this.nameColumn.Width = 338; // // idColumn // this.idColumn.Text = "TVDB ID"; this.idColumn.Width = 105; // // nameLabel // nameLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; nameLabel.AutoSize = true; nameLabel.Location = new System.Drawing.Point(3, 217); nameLabel.Name = "nameLabel"; nameLabel.Size = new System.Drawing.Size(38, 13); nameLabel.TabIndex = 1; nameLabel.Text = "Name:"; // // nameText // this.nameText.Dock = System.Windows.Forms.DockStyle.Fill; this.nameText.Location = new System.Drawing.Point(47, 214); this.nameText.Name = "nameText"; this.nameText.Size = new System.Drawing.Size(165, 20); this.nameText.TabIndex = 2; // // searchButton // this.searchButton.Dock = System.Windows.Forms.DockStyle.Fill; this.searchButton.Location = new System.Drawing.Point(218, 214); this.searchButton.Name = "searchButton"; this.searchButton.Size = new System.Drawing.Size(75, 20); this.searchButton.TabIndex = 3; this.searchButton.Text = "Search"; this.searchButton.UseVisualStyleBackColor = true; this.searchButton.Click += new System.EventHandler(this.SearchButtonClick); // // closeButton // this.closeButton.Dock = System.Windows.Forms.DockStyle.Fill; this.closeButton.Location = new System.Drawing.Point(380, 214); this.closeButton.Name = "closeButton"; this.closeButton.Size = new System.Drawing.Size(75, 20); this.closeButton.TabIndex = 4; this.closeButton.Text = "Close"; this.closeButton.UseVisualStyleBackColor = true; this.closeButton.Click += new System.EventHandler(this.CloseButtonClick); // // selectButton // this.selectButton.Dock = System.Windows.Forms.DockStyle.Fill; this.selectButton.Location = new System.Drawing.Point(299, 214); this.selectButton.Name = "selectButton"; this.selectButton.Size = new System.Drawing.Size(75, 20); this.selectButton.TabIndex = 5; this.selectButton.Text = "Select"; this.selectButton.UseVisualStyleBackColor = true; this.selectButton.Click += new System.EventHandler(this.SelectButtonClick); // // ShowSearchDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(458, 237); this.ControlBox = false; this.Controls.Add(mainTable); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "ShowSearchDialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Show Search"; this.Load += new System.EventHandler(this.ShowSearchDialogLoad); mainTable.ResumeLayout(false); mainTable.PerformLayout(); this.ResumeLayout(false); }
[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 (); }
/// <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 info_container; System.Windows.Forms.TableLayoutPanel info_label_container; System.Windows.Forms.TableLayoutPanel container; System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); this.logout_button = new MetroFramework.Controls.MetroButton(); this.textfield_container = new System.Windows.Forms.TableLayoutPanel(); this.administration_button = new MetroFramework.Controls.MetroButton(); this.rating_button = new MetroFramework.Controls.MetroButton(); this.info_label = new MetroFramework.Controls.MetroLabel(); this.data_grid = new MetroFramework.Controls.MetroGrid(); this.guest_info_column = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.administration_info_column = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.average_rating_column = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ratings_count_column = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.select_column = new System.Windows.Forms.DataGridViewCheckBoxColumn(); info_container = new System.Windows.Forms.TableLayoutPanel(); info_label_container = new System.Windows.Forms.TableLayoutPanel(); container = new System.Windows.Forms.TableLayoutPanel(); info_container.SuspendLayout(); this.textfield_container.SuspendLayout(); info_label_container.SuspendLayout(); container.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.data_grid)).BeginInit(); this.SuspendLayout(); // // info_container // info_container.ColumnCount = 1; info_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); info_container.Controls.Add(this.logout_button, 0, 2); info_container.Controls.Add(this.textfield_container, 0, 1); info_container.Controls.Add(info_label_container, 0, 0); info_container.Location = new System.Drawing.Point(1, 31); info_container.Name = "info_container"; info_container.RowCount = 3; info_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F)); info_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F)); info_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F)); info_container.Size = new System.Drawing.Size(240, 303); info_container.TabIndex = 5; // // logout_button // this.logout_button.Anchor = System.Windows.Forms.AnchorStyles.None; this.logout_button.Location = new System.Drawing.Point(40, 245); this.logout_button.Name = "logout_button"; this.logout_button.Size = new System.Drawing.Size(160, 23); this.logout_button.TabIndex = 3; this.logout_button.Text = "Logout"; this.logout_button.UseCustomBackColor = true; this.logout_button.UseCustomForeColor = true; this.logout_button.UseSelectable = true; this.logout_button.Click += new System.EventHandler(this.logout_button_Click); // // textfield_container // this.textfield_container.ColumnCount = 1; this.textfield_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.textfield_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.textfield_container.Controls.Add(this.administration_button, 0, 1); this.textfield_container.Controls.Add(this.rating_button, 0, 0); this.textfield_container.Location = new System.Drawing.Point(3, 124); this.textfield_container.Name = "textfield_container"; this.textfield_container.RowCount = 2; this.textfield_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.textfield_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.textfield_container.Size = new System.Drawing.Size(234, 84); this.textfield_container.TabIndex = 1; // // administration_button // this.administration_button.Anchor = System.Windows.Forms.AnchorStyles.None; this.administration_button.Location = new System.Drawing.Point(37, 51); this.administration_button.Name = "administration_button"; this.administration_button.Size = new System.Drawing.Size(160, 23); this.administration_button.TabIndex = 3; this.administration_button.Text = "Make User(s) Admin"; this.administration_button.UseCustomBackColor = true; this.administration_button.UseCustomForeColor = true; this.administration_button.UseSelectable = true; this.administration_button.Click += new System.EventHandler(this.administration_button_Click); // // rating_button // this.rating_button.Anchor = System.Windows.Forms.AnchorStyles.None; this.rating_button.Location = new System.Drawing.Point(37, 9); this.rating_button.Name = "rating_button"; this.rating_button.Size = new System.Drawing.Size(160, 23); this.rating_button.TabIndex = 2; this.rating_button.Text = "Provide Rating to User(s)"; this.rating_button.UseCustomBackColor = true; this.rating_button.UseCustomForeColor = true; this.rating_button.UseSelectable = true; this.rating_button.Click += new System.EventHandler(this.rating_button_Click); // // info_label_container // info_label_container.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))); info_label_container.ColumnCount = 1; info_label_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); info_label_container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); info_label_container.Controls.Add(this.info_label, 0, 0); info_label_container.Location = new System.Drawing.Point(15, 15); info_label_container.Margin = new System.Windows.Forms.Padding(15); info_label_container.Name = "info_label_container"; info_label_container.RowCount = 1; info_label_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); info_label_container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 91F)); info_label_container.Size = new System.Drawing.Size(210, 91); info_label_container.TabIndex = 2; // // info_label // this.info_label.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))); this.info_label.AutoSize = true; this.info_label.FontSize = MetroFramework.MetroLabelSize.Small; this.info_label.Location = new System.Drawing.Point(3, 0); this.info_label.Name = "info_label"; this.info_label.Size = new System.Drawing.Size(204, 91); this.info_label.TabIndex = 5; this.info_label.Text = "INFO_LABEL_TEXT"; this.info_label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.info_label.UseCustomBackColor = true; this.info_label.UseCustomForeColor = true; this.info_label.WrapToLine = true; // // container // container.ColumnCount = 2; container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); container.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 66.67F)); container.Controls.Add(this.data_grid, 1, 0); container.Location = new System.Drawing.Point(1, 31); container.Name = "container"; container.RowCount = 1; container.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); container.Size = new System.Drawing.Size(718, 309); container.TabIndex = 6; // // data_grid // this.data_grid.AllowUserToAddRows = false; this.data_grid.AllowUserToDeleteRows = false; this.data_grid.AllowUserToResizeColumns = false; this.data_grid.AllowUserToResizeRows = false; this.data_grid.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); this.data_grid.BorderStyle = System.Windows.Forms.BorderStyle.None; this.data_grid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.data_grid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.data_grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.data_grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.data_grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.guest_info_column, this.administration_info_column, this.average_rating_column, this.ratings_count_column, this.select_column }); dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(136)))), ((int)(((byte)(136)))), ((int)(((byte)(136))))); dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.data_grid.DefaultCellStyle = dataGridViewCellStyle2; this.data_grid.EnableHeadersVisualStyles = false; this.data_grid.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.data_grid.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.data_grid.Location = new System.Drawing.Point(242, 3); this.data_grid.Name = "data_grid"; this.data_grid.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.data_grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; this.data_grid.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.data_grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.data_grid.Size = new System.Drawing.Size(473, 303); this.data_grid.TabIndex = 0; this.data_grid.UseCustomBackColor = true; this.data_grid.UseCustomForeColor = true; this.data_grid.AutoGenerateColumns = false; this.data_grid.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.data_grid_CellValueChanged); // // guest_info_column // this.guest_info_column.DataPropertyName = "ShortInfo"; this.guest_info_column.HeaderText = "Info"; this.guest_info_column.Name = "guest_info_column"; this.guest_info_column.ReadOnly = true; // // administration_info_column // this.administration_info_column.DataPropertyName = "FullInfo"; this.administration_info_column.HeaderText = "Info"; this.administration_info_column.Name = "administration_info_column"; this.administration_info_column.ReadOnly = true; // // average_rating_column // this.average_rating_column.DataPropertyName = "AverageRating"; this.average_rating_column.HeaderText = "Average Rating"; this.average_rating_column.Name = "average_rating_column"; this.average_rating_column.ReadOnly = true; // // ratings_count_column // this.ratings_count_column.DataPropertyName = "RatingsCount"; this.ratings_count_column.HeaderText = "Ratings Count"; this.ratings_count_column.Name = "ratings_count_column"; this.ratings_count_column.ReadOnly = true; // // select_column // this.select_column.FalseValue = false; this.select_column.HeaderText = "Selected"; this.select_column.Name = "select_column"; this.select_column.TrueValue = true; // // UserListScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(720, 340); this.Controls.Add(info_container); this.Controls.Add(container); this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(181)))), ((int)(((byte)(254))))); this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(720, 340); this.MinimumSize = new System.Drawing.Size(720, 340); this.Name = "UserListScreen"; this.Opacity = 0.8D; this.Resizable = false; this.ShowIcon = false; this.Theme = MetroFramework.MetroThemeStyle.Dark; info_container.ResumeLayout(false); this.textfield_container.ResumeLayout(false); info_label_container.ResumeLayout(false); info_label_container.PerformLayout(); container.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.data_grid)).EndInit(); this.ResumeLayout(false); }
private void AddTableRow(TableLayoutPanel tlp, string label, string text) { tlp.SuspendLayout (); int row = tlp.RowCount; tlp.RowStyles.Add (new RowStyle (SizeType.AutoSize)); var first = new Label {AutoSize = true, Dock = DockStyle.Fill, Text = label}; tlp.Controls.Add (first, 0, row); var second = new TextBox {AutoSize = true, Text = text, Dock = DockStyle.Fill, Multiline = true}; tlp.Controls.Add (second, 1, row); var third = new Button {Text = @"DEL", Dock = DockStyle.Fill}; tlp.Controls.Add (third, 2, row); tlp.RowCount = row + 1; tlp.ResumeLayout (); }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(SelectDialog)); this.rbMask = new RadioButton(); this.cmbMask = new ComboBox(); this.chkExceptMask = new CheckBox(); this.rbFilter = new RadioButton(); this.lstFilters = new ListBox(); this.chkSelectFolders = new CheckBox(); this.btnOk = new Button(); this.btnCancel = new Button(); this.bvlButtons = new Bevel(); TableLayoutPanel panel = new TableLayoutPanel(); TableLayoutPanel panel2 = new TableLayoutPanel(); panel.SuspendLayout(); panel2.SuspendLayout(); base.SuspendLayout(); manager.ApplyResources(panel, "tlpBack"); panel.Controls.Add(this.rbMask, 0, 0); panel.Controls.Add(this.cmbMask, 1, 1); panel.Controls.Add(this.chkExceptMask, 1, 3); panel.Controls.Add(this.rbFilter, 0, 4); panel.Controls.Add(this.lstFilters, 1, 5); panel.Controls.Add(this.chkSelectFolders, 1, 2); panel.Name = "tlpBack"; manager.ApplyResources(this.rbMask, "rbMask"); this.rbMask.Checked = true; panel.SetColumnSpan(this.rbMask, 2); this.rbMask.Name = "rbMask"; this.rbMask.TabStop = true; this.rbMask.UseVisualStyleBackColor = true; this.rbMask.Click += new EventHandler(this.rbMask_Click); manager.ApplyResources(this.cmbMask, "cmbMask"); this.cmbMask.Name = "cmbMask"; this.cmbMask.TextUpdate += new EventHandler(this.cmbMask_TextUpdate); manager.ApplyResources(this.chkExceptMask, "chkExceptMask"); this.chkExceptMask.Name = "chkExceptMask"; this.chkExceptMask.UseVisualStyleBackColor = true; manager.ApplyResources(this.rbFilter, "rbFilter"); panel.SetColumnSpan(this.rbFilter, 2); this.rbFilter.Name = "rbFilter"; this.rbFilter.UseVisualStyleBackColor = true; this.rbFilter.Click += new EventHandler(this.rbFilter_Click); manager.ApplyResources(this.lstFilters, "lstFilters"); this.lstFilters.FormattingEnabled = true; this.lstFilters.Name = "lstFilters"; this.lstFilters.Enter += new EventHandler(this.lstFilters_Enter); manager.ApplyResources(this.chkSelectFolders, "chkSelectFolders"); this.chkSelectFolders.Name = "chkSelectFolders"; this.chkSelectFolders.UseVisualStyleBackColor = true; manager.ApplyResources(panel2, "tlpButtons"); panel2.Controls.Add(this.btnOk, 1, 0); panel2.Controls.Add(this.btnCancel, 2, 0); panel2.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; panel2.Name = "tlpButtons"; manager.ApplyResources(this.btnOk, "btnOk"); this.btnOk.DialogResult = DialogResult.OK; this.btnOk.Name = "btnOk"; this.btnOk.UseVisualStyleBackColor = true; manager.ApplyResources(this.btnCancel, "btnCancel"); this.btnCancel.CausesValidation = false; this.btnCancel.DialogResult = DialogResult.Cancel; this.btnCancel.Name = "btnCancel"; this.btnCancel.UseVisualStyleBackColor = true; 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; base.CancelButton = this.btnCancel; base.Controls.Add(panel2); base.Controls.Add(this.bvlButtons); base.Controls.Add(panel); base.FixMouseWheel = Settings.Default.FixMouseWheel; base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "SelectDialog"; base.ShowInTaskbar = false; base.Shown += new EventHandler(this.SelectDialog_Shown); base.FormClosed += new FormClosedEventHandler(this.SelectDialog_FormClosed); panel.ResumeLayout(false); panel.PerformLayout(); panel2.ResumeLayout(false); panel2.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
/// <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 tableLayoutPanel1; System.Windows.Forms.Label label5; System.Windows.Forms.Label label4; System.Windows.Forms.Label label1; System.Windows.Forms.Label label2; System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; System.Windows.Forms.TableLayoutPanel tableLayoutPanel4; this.label3 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); label5 = new System.Windows.Forms.Label(); label4 = new System.Windows.Forms.Label(); label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); tableLayoutPanel2.SuspendLayout(); tableLayoutPanel3.SuspendLayout(); tableLayoutPanel4.SuspendLayout(); this.SuspendLayout(); // // tableLayoutPanel1 // tableLayoutPanel1.ColumnCount = 2; tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 41.95804F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 58.04196F)); tableLayoutPanel1.Controls.Add(label5, 0, 5); tableLayoutPanel1.Controls.Add(label4, 0, 4); tableLayoutPanel1.Controls.Add(this.label3, 0, 3); tableLayoutPanel1.Controls.Add(label1, 0, 0); tableLayoutPanel1.Controls.Add(label2, 0, 1); tableLayoutPanel1.Controls.Add(this.textBox1, 1, 0); tableLayoutPanel1.Controls.Add(this.numericUpDown1, 1, 1); tableLayoutPanel1.Controls.Add(this.trackBar1, 1, 3); tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 0, 5); tableLayoutPanel1.Controls.Add(tableLayoutPanel3, 1, 4); tableLayoutPanel1.Controls.Add(tableLayoutPanel4, 1, 5); tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 6; tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); tableLayoutPanel1.Size = new System.Drawing.Size(367, 239); tableLayoutPanel1.TabIndex = 0; // // label5 // label5.AutoSize = true; label5.Dock = System.Windows.Forms.DockStyle.Fill; label5.Location = new System.Drawing.Point(3, 200); label5.Name = "label5"; label5.Size = new System.Drawing.Size(147, 39); label5.TabIndex = 15; label5.Text = "Souris"; label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label4 // label4.AutoSize = true; label4.Dock = System.Windows.Forms.DockStyle.Fill; label4.Location = new System.Drawing.Point(3, 103); label4.Name = "label4"; label4.Size = new System.Drawing.Size(147, 42); label4.TabIndex = 12; label4.Text = "Fullscreen"; label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.AutoSize = true; this.label3.Dock = System.Windows.Forms.DockStyle.Fill; this.label3.Location = new System.Drawing.Point(3, 52); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(147, 51); this.label3.TabIndex = 5; this.label3.Text = "Taille Cellules"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // label1.AutoSize = true; label1.Dock = System.Windows.Forms.DockStyle.Fill; label1.Location = new System.Drawing.Point(3, 0); label1.Name = "label1"; label1.Size = new System.Drawing.Size(147, 26); label1.TabIndex = 0; label1.Text = "Nom"; label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // label2.AutoSize = true; label2.Dock = System.Windows.Forms.DockStyle.Fill; label2.Location = new System.Drawing.Point(3, 26); label2.Name = "label2"; label2.Size = new System.Drawing.Size(147, 26); label2.TabIndex = 1; label2.Text = "Argent"; label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textBox1 // this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox1.Location = new System.Drawing.Point(156, 3); this.textBox1.MaxLength = 20; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(208, 20); this.textBox1.TabIndex = 2; // // numericUpDown1 // this.numericUpDown1.Dock = System.Windows.Forms.DockStyle.Fill; this.numericUpDown1.Location = new System.Drawing.Point(156, 29); this.numericUpDown1.Maximum = new decimal(new int[] { 100000, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(208, 20); this.numericUpDown1.TabIndex = 3; this.numericUpDown1.Value = new decimal(new int[] { 100, 0, 0, 0 }); // // trackBar1 // this.trackBar1.Dock = System.Windows.Forms.DockStyle.Fill; this.trackBar1.Location = new System.Drawing.Point(156, 55); this.trackBar1.Maximum = 100; this.trackBar1.Minimum = 10; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(208, 45); this.trackBar1.TabIndex = 8; this.trackBar1.TickFrequency = 5; this.trackBar1.Value = 20; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // // tableLayoutPanel2 // tableLayoutPanel2.ColumnCount = 2; tableLayoutPanel1.SetColumnSpan(tableLayoutPanel2, 2); tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel2.Controls.Add(this.button2, 1, 0); tableLayoutPanel2.Controls.Add(this.button1, 0, 0); tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; tableLayoutPanel2.Location = new System.Drawing.Point(3, 148); tableLayoutPanel2.Name = "tableLayoutPanel2"; tableLayoutPanel2.RowCount = 1; tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 49F)); tableLayoutPanel2.Size = new System.Drawing.Size(361, 49); tableLayoutPanel2.TabIndex = 13; // // button2 // this.button2.Dock = System.Windows.Forms.DockStyle.Fill; this.button2.Enabled = false; this.button2.Location = new System.Drawing.Point(183, 3); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(175, 43); this.button2.TabIndex = 1; this.button2.Text = "Créer partie (server)"; this.button2.UseVisualStyleBackColor = true; // // button1 // this.button1.Dock = System.Windows.Forms.DockStyle.Fill; this.button1.Location = new System.Drawing.Point(3, 3); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(174, 43); this.button1.TabIndex = 0; this.button1.Text = "Créer partie (local)"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // tableLayoutPanel3 // tableLayoutPanel3.ColumnCount = 2; tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel3.Controls.Add(this.button4, 1, 0); tableLayoutPanel3.Controls.Add(this.button3, 0, 0); tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; tableLayoutPanel3.Location = new System.Drawing.Point(156, 106); tableLayoutPanel3.Name = "tableLayoutPanel3"; tableLayoutPanel3.RowCount = 1; tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel3.Size = new System.Drawing.Size(208, 36); tableLayoutPanel3.TabIndex = 14; // // button4 // this.button4.Dock = System.Windows.Forms.DockStyle.Fill; this.button4.Location = new System.Drawing.Point(107, 3); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(98, 30); this.button4.TabIndex = 1; this.button4.Text = "Windowed"; this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button_fullscreen_Click); // // button3 // this.button3.Dock = System.Windows.Forms.DockStyle.Fill; this.button3.Location = new System.Drawing.Point(3, 3); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(98, 30); this.button3.TabIndex = 0; this.button3.Text = "Fullscreen"; this.button3.UseVisualStyleBackColor = false; this.button3.Click += new System.EventHandler(this.button_fullscreen_Click); // // tableLayoutPanel4 // tableLayoutPanel4.ColumnCount = 2; tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel4.Controls.Add(this.button6, 0, 0); tableLayoutPanel4.Controls.Add(this.button5, 0, 0); tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; tableLayoutPanel4.Location = new System.Drawing.Point(156, 203); tableLayoutPanel4.Name = "tableLayoutPanel4"; tableLayoutPanel4.RowCount = 1; tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableLayoutPanel4.Size = new System.Drawing.Size(208, 33); tableLayoutPanel4.TabIndex = 14; // // button6 // this.button6.Dock = System.Windows.Forms.DockStyle.Fill; this.button6.Location = new System.Drawing.Point(107, 3); this.button6.Name = "button6"; this.button6.Size = new System.Drawing.Size(98, 27); this.button6.TabIndex = 2; this.button6.Text = "Fancy"; this.button6.UseVisualStyleBackColor = true; this.button6.Click += new System.EventHandler(this.button_FancyMouse_Click); // // button5 // this.button5.Dock = System.Windows.Forms.DockStyle.Fill; this.button5.Location = new System.Drawing.Point(3, 3); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(98, 27); this.button5.TabIndex = 1; this.button5.Text = "Classic"; this.button5.UseVisualStyleBackColor = false; this.button5.Click += new System.EventHandler(this.button_FancyMouse_Click); // // StartPage // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(367, 239); this.Controls.Add(tableLayoutPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "StartPage"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.Text = "StartPage"; tableLayoutPanel1.ResumeLayout(false); tableLayoutPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); tableLayoutPanel2.ResumeLayout(false); tableLayoutPanel3.ResumeLayout(false); tableLayoutPanel4.ResumeLayout(false); this.ResumeLayout(false); }
private void button1_Click(object sender, EventArgs e) { string message = "Z uwagi na fakt, że tworzenie całego systemu pod kątem oceny nie przyniosłoby rezultatów (wszystkie funkcje kluczowe z punktu widzenia wymogów projektu zostały już zaimplementowane), twórcy postanowili pozostawić sobie zadanie zaprojektowania działania tego formularza do dalszej, samodzielnej już zabawy z .NET. To, co zostało zaprezentowane tutaj jest wyłącznie wizualną prezentacją potencjalnych funkcji SOKu."; string caption = "To wciąż wersja Alpha :("; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message, caption, buttons2); Form przegladKonferencji = new Form(); przegladKonferencji.Height = 610; przegladKonferencji.Width = 773; #region layout ListBox ListViewConferece = new System.Windows.Forms.ListBox(); ColumnHeader Number = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader SubjectOfConference = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader Date = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); Button ShowDetails = new System.Windows.Forms.Button(); ComboBox SortComboBox1 = new System.Windows.Forms.ComboBox(); Button SortBtn = new System.Windows.Forms.Button(); TableLayoutPanel tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel1.SuspendLayout(); przegladKonferencji.SuspendLayout(); ListViewConferece.FormattingEnabled = true; ListViewConferece.ItemHeight = 18; ListViewConferece.Location = new System.Drawing.Point(128, 121); ListViewConferece.Name = "listBoxPokaz"; ListViewConferece.Size = new System.Drawing.Size(560, 337); ListViewConferece.TabIndex = 5; // // ListViewConferece // //ListViewConferece.AccessibleRole = System.Windows.Forms.AccessibleRole.None; //ListViewConferece.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { //Number, //SubjectOfConference, //}); //ListViewConferece.GridLines = true; //ListViewConferece.HideSelection = false; //ListViewConferece.Location = new System.Drawing.Point(128, 121); //ListViewConferece.Name = "ListViewConferece"; //ListViewConferece.Size = new System.Drawing.Size(560, 337); //ListViewConferece.TabIndex = 5; //ListViewConferece.UseCompatibleStateImageBehavior = false; //ListViewConferece.View = System.Windows.Forms.View.Details; //ListViewConferece.SelectedIndexChanged += new System.EventHandler(ListViewConferece_SelectedIndexChanged); // // Number // Number.Text = "Nr"; Number.Width = 30; // // SubjectOfConference // SubjectOfConference.Text = "Temat Konferencji"; SubjectOfConference.Width = 400; // // Date // Date.Text = "Data Konferencji"; Date.Width = 125; // // ShowDetails // ShowDetails.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); ShowDetails.Location = new System.Drawing.Point(512, 489); ShowDetails.Name = "ShowDetails"; ShowDetails.Size = new System.Drawing.Size(176, 41); ShowDetails.TabIndex = 4; ShowDetails.Text = "Pokaż szczegóły"; ShowDetails.UseVisualStyleBackColor = true; // // SortComboBox1 // SortComboBox1.Anchor = System.Windows.Forms.AnchorStyles.Left; SortComboBox1.FormattingEnabled = true; SortComboBox1.Items.AddRange(new object[] { "data rosnąco", "data malejąco", "alfabetycznie" }); SortComboBox1.Location = new System.Drawing.Point(128, 92); SortComboBox1.Name = "SortComboBox1"; SortComboBox1.Size = new System.Drawing.Size(159, 24); SortComboBox1.TabIndex = 2; SortComboBox1.SelectedIndexChanged += new System.EventHandler(comboBox1_SelectedIndexChanged); // // SortBtn // SortBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); SortBtn.Location = new System.Drawing.Point(25, 92); SortBtn.Name = "SortBtn"; SortBtn.Size = new System.Drawing.Size(97, 23); SortBtn.TabIndex = 0; SortBtn.Text = "Sortuj"; SortBtn.UseVisualStyleBackColor = true; // // tableLayoutPanel1 // tableLayoutPanel1.ColumnCount = 3; tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.59808F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 74.90092F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.586526F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 95F)); tableLayoutPanel1.Controls.Add(SortBtn, 0, 2); tableLayoutPanel1.Controls.Add(SortComboBox1, 1, 2); tableLayoutPanel1.Controls.Add(ShowDetails, 1, 4); tableLayoutPanel1.Controls.Add(ListViewConferece, 1, 3); tableLayoutPanel1.Location = new System.Drawing.Point(2, 1); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 5; tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 23.76238F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 76.23763F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 368F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 78F)); tableLayoutPanel1.Size = new System.Drawing.Size(757, 565); tableLayoutPanel1.TabIndex = 0; //tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(tableLayoutPanel1_Paint); // // PrzeglądKonferencji // przegladKonferencji.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); przegladKonferencji.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; przegladKonferencji.ClientSize = new System.Drawing.Size(755, 563); przegladKonferencji.Controls.Add(ListViewConferece); przegladKonferencji.Controls.Add(ShowDetails); przegladKonferencji.Controls.Add(ShowDetails); przegladKonferencji.Controls.Add(SortComboBox1); przegladKonferencji.Controls.Add(SortBtn); przegladKonferencji.Controls.Add(tableLayoutPanel1); przegladKonferencji.Name = "PrzeglądKonferencji"; przegladKonferencji.Text = "Przegląd Konferencji"; przegladKonferencji.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; //przegladKonferencji.Load += new System.EventHandler(this.FormularzTestowy_Load); tableLayoutPanel1.ResumeLayout(false); przegladKonferencji.ResumeLayout(false); przegladKonferencji.PerformLayout(); przegladKonferencji.ShowDialog(); #endregion void textBox1_TextChanged(object sender2, EventArgs e2) { } //void tableLayoutPanel1_Paint(object sender2, PaintEventArgs e2) //{ //} void listBox1_SelectedIndexChanged(object sender2, EventArgs e2) { } void comboBox1_SelectedIndexChanged(object sender2, EventArgs e2) { } void FormularzTestowy_Load(object sender2, EventArgs e2) { } void listView1_SelectedIndexChanged(object sender2, EventArgs e2) { } void numericUpDown1_ValueChanged(object sender2, EventArgs e2) { } }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MdiWindowDialog)); itemList = new ListBox(); okButton = new Button(); cancelButton = new Button(); okCancelTableLayoutPanel = new TableLayoutPanel(); okCancelTableLayoutPanel.SuspendLayout(); itemList.DoubleClick += new EventHandler(ItemList_doubleClick); itemList.SelectedIndexChanged += new EventHandler(ItemList_selectedIndexChanged); SuspendLayout(); // // itemList // resources.ApplyResources(itemList, "itemList"); itemList.FormattingEnabled = true; itemList.Name = "itemList"; // // okButton // resources.ApplyResources(okButton, "okButton"); okButton.DialogResult = System.Windows.Forms.DialogResult.OK; okButton.Margin = new Padding(0, 0, 3, 0); okButton.Name = "okButton"; // // cancelButton // resources.ApplyResources(cancelButton, "cancelButton"); cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; cancelButton.Margin = new Padding(3, 0, 0, 0); cancelButton.Name = "cancelButton"; // // okCancelTableLayoutPanel // resources.ApplyResources(okCancelTableLayoutPanel, "okCancelTableLayoutPanel"); okCancelTableLayoutPanel.ColumnCount = 2; okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); okCancelTableLayoutPanel.Controls.Add(okButton, 0, 0); okCancelTableLayoutPanel.Controls.Add(cancelButton, 1, 0); okCancelTableLayoutPanel.Name = "okCancelTableLayoutPanel"; okCancelTableLayoutPanel.RowCount = 1; okCancelTableLayoutPanel.RowStyles.Add(new RowStyle()); // // MdiWindowDialog // resources.ApplyResources(this, "$this"); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; Controls.Add(okCancelTableLayoutPanel); Controls.Add(itemList); MaximizeBox = false; MinimizeBox = false; Name = "MdiWindowDialog"; ShowIcon = false; okCancelTableLayoutPanel.ResumeLayout(false); okCancelTableLayoutPanel.PerformLayout(); AcceptButton = okButton; CancelButton = cancelButton; ResumeLayout(false); PerformLayout(); }
/// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MGADialog)); System.Windows.Forms.TableLayoutPanel panelGlossComponents; System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; System.Windows.Forms.Panel panel1; System.Windows.Forms.Panel panelInsertRemove; System.Windows.Forms.TableLayoutPanel panelSelectedGloss; System.Windows.Forms.TableLayoutPanel tableLayoutPanelSelectedGloss; System.Windows.Forms.Panel panel; System.Windows.Forms.Panel panel2; System.Windows.Forms.Panel panelTop; System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; this.splitContainerVertical = new System.Windows.Forms.SplitContainer(); this.groupBoxGlossComponents = new System.Windows.Forms.GroupBox(); this.comboGlossListItem = new SIL.FieldWorks.Common.Controls.FwOverrideComboBox(); this.labelGlossListItem = new System.Windows.Forms.Label(); this.checkBoxShowUsed = new System.Windows.Forms.CheckBox(); this.buttonInfo = new System.Windows.Forms.Button(); this.buttonInsert = new System.Windows.Forms.Button(); this.buttonRemove = new System.Windows.Forms.Button(); this.groupBoxSelectedGloss = new System.Windows.Forms.GroupBox(); this.buttonMoveUp = new System.Windows.Forms.Button(); this.buttonMoveDown = new System.Windows.Forms.Button(); this.buttonModify = new System.Windows.Forms.Button(); this.buttonHelp = new System.Windows.Forms.Button(); this.buttonAcceptGloss = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.labelConstructedGlossForPrompt = new System.Windows.Forms.Label(); this.labelAllomorph = new System.Windows.Forms.Label(); this.textBoxResult = new System.Windows.Forms.TextBox(); this.webBrowserInfo = new System.Windows.Forms.WebBrowser(); this.splitContainerHorizontal = new System.Windows.Forms.SplitContainer(); this.treeViewGlossListItem = new SIL.FieldWorks.LexText.Controls.MGA.GlossListTreeView(); this.glossListBoxGloss = new SIL.FieldWorks.LexText.Controls.MGA.GlossListBox(); panelGlossComponents = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); panel1 = new System.Windows.Forms.Panel(); panelInsertRemove = new System.Windows.Forms.Panel(); panelSelectedGloss = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanelSelectedGloss = new System.Windows.Forms.TableLayoutPanel(); panel = new System.Windows.Forms.Panel(); panel2 = new System.Windows.Forms.Panel(); panelTop = new System.Windows.Forms.Panel(); tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.splitContainerVertical.Panel1.SuspendLayout(); this.splitContainerVertical.Panel2.SuspendLayout(); this.splitContainerVertical.SuspendLayout(); panelGlossComponents.SuspendLayout(); this.groupBoxGlossComponents.SuspendLayout(); tableLayoutPanel1.SuspendLayout(); panel1.SuspendLayout(); panelInsertRemove.SuspendLayout(); panelSelectedGloss.SuspendLayout(); this.groupBoxSelectedGloss.SuspendLayout(); tableLayoutPanelSelectedGloss.SuspendLayout(); panel.SuspendLayout(); panel2.SuspendLayout(); panelTop.SuspendLayout(); tableLayoutPanel2.SuspendLayout(); this.splitContainerHorizontal.Panel1.SuspendLayout(); this.splitContainerHorizontal.Panel2.SuspendLayout(); this.splitContainerHorizontal.SuspendLayout(); this.SuspendLayout(); // // splitContainerVertical // resources.ApplyResources(this.splitContainerVertical, "splitContainerVertical"); this.splitContainerVertical.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; this.splitContainerVertical.Name = "splitContainerVertical"; // // splitContainerVertical.Panel1 // this.splitContainerVertical.Panel1.Controls.Add(panelGlossComponents); this.splitContainerVertical.Panel1.Controls.Add(panelInsertRemove); // // splitContainerVertical.Panel2 // this.splitContainerVertical.Panel2.Controls.Add(panelSelectedGloss); resources.ApplyResources(this.splitContainerVertical.Panel2, "splitContainerVertical.Panel2"); // // panelGlossComponents // resources.ApplyResources(panelGlossComponents, "panelGlossComponents"); panelGlossComponents.Controls.Add(this.groupBoxGlossComponents, 0, 0); panelGlossComponents.Controls.Add(this.buttonInfo, 0, 1); panelGlossComponents.Name = "panelGlossComponents"; // // groupBoxGlossComponents // this.groupBoxGlossComponents.Controls.Add(tableLayoutPanel1); resources.ApplyResources(this.groupBoxGlossComponents, "groupBoxGlossComponents"); this.groupBoxGlossComponents.Name = "groupBoxGlossComponents"; this.groupBoxGlossComponents.TabStop = false; // // tableLayoutPanel1 // resources.ApplyResources(tableLayoutPanel1, "tableLayoutPanel1"); tableLayoutPanel1.Controls.Add(panel1, 0, 0); tableLayoutPanel1.Controls.Add(this.checkBoxShowUsed, 0, 2); tableLayoutPanel1.Controls.Add(this.treeViewGlossListItem, 0, 1); tableLayoutPanel1.Name = "tableLayoutPanel1"; // // panel1 // panel1.Controls.Add(this.comboGlossListItem); panel1.Controls.Add(this.labelGlossListItem); resources.ApplyResources(panel1, "panel1"); panel1.Name = "panel1"; // // comboGlossListItem // resources.ApplyResources(this.comboGlossListItem, "comboGlossListItem"); this.comboGlossListItem.Name = "comboGlossListItem"; // // labelGlossListItem // resources.ApplyResources(this.labelGlossListItem, "labelGlossListItem"); this.labelGlossListItem.Name = "labelGlossListItem"; // // checkBoxShowUsed // resources.ApplyResources(this.checkBoxShowUsed, "checkBoxShowUsed"); this.checkBoxShowUsed.Name = "checkBoxShowUsed"; // // buttonInfo // resources.ApplyResources(this.buttonInfo, "buttonInfo"); this.buttonInfo.Name = "buttonInfo"; this.buttonInfo.Click += new System.EventHandler(this.OnInfoButtonClick); // // panelInsertRemove // panelInsertRemove.Controls.Add(this.buttonInsert); panelInsertRemove.Controls.Add(this.buttonRemove); resources.ApplyResources(panelInsertRemove, "panelInsertRemove"); panelInsertRemove.Name = "panelInsertRemove"; panelInsertRemove.TabStop = true; // // buttonInsert // resources.ApplyResources(this.buttonInsert, "buttonInsert"); this.buttonInsert.Name = "buttonInsert"; this.buttonInsert.Click += new System.EventHandler(this.OnInsertButtonClick); // // buttonRemove // resources.ApplyResources(this.buttonRemove, "buttonRemove"); this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.Click += new System.EventHandler(this.OnRemoveButtonClick); // // panelSelectedGloss // resources.ApplyResources(panelSelectedGloss, "panelSelectedGloss"); panelSelectedGloss.Controls.Add(this.groupBoxSelectedGloss, 0, 0); panelSelectedGloss.Controls.Add(panel2, 0, 1); panelSelectedGloss.Name = "panelSelectedGloss"; // // groupBoxSelectedGloss // this.groupBoxSelectedGloss.Controls.Add(tableLayoutPanelSelectedGloss); resources.ApplyResources(this.groupBoxSelectedGloss, "groupBoxSelectedGloss"); this.groupBoxSelectedGloss.Name = "groupBoxSelectedGloss"; this.groupBoxSelectedGloss.TabStop = false; // // tableLayoutPanelSelectedGloss // resources.ApplyResources(tableLayoutPanelSelectedGloss, "tableLayoutPanelSelectedGloss"); tableLayoutPanelSelectedGloss.Controls.Add(this.glossListBoxGloss, 0, 0); tableLayoutPanelSelectedGloss.Controls.Add(panel, 1, 0); tableLayoutPanelSelectedGloss.Name = "tableLayoutPanelSelectedGloss"; // // panel // panel.Controls.Add(this.buttonMoveUp); panel.Controls.Add(this.buttonMoveDown); panel.Controls.Add(this.buttonModify); resources.ApplyResources(panel, "panel"); panel.Name = "panel"; // // buttonMoveUp // resources.ApplyResources(this.buttonMoveUp, "buttonMoveUp"); this.buttonMoveUp.Name = "buttonMoveUp"; this.buttonMoveUp.Click += new System.EventHandler(this.OnMoveUpButtonClick); // // buttonMoveDown // resources.ApplyResources(this.buttonMoveDown, "buttonMoveDown"); this.buttonMoveDown.Name = "buttonMoveDown"; this.buttonMoveDown.Click += new System.EventHandler(this.OnMoveDownButtonClick); // // buttonModify // resources.ApplyResources(this.buttonModify, "buttonModify"); this.buttonModify.Name = "buttonModify"; this.buttonModify.Click += new System.EventHandler(this.OnModifyButtonClick); // // panel2 // panel2.Controls.Add(this.buttonHelp); panel2.Controls.Add(this.buttonAcceptGloss); panel2.Controls.Add(this.buttonCancel); resources.ApplyResources(panel2, "panel2"); panel2.Name = "panel2"; // // buttonHelp // resources.ApplyResources(this.buttonHelp, "buttonHelp"); this.buttonHelp.Name = "buttonHelp"; this.buttonHelp.Click += new System.EventHandler(this.OnHelpButtonClick); // // buttonAcceptGloss // this.buttonAcceptGloss.DialogResult = System.Windows.Forms.DialogResult.OK; resources.ApplyResources(this.buttonAcceptGloss, "buttonAcceptGloss"); this.buttonAcceptGloss.Name = "buttonAcceptGloss"; this.buttonAcceptGloss.Click += new System.EventHandler(this.OnAcceptGlossButtonClick); // // buttonCancel // this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; resources.ApplyResources(this.buttonCancel, "buttonCancel"); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Click += new System.EventHandler(this.OnCancelButtonClick); // // panelTop // panelTop.Controls.Add(tableLayoutPanel2); panelTop.Controls.Add(this.textBoxResult); resources.ApplyResources(panelTop, "panelTop"); panelTop.Name = "panelTop"; panelTop.TabStop = true; // // tableLayoutPanel2 // resources.ApplyResources(tableLayoutPanel2, "tableLayoutPanel2"); tableLayoutPanel2.Controls.Add(this.labelConstructedGlossForPrompt, 0, 0); tableLayoutPanel2.Controls.Add(this.labelAllomorph, 0, 1); tableLayoutPanel2.Name = "tableLayoutPanel2"; // // labelConstructedGlossForPrompt // resources.ApplyResources(this.labelConstructedGlossForPrompt, "labelConstructedGlossForPrompt"); this.labelConstructedGlossForPrompt.Name = "labelConstructedGlossForPrompt"; // // labelAllomorph // resources.ApplyResources(this.labelAllomorph, "labelAllomorph"); this.labelAllomorph.Name = "labelAllomorph"; // // textBoxResult // resources.ApplyResources(this.textBoxResult, "textBoxResult"); this.textBoxResult.Name = "textBoxResult"; // // webBrowserInfo // resources.ApplyResources(this.webBrowserInfo, "webBrowserInfo"); this.webBrowserInfo.IsWebBrowserContextMenuEnabled = false; this.webBrowserInfo.MinimumSize = new System.Drawing.Size(20, 20); this.webBrowserInfo.Name = "webBrowserInfo"; this.webBrowserInfo.WebBrowserShortcutsEnabled = false; // // splitContainerHorizontal // resources.ApplyResources(this.splitContainerHorizontal, "splitContainerHorizontal"); this.splitContainerHorizontal.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; this.splitContainerHorizontal.Name = "splitContainerHorizontal"; // // splitContainerHorizontal.Panel1 // this.splitContainerHorizontal.Panel1.Controls.Add(this.splitContainerVertical); // // splitContainerHorizontal.Panel2 // this.splitContainerHorizontal.Panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.splitContainerHorizontal.Panel2.Controls.Add(this.webBrowserInfo); // // treeViewGlossListItem // resources.ApplyResources(this.treeViewGlossListItem, "treeViewGlossListItem"); this.treeViewGlossListItem.HideSelection = false; this.treeViewGlossListItem.ItemHeight = 16; this.treeViewGlossListItem.Name = "treeViewGlossListItem"; this.treeViewGlossListItem.TerminalsUseCheckBoxes = false; this.treeViewGlossListItem.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.OnGlossListTreeSelect); // // glossListBoxGloss // resources.ApplyResources(this.glossListBoxGloss, "glossListBoxGloss"); this.glossListBoxGloss.FormattingEnabled = true; this.glossListBoxGloss.MGADialog = null; this.glossListBoxGloss.Name = "glossListBoxGloss"; this.glossListBoxGloss.SelectedIndexChanged += new System.EventHandler(this.OnGlossListBoxSelectedIndexChanged); // // MGADialog // this.AcceptButton = this.buttonAcceptGloss; resources.ApplyResources(this, "$this"); this.CancelButton = this.buttonCancel; this.Controls.Add(this.splitContainerHorizontal); this.Controls.Add(panelTop); this.HelpButton = true; this.Name = "MGADialog"; this.splitContainerVertical.Panel1.ResumeLayout(false); this.splitContainerVertical.Panel2.ResumeLayout(false); this.splitContainerVertical.ResumeLayout(false); panelGlossComponents.ResumeLayout(false); this.groupBoxGlossComponents.ResumeLayout(false); tableLayoutPanel1.ResumeLayout(false); panel1.ResumeLayout(false); panelInsertRemove.ResumeLayout(false); panelSelectedGloss.ResumeLayout(false); this.groupBoxSelectedGloss.ResumeLayout(false); tableLayoutPanelSelectedGloss.ResumeLayout(false); panel.ResumeLayout(false); panel2.ResumeLayout(false); panelTop.ResumeLayout(false); panelTop.PerformLayout(); tableLayoutPanel2.ResumeLayout(false); this.splitContainerHorizontal.Panel1.ResumeLayout(false); this.splitContainerHorizontal.Panel2.ResumeLayout(false); this.splitContainerHorizontal.ResumeLayout(false); this.ResumeLayout(false); }
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"; manager.ApplyResources(this.lblFilter, "lblFilter"); this.lblFilter.Name = "lblFilter"; manager.ApplyResources(this.chkDeleteSource, "chkDeleteSource"); this.chkDeleteSource.Name = "chkDeleteSource"; this.chkDeleteSource.UseVisualStyleBackColor = true; this.chkDeleteSource.Click += new EventHandler(this.chkDeleteSource_Click); manager.ApplyResources(this.cmbFilter, "cmbFilter"); this.cmbFilter.DrawMode = DrawMode.OwnerDrawFixed; this.cmbFilter.FormattingEnabled = true; this.cmbFilter.Name = "cmbFilter"; manager.ApplyResources(this.bvlButtons, "bvlButtons"); this.bvlButtons.ForeColor = SystemColors.ControlDarkDark; this.bvlButtons.Name = "bvlButtons"; this.bvlButtons.Sides = Border3DSide.Top; this.bvlButtons.Style = Border3DStyle.Flat; this.Validator.Owner = this; this.Validator.OwnerFormValidate = FormValidate.DisableAcceptButton; this.AutoComplete.UseCustomSource = Settings.Default.UseACSRecentItems; this.AutoComplete.UseEnvironmentVariablesSource = Settings.Default.UseACSEnvironmentVariables; this.AutoComplete.UseFileSystemSource = Settings.Default.UseACSFileSystem; base.AcceptButton = this.btnOk; manager.ApplyResources(this, "$this"); base.AutoScaleMode = AutoScaleMode.Font; this.AutoValidate = AutoValidate.EnableAllowFocusChange; base.CancelButton = this.btnCancel; base.Controls.Add(panel); base.Controls.Add(this.bvlButtons); base.Controls.Add(this.tlpBack); base.FixMouseWheel = Settings.Default.FixMouseWheel; base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "FileSystemCopyDialog"; base.ShowInTaskbar = false; base.Shown += new EventHandler(this.FileSystemCopyDialog_Shown); panel.ResumeLayout(false); panel.PerformLayout(); this.tlpBack.ResumeLayout(false); this.tlpBack.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(CheckForUpdatesDialog)); this.btnOk = new Button(); this.tlpBack = new TableLayoutPanel(); this.pictureBox = new PictureBox(); this.lblCheckResult = new LinkLabel(); this.bvlButtons = new Bevel(); TableLayoutPanel panel = new TableLayoutPanel(); panel.SuspendLayout(); this.tlpBack.SuspendLayout(); ((ISupportInitialize) this.pictureBox).BeginInit(); base.SuspendLayout(); manager.ApplyResources(panel, "tlpButtons"); panel.BackColor = Color.Gainsboro; panel.Controls.Add(this.btnOk, 1, 0); panel.Name = "tlpButtons"; manager.ApplyResources(this.btnOk, "btnOk"); this.btnOk.DialogResult = DialogResult.Cancel; this.btnOk.Name = "btnOk"; this.btnOk.UseVisualStyleBackColor = true; this.btnOk.Click += new EventHandler(this.btnOk_Click); manager.ApplyResources(this.tlpBack, "tlpBack"); this.tlpBack.Controls.Add(this.pictureBox, 0, 0); this.tlpBack.Controls.Add(this.lblCheckResult, 1, 0); this.tlpBack.Name = "tlpBack"; manager.ApplyResources(this.pictureBox, "pictureBox"); this.pictureBox.Name = "pictureBox"; this.pictureBox.TabStop = false; manager.ApplyResources(this.lblCheckResult, "lblCheckResult"); this.lblCheckResult.Name = "lblCheckResult"; this.lblCheckResult.Tag = "http://www.nomad-net.info"; this.lblCheckResult.UseMnemonic = false; this.lblCheckResult.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lblCheckResult_LinkClicked); 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; base.CancelButton = this.btnOk; base.Controls.Add(panel); base.Controls.Add(this.bvlButtons); base.Controls.Add(this.tlpBack); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "CheckForUpdatesDialog"; panel.ResumeLayout(false); panel.PerformLayout(); this.tlpBack.ResumeLayout(false); this.tlpBack.PerformLayout(); ((ISupportInitialize) this.pictureBox).EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
/* * InitializeComponent */ private void InitializeComponent() { _okButton = new Button(); _cancelButton = new Button(); _addRootButton = new Button(); _addChildButton = new Button(); _deleteButton = new Button(); _moveDownButton = new Button(); _moveUpButton = new Button(); _propertyDescriptionLabel = new Label(); _treeViewDescriptionLabel = new Label(); _propertyGrid = new NuGenPropertyGrid(); _propertyGrid.Dock = DockStyle.Fill; _okCancelPanel = new TableLayoutPanel(); _nodeControlPanel = new TableLayoutPanel(); _overarchingTableLayoutPanel = new TableLayoutPanel(); _navigationButtonsTableLayoutPanel = new TableLayoutPanel(); _treeView = new NodesEditorTreeView(); _treeView.Dock = DockStyle.Fill; _okCancelPanel.SuspendLayout(); _nodeControlPanel.SuspendLayout(); _overarchingTableLayoutPanel.SuspendLayout(); _navigationButtonsTableLayoutPanel.SuspendLayout(); this.SuspendLayout(); _okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); _okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); _okCancelPanel.Controls.Add(_okButton, 0, 0); _okCancelPanel.Controls.Add(_cancelButton, 1, 0); _okCancelPanel.Dock = DockStyle.Right; _okCancelPanel.Margin = new Padding(3, 0, 0, 0); _okCancelPanel.RowStyles.Add(new RowStyle()); _okButton.DialogResult = DialogResult.OK; _okButton.Dock = DockStyle.Fill; _okButton.Text = Resources.Text_TreeNodeCollectionEditor_okButton; _cancelButton.DialogResult = DialogResult.Cancel; _cancelButton.Dock = DockStyle.Fill; _cancelButton.Text = Resources.Text_TreeNodeCollectionEditor_cancelButton; _nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); _nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); _nodeControlPanel.Dock = DockStyle.Fill; _nodeControlPanel.Controls.Add(_addRootButton, 0, 0); _nodeControlPanel.Controls.Add(_addChildButton, 1, 0); _nodeControlPanel.Margin = new Padding(0, 3, 3, 3); _nodeControlPanel.RowStyles.Add(new RowStyle()); _addRootButton.Dock = DockStyle.Fill; _addRootButton.Margin = new Padding(0, 0, 3, 0); _addRootButton.Text = Resources.Text_TreeNodeCollectionEditor_addRootButton; _addChildButton.Dock = DockStyle.Fill; _addChildButton.Margin = new Padding(3, 0, 0, 0); _addChildButton.Text = Resources.Text_TreeNodeCollectionEditor_addChildButton; _deleteButton.Dock = DockStyle.Fill; _deleteButton.Margin = new Padding(0, 3, 0, 0); _deleteButton.Image = Resources.Delete; _deleteButton.Size = new Size(30, 30); _moveDownButton.Dock = DockStyle.Fill; _moveDownButton.Margin = new Padding(0, 1, 0, 3); _moveDownButton.Image = Resources.Down; _moveDownButton.Size = new Size(30, 30); _moveUpButton.Dock = DockStyle.Fill; _moveUpButton.Margin = new Padding(0, 0, 0, 1); _moveUpButton.Image = Resources.Up; _moveUpButton.Size = new Size(30, 30); _propertyGrid.LineColor = SystemColors.ScrollBar; _overarchingTableLayoutPanel.SetRowSpan(_propertyGrid, 2); _propertyDescriptionLabel.Dock = DockStyle.Fill; _propertyDescriptionLabel.Margin = new Padding(3, 1, 0, 0); _treeView.AllowDrop = true; _treeView.HideSelection = false; _treeView.Margin = new Padding(0, 3, 3, 3); _treeViewDescriptionLabel.Dock = DockStyle.Fill; _treeViewDescriptionLabel.Margin = new Padding(0, 1, 3, 0); _treeViewDescriptionLabel.Text = Resources.Text_TreeNodeCollectionEditor_treeViewDescriptionLabel; _overarchingTableLayoutPanel.Dock = DockStyle.Fill; _overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 250f)); _overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 40f)); _overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f)); _overarchingTableLayoutPanel.Controls.Add(_navigationButtonsTableLayoutPanel, 1, 1); _overarchingTableLayoutPanel.Controls.Add(_propertyDescriptionLabel, 2, 0); _overarchingTableLayoutPanel.Controls.Add(_propertyGrid, 2, 1); _overarchingTableLayoutPanel.Controls.Add(_treeView, 0, 1); _overarchingTableLayoutPanel.Controls.Add(_treeViewDescriptionLabel, 0, 0); _overarchingTableLayoutPanel.Controls.Add(_nodeControlPanel, 0, 2); _overarchingTableLayoutPanel.Controls.Add(_okCancelPanel, 2, 3); _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle()); _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100f)); _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f)); _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f)); _navigationButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize)); _navigationButtonsTableLayoutPanel.Controls.Add(_moveUpButton, 0, 0); _navigationButtonsTableLayoutPanel.Controls.Add(_deleteButton, 0, 2); _navigationButtonsTableLayoutPanel.Controls.Add(_moveDownButton, 0, 1); _navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle()); _navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle()); _navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle()); this.AcceptButton = _okButton; this.AutoScaleMode = AutoScaleMode.Font; this.CancelButton = _cancelButton; this.Controls.Add(_overarchingTableLayoutPanel); this.Padding = new Padding(10); this.MaximizeBox = false; this.MinimizeBox = false; this.ShowIcon = false; this.ShowInTaskbar = false; this.Size = new Size(580, 480); this.MinimumSize = this.Size; this.Text = Resources.Text_TreeNodeCollectionEditor_EditorForm; _okCancelPanel.ResumeLayout(false); _okCancelPanel.PerformLayout(); _nodeControlPanel.ResumeLayout(false); _nodeControlPanel.PerformLayout(); _overarchingTableLayoutPanel.ResumeLayout(false); _overarchingTableLayoutPanel.PerformLayout(); _navigationButtonsTableLayoutPanel.ResumeLayout(false); base.ResumeLayout(false); }
private void FillOptions(object item, Dictionary<string, Control> options, Dictionary<string, object> values, TableLayoutPanel panel) { tlpOptions.SuspendLayout(); try { panel.SuspendLayout(); try { panel.Controls.Clear(); int count = 0; foreach (var member in item.GetType().GetMembers(BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public)) { if (member.GetCustomAttributes(typeof(BuildOptionAttribute), true).Length > 0) { count++; Type type; object currentValue; FieldInfo field = member as FieldInfo; if (field != null) { type = field.FieldType; currentValue = field.GetValue(item); } else { PropertyInfo property = member as PropertyInfo; if (property != null) { type = property.PropertyType; currentValue = property.GetValue(item, null); } else { throw new ArgumentException(); } } object previousValue; if (values.TryGetValue(member.Name, out previousValue)) { currentValue = previousValue; } Label label = null; Control control = null; if (type == typeof(bool)) { CheckBox checkBox = new CheckBox(); checkBox.Text = member.Name; checkBox.Checked = (bool)currentValue; control = checkBox; } else { label = new Label(); label.Text = member.Name; label.AutoSize = true; if (type == typeof(int) || type == typeof(byte) || type == typeof(short) || type == typeof(long)) { NumericUpDown upDown = new NumericUpDown(); upDown.DecimalPlaces = 0; upDown.Minimum = decimal.MinValue; upDown.Maximum = decimal.MaxValue; upDown.Value = (int)currentValue; control = upDown; } else { object[] attributes = member.GetCustomAttributes(typeof(BuildOptionSuggestedValuesAttribute), true); if (attributes.Length > 0) { ComboBox comboBox = new ComboBox(); comboBox.Items.AddRange(((BuildOptionSuggestedValuesAttribute)attributes[0]).Values); comboBox.SelectedItem = currentValue; control = comboBox; } else { TextBox textBox = new TextBox(); textBox.Text = currentValue == null ? string.Empty : currentValue.ToString(); control = textBox; } } } panel.RowCount = count; while (panel.RowStyles.Count < count) { panel.RowStyles.Add(new RowStyle(SizeType.AutoSize)); } if (label != null) { panel.Controls.Add(label, 0, panel.RowCount - 1); } control.Dock = DockStyle.Top; panel.Controls.Add(control, 1, panel.RowCount - 1); options[member.Name] = control; } } } finally { panel.ResumeLayout(true); } } finally { tlpOptions.ResumeLayout(true); } }
/// <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 // this.selectedShowBanner.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowBanner.Location = new System.Drawing.Point(3, 33); this.selectedShowBanner.Name = "selectedShowBanner"; this.selectedShowBanner.Size = new System.Drawing.Size(565, 144); this.selectedShowBanner.TabIndex = 1; this.selectedShowBanner.TabStop = false; // // selectedShowLastUpdated // this.selectedShowLastUpdated.AutoSize = true; this.selectedShowLastUpdated.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowLastUpdated.Location = new System.Drawing.Point(3, 205); this.selectedShowLastUpdated.Name = "selectedShowLastUpdated"; this.selectedShowLastUpdated.Size = new System.Drawing.Size(565, 25); this.selectedShowLastUpdated.TabIndex = 2; this.selectedShowLastUpdated.Text = "Last Updated:"; this.toolTip.SetToolTip(this.selectedShowLastUpdated, "The time that the show was last updated in TheTVDB.com\'s server time (UTC)."); // // selectedShowTvdb // this.selectedShowTvdb.AutoSize = true; this.selectedShowTvdb.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowTvdb.Location = new System.Drawing.Point(3, 180); this.selectedShowTvdb.Name = "selectedShowTvdb"; this.selectedShowTvdb.Size = new System.Drawing.Size(565, 25); this.selectedShowTvdb.TabIndex = 3; this.selectedShowTvdb.Text = "TVDB ID: "; this.toolTip.SetToolTip(this.selectedShowTvdb, "The show\'s ID on TheTVDB.com"); // // customSettingsGroup // customSettingsGroup.Controls.Add(this.customFormatTable); customSettingsGroup.Dock = System.Windows.Forms.DockStyle.Fill; customSettingsGroup.Location = new System.Drawing.Point(3, 233); customSettingsGroup.Name = "customSettingsGroup"; customSettingsGroup.Size = new System.Drawing.Size(565, 136); customSettingsGroup.TabIndex = 4; customSettingsGroup.TabStop = false; customSettingsGroup.Text = "Custom Settings"; // // customFormatTable // this.customFormatTable.ColumnCount = 3; this.customFormatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 79F)); this.customFormatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.customFormatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 102F)); this.customFormatTable.Controls.Add(this.selectedShowUseCustomFormat, 0, 0); this.customFormatTable.Controls.Add(this.selectedShowCustomFormatText, 1, 1); this.customFormatTable.Controls.Add(this.formatLabel, 0, 1); this.customFormatTable.Controls.Add(this.formatBuilder, 2, 1); this.customFormatTable.Controls.Add(this.useCustomDestinationDirectory, 0, 2); this.customFormatTable.Controls.Add(destinationLabel, 0, 3); this.customFormatTable.Controls.Add(this.customDestination, 1, 3); this.customFormatTable.Dock = System.Windows.Forms.DockStyle.Fill; this.customFormatTable.Location = new System.Drawing.Point(3, 16); this.customFormatTable.Margin = new System.Windows.Forms.Padding(0); this.customFormatTable.Name = "customFormatTable"; this.customFormatTable.RowCount = 4; this.customFormatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); this.customFormatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); this.customFormatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); this.customFormatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); this.customFormatTable.Size = new System.Drawing.Size(559, 117); this.customFormatTable.TabIndex = 3; // // selectedShowUseCustomFormat // this.selectedShowUseCustomFormat.Anchor = System.Windows.Forms.AnchorStyles.Left; this.selectedShowUseCustomFormat.AutoSize = true; this.customFormatTable.SetColumnSpan(this.selectedShowUseCustomFormat, 3); this.selectedShowUseCustomFormat.Location = new System.Drawing.Point(3, 6); this.selectedShowUseCustomFormat.Name = "selectedShowUseCustomFormat"; this.selectedShowUseCustomFormat.Size = new System.Drawing.Size(118, 17); this.selectedShowUseCustomFormat.TabIndex = 0; this.selectedShowUseCustomFormat.Text = "Use Custom Format"; this.toolTip.SetToolTip(this.selectedShowUseCustomFormat, "Indicates whether to use a custom format with this show."); this.selectedShowUseCustomFormat.UseVisualStyleBackColor = true; this.selectedShowUseCustomFormat.CheckedChanged += new System.EventHandler(this.SelectedUseCustomFormatCheckedChanged); // // selectedShowCustomFormatText // this.selectedShowCustomFormatText.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowCustomFormatText.Enabled = false; this.selectedShowCustomFormatText.Location = new System.Drawing.Point(82, 33); this.selectedShowCustomFormatText.Name = "selectedShowCustomFormatText"; this.selectedShowCustomFormatText.Size = new System.Drawing.Size(372, 20); this.selectedShowCustomFormatText.TabIndex = 2; this.toolTip.SetToolTip(this.selectedShowCustomFormatText, "The custom format to use for this show."); // // formatLabel // this.formatLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; this.formatLabel.AutoSize = true; this.formatLabel.Location = new System.Drawing.Point(34, 37); this.formatLabel.Name = "formatLabel"; this.formatLabel.Size = new System.Drawing.Size(42, 13); this.formatLabel.TabIndex = 1; this.formatLabel.Text = "Format:"; // // formatBuilder // this.formatBuilder.Enabled = false; this.formatBuilder.Location = new System.Drawing.Point(460, 33); this.formatBuilder.Name = "formatBuilder"; this.formatBuilder.Size = new System.Drawing.Size(95, 22); this.formatBuilder.TabIndex = 3; this.formatBuilder.Text = "Format Builder"; this.formatBuilder.UseVisualStyleBackColor = true; this.formatBuilder.Click += new System.EventHandler(this.FormatBuilderClick); // // useCustomDestinationDirectory // this.useCustomDestinationDirectory.Anchor = System.Windows.Forms.AnchorStyles.Left; this.useCustomDestinationDirectory.AutoSize = true; this.customFormatTable.SetColumnSpan(this.useCustomDestinationDirectory, 2); this.useCustomDestinationDirectory.Location = new System.Drawing.Point(3, 64); this.useCustomDestinationDirectory.Name = "useCustomDestinationDirectory"; this.useCustomDestinationDirectory.Size = new System.Drawing.Size(184, 17); this.useCustomDestinationDirectory.TabIndex = 4; this.useCustomDestinationDirectory.Text = "Use Custom Destination Directory"; this.useCustomDestinationDirectory.UseVisualStyleBackColor = true; this.useCustomDestinationDirectory.CheckedChanged += new System.EventHandler(this.UseCustomDestinationDirectoryCheckedChanged); // // destinationLabel // destinationLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; destinationLabel.AutoSize = true; destinationLabel.Location = new System.Drawing.Point(13, 96); destinationLabel.Name = "destinationLabel"; destinationLabel.Size = new System.Drawing.Size(63, 13); destinationLabel.TabIndex = 5; destinationLabel.Text = "Destination:"; // // customDestination // this.customDestination.Dock = System.Windows.Forms.DockStyle.Fill; this.customDestination.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.customDestination.Enabled = false; this.customDestination.FormattingEnabled = true; this.customDestination.Location = new System.Drawing.Point(82, 91); this.customDestination.Name = "customDestination"; this.customDestination.Size = new System.Drawing.Size(372, 21); this.customDestination.TabIndex = 6; // // selectedShowButtons // selectedShowButtons.Controls.Add(this.saveButton); selectedShowButtons.Controls.Add(this.revertButton); selectedShowButtons.Controls.Add(this.updateShowButton); selectedShowButtons.Controls.Add(this.removeShowButton); selectedShowButtons.Controls.Add(this.resetLastUpdatedButton); selectedShowButtons.Dock = System.Windows.Forms.DockStyle.Fill; selectedShowButtons.Location = new System.Drawing.Point(0, 542); selectedShowButtons.Margin = new System.Windows.Forms.Padding(0); selectedShowButtons.Name = "selectedShowButtons"; selectedShowButtons.Size = new System.Drawing.Size(571, 121); selectedShowButtons.TabIndex = 5; // // saveButton // this.saveButton.Location = new System.Drawing.Point(3, 3); this.saveButton.Name = "saveButton"; this.saveButton.Size = new System.Drawing.Size(75, 23); this.saveButton.TabIndex = 0; this.saveButton.Text = "Save"; this.toolTip.SetToolTip(this.saveButton, "Saves any changes to the show\'s configuration."); this.saveButton.UseVisualStyleBackColor = true; this.saveButton.Click += new System.EventHandler(this.SaveButtonClick); // // revertButton // this.revertButton.Location = new System.Drawing.Point(84, 3); this.revertButton.Name = "revertButton"; this.revertButton.Size = new System.Drawing.Size(75, 23); this.revertButton.TabIndex = 1; this.revertButton.Text = "Revert"; this.toolTip.SetToolTip(this.revertButton, "Revert\'s any unsaved changes to the show\'s configuration."); this.revertButton.UseVisualStyleBackColor = true; this.revertButton.Click += new System.EventHandler(this.RevertButtonClick); // // updateShowButton // this.updateShowButton.Location = new System.Drawing.Point(165, 3); this.updateShowButton.Name = "updateShowButton"; this.updateShowButton.Size = new System.Drawing.Size(93, 23); this.updateShowButton.TabIndex = 2; this.updateShowButton.Text = "Update Show"; this.toolTip.SetToolTip(this.updateShowButton, "Updates the show\'s episode data."); this.updateShowButton.UseVisualStyleBackColor = true; this.updateShowButton.Click += new System.EventHandler(this.UpdateShowButtonClick); // // removeShowButton // this.removeShowButton.Location = new System.Drawing.Point(264, 3); this.removeShowButton.Name = "removeShowButton"; this.removeShowButton.Size = new System.Drawing.Size(75, 23); this.removeShowButton.TabIndex = 3; this.removeShowButton.Text = "Remove"; this.toolTip.SetToolTip(this.removeShowButton, "Removes the show from TVSorter."); this.removeShowButton.UseVisualStyleBackColor = true; this.removeShowButton.Click += new System.EventHandler(this.RemoveShowButtonClick); // // resetLastUpdatedButton // this.resetLastUpdatedButton.Location = new System.Drawing.Point(345, 3); this.resetLastUpdatedButton.Name = "resetLastUpdatedButton"; this.resetLastUpdatedButton.Size = new System.Drawing.Size(115, 23); this.resetLastUpdatedButton.TabIndex = 4; this.resetLastUpdatedButton.Text = "Reset Last Updated"; this.toolTip.SetToolTip(this.resetLastUpdatedButton, "Resets the Last Updated timestamp of the show. \r\nThis allows new data to be downl" + "oaded in the next\r\nupdate."); this.resetLastUpdatedButton.UseVisualStyleBackColor = true; this.resetLastUpdatedButton.Click += new System.EventHandler(this.ResetLastUpdatedButtonClick); // // namesGroup // this.namesGroup.Controls.Add(this.nameTable); this.namesGroup.Dock = System.Windows.Forms.DockStyle.Fill; this.namesGroup.Location = new System.Drawing.Point(3, 375); this.namesGroup.Name = "namesGroup"; this.namesGroup.Size = new System.Drawing.Size(565, 79); this.namesGroup.TabIndex = 6; this.namesGroup.TabStop = false; this.namesGroup.Text = "Names"; // // nameTable // this.nameTable.ColumnCount = 3; this.nameTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F)); this.nameTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.nameTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 102F)); this.nameTable.Controls.Add(folderNameLabel, 0, 0); this.nameTable.Controls.Add(this.selectedShowFolderNameText, 1, 0); this.nameTable.Controls.Add(this.alternateNamesButton, 1, 1); this.nameTable.Dock = System.Windows.Forms.DockStyle.Fill; this.nameTable.Location = new System.Drawing.Point(3, 16); this.nameTable.Margin = new System.Windows.Forms.Padding(0); this.nameTable.Name = "nameTable"; this.nameTable.RowCount = 2; this.nameTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); this.nameTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); this.nameTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.nameTable.Size = new System.Drawing.Size(559, 60); this.nameTable.TabIndex = 4; // // folderNameLabel // folderNameLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; folderNameLabel.AutoSize = true; folderNameLabel.Location = new System.Drawing.Point(7, 8); folderNameLabel.Name = "folderNameLabel"; folderNameLabel.Size = new System.Drawing.Size(70, 13); folderNameLabel.TabIndex = 1; folderNameLabel.Text = "Folder Name:"; // // selectedShowFolderNameText // this.selectedShowFolderNameText.Dock = System.Windows.Forms.DockStyle.Fill; this.selectedShowFolderNameText.Location = new System.Drawing.Point(83, 3); this.selectedShowFolderNameText.Name = "selectedShowFolderNameText"; this.selectedShowFolderNameText.Size = new System.Drawing.Size(371, 20); this.selectedShowFolderNameText.TabIndex = 2; this.toolTip.SetToolTip(this.selectedShowFolderNameText, "The folder name that the show is in."); // // alternateNamesButton // this.alternateNamesButton.Location = new System.Drawing.Point(83, 33); this.alternateNamesButton.Name = "alternateNamesButton"; this.alternateNamesButton.Size = new System.Drawing.Size(100, 23); this.alternateNamesButton.TabIndex = 3; this.alternateNamesButton.Text = "Alternate Names"; this.toolTip.SetToolTip(this.alternateNamesButton, "Edit the alternate names used by the show."); this.alternateNamesButton.UseVisualStyleBackColor = true; this.alternateNamesButton.Click += new System.EventHandler(this.AlternateNamesButtonClick); // // episodesGroup // episodesGroup.Controls.Add(this.episodesFlow); episodesGroup.Dock = System.Windows.Forms.DockStyle.Fill; episodesGroup.Location = new System.Drawing.Point(3, 460); episodesGroup.Name = "episodesGroup"; episodesGroup.Size = new System.Drawing.Size(565, 79); episodesGroup.TabIndex = 7; episodesGroup.TabStop = false; episodesGroup.Text = "Episodes"; // // episodesFlow // this.episodesFlow.Controls.Add(this.selectedShowUseDvdOrder); this.episodesFlow.Controls.Add(this.selectedShowLockButton); this.episodesFlow.Dock = System.Windows.Forms.DockStyle.Fill; this.episodesFlow.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; this.episodesFlow.Location = new System.Drawing.Point(3, 16); this.episodesFlow.Name = "episodesFlow"; this.episodesFlow.Size = new System.Drawing.Size(559, 60); this.episodesFlow.TabIndex = 1; // // selectedShowUseDvdOrder // this.selectedShowUseDvdOrder.AutoSize = true; this.selectedShowUseDvdOrder.Location = new System.Drawing.Point(3, 3); this.selectedShowUseDvdOrder.Name = "selectedShowUseDvdOrder"; this.selectedShowUseDvdOrder.Size = new System.Drawing.Size(100, 17); this.selectedShowUseDvdOrder.TabIndex = 0; this.selectedShowUseDvdOrder.Text = "Use DVD Order"; this.toolTip.SetToolTip(this.selectedShowUseDvdOrder, "Indicates whether the show should use the DVD order for episodes."); this.selectedShowUseDvdOrder.UseVisualStyleBackColor = true; // // selectedShowLockButton // this.selectedShowLockButton.Location = new System.Drawing.Point(3, 26); this.selectedShowLockButton.Name = "selectedShowLockButton"; this.selectedShowLockButton.Size = new System.Drawing.Size(90, 23); this.selectedShowLockButton.TabIndex = 1; this.selectedShowLockButton.Text = "Unlock Show"; this.toolTip.SetToolTip(this.selectedShowLockButton, "Locks/Unlocks the show."); this.selectedShowLockButton.UseVisualStyleBackColor = true; this.selectedShowLockButton.Click += new System.EventHandler(this.SelectedShowLockButtonClick); // // updateAllButton // this.updateAllButton.Location = new System.Drawing.Point(3, 3); this.updateAllButton.Name = "updateAllButton"; this.updateAllButton.Size = new System.Drawing.Size(75, 23); this.updateAllButton.TabIndex = 0; this.updateAllButton.Text = "Update All"; this.toolTip.SetToolTip(this.updateAllButton, "Updates the episode data for all the unlocked shows."); this.updateAllButton.UseVisualStyleBackColor = true; this.updateAllButton.Click += new System.EventHandler(this.UpdateAllButtonClick); // // addShowButton // this.addShowButton.Location = new System.Drawing.Point(84, 3); this.addShowButton.Name = "addShowButton"; this.addShowButton.Size = new System.Drawing.Size(75, 23); this.addShowButton.TabIndex = 1; this.addShowButton.Text = "Add Show"; this.toolTip.SetToolTip(this.addShowButton, "Adds a new show."); this.addShowButton.UseVisualStyleBackColor = true; this.addShowButton.Click += new System.EventHandler(this.AddShowButtonClick); // // searchShowsButton // this.searchShowsButton.Location = new System.Drawing.Point(165, 3); this.searchShowsButton.Name = "searchShowsButton"; this.searchShowsButton.Size = new System.Drawing.Size(112, 23); this.searchShowsButton.TabIndex = 2; this.searchShowsButton.Text = "Search for Shows"; this.toolTip.SetToolTip(this.searchShowsButton, "Searches for new shows in the output directories.\r\nThis looks up shows by folder " + "name."); this.searchShowsButton.UseVisualStyleBackColor = true; this.searchShowsButton.Click += new System.EventHandler(this.SearchShowsButtonClick); // // createNfoFilesButton // this.createNfoFilesButton.Location = new System.Drawing.Point(283, 3); this.createNfoFilesButton.Name = "createNfoFilesButton"; this.createNfoFilesButton.Size = new System.Drawing.Size(105, 23); this.createNfoFilesButton.TabIndex = 3; this.createNfoFilesButton.Text = "Create Nfo Files"; this.toolTip.SetToolTip(this.createNfoFilesButton, "Creates a tvshow.nfo file in each show\'s directoy with\r\nthe URL to the show on Th" + "e TVDB. This is read by \r\nXBMC when scanning."); this.createNfoFilesButton.UseVisualStyleBackColor = true; this.createNfoFilesButton.Click += new System.EventHandler(this.CreateNfoFilesButtonClick); // // tvShowsList // this.tvShowsList.Dock = System.Windows.Forms.DockStyle.Left; this.tvShowsList.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; this.tvShowsList.FormattingEnabled = true; this.tvShowsList.ItemHeight = 20; this.tvShowsList.Location = new System.Drawing.Point(0, 35); this.tvShowsList.Name = "tvShowsList"; this.tvShowsList.Size = new System.Drawing.Size(178, 649); this.tvShowsList.TabIndex = 1; this.tvShowsList.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.TvShowsListDrawItem); this.tvShowsList.SelectedIndexChanged += new System.EventHandler(this.TvShowsListSelectedIndexChanged); // // topButtonsFlow // this.topButtonsFlow.Controls.Add(this.updateAllButton); this.topButtonsFlow.Controls.Add(this.addShowButton); this.topButtonsFlow.Controls.Add(this.searchShowsButton); this.topButtonsFlow.Controls.Add(this.createNfoFilesButton); this.topButtonsFlow.Dock = System.Windows.Forms.DockStyle.Top; this.topButtonsFlow.Location = new System.Drawing.Point(0, 0); this.topButtonsFlow.Name = "topButtonsFlow"; this.topButtonsFlow.Size = new System.Drawing.Size(749, 35); this.topButtonsFlow.TabIndex = 0; // // TvShows // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(selectedShowTable); this.Controls.Add(this.tvShowsList); this.Controls.Add(this.topButtonsFlow); this.Name = "TvShows"; this.Size = new System.Drawing.Size(749, 684); this.Load += new System.EventHandler(this.TvShowsLoad); selectedShowTable.ResumeLayout(false); selectedShowTable.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.selectedShowBanner)).EndInit(); customSettingsGroup.ResumeLayout(false); this.customFormatTable.ResumeLayout(false); this.customFormatTable.PerformLayout(); selectedShowButtons.ResumeLayout(false); this.namesGroup.ResumeLayout(false); this.nameTable.ResumeLayout(false); this.nameTable.PerformLayout(); episodesGroup.ResumeLayout(false); this.episodesFlow.ResumeLayout(false); this.episodesFlow.PerformLayout(); this.topButtonsFlow.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// タブページパネルの初期化を行う。 /// </summary> /// <param name="lipId">口形状種別ID。</param> /// <param name="panel">パネル。</param> private void InitializeTabPagePanel( LipId lipId, TableLayoutPanel panel) { try { panel.SuspendLayout(); // 規定個数だけ追加 var ctrlDatas = new List<MorphCtrlData>(MorphCtrlCount); for (int i = 0; i < MorphCtrlCount; ++i) { // コントロール作成 var ctrlData = new MorphCtrlData { NameTextBox = CreateMorphNameTextBox(), WeightUpDown = CreateMorphWeightUpDown(), }; // タブインデックス設定 ctrlData.NameTextBox.TabIndex = i * 2; ctrlData.WeightUpDown.TabIndex = i * 2 + 1; // パネルに追加 int row = MorphCtrlBeginRow + i; panel.Controls.Add( ctrlData.NameTextBox, NameTextBoxColumn, row); panel.Controls.Add( ctrlData.WeightUpDown, WeightUpDownColumn, row); // リストに追加 ctrlDatas.Add(ctrlData); } // テーブルに追加 this.MorphCtrlTable.Add(lipId, ctrlDatas); } finally { panel.ResumeLayout(false); } }
/// <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.label1 = new System.Windows.Forms.Label(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.addIgnore_btn = new System.Windows.Forms.Button(); this.removeIgnore_btn = new System.Windows.Forms.Button(); this.ignoreList = new System.Windows.Forms.ListBox(); 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); 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(); this.flowLayoutPanel1.SuspendLayout(); sortOptionsGroup.SuspendLayout(); sortOptionsFlow.SuspendLayout(); searchOptionsGroup.SuspendLayout(); searchOptionsFlow.SuspendLayout(); formatOptionsGroup.SuspendLayout(); formatTable.SuspendLayout(); flowBottomButtons.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(734, 652); mainTable.TabIndex = 0; // // groupDirectories // this.groupDirectories.AutoSize = true; this.groupDirectories.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.groupDirectories.Controls.Add(tableDirectories); this.groupDirectories.Dock = System.Windows.Forms.DockStyle.Fill; this.groupDirectories.Location = new System.Drawing.Point(3, 3); this.groupDirectories.Name = "groupDirectories"; this.groupDirectories.Size = new System.Drawing.Size(728, 401); this.groupDirectories.TabIndex = 0; this.groupDirectories.TabStop = false; this.groupDirectories.Text = "Directory Settings"; // // tableDirectories // tableDirectories.AutoSize = true; tableDirectories.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; tableDirectories.ColumnCount = 3; tableDirectories.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 126F)); tableDirectories.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); tableDirectories.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 105F)); tableDirectories.Controls.Add(sourceLabel, 0, 0); tableDirectories.Controls.Add(this.sourceText, 1, 0); tableDirectories.Controls.Add(this.sourceBrowse, 2, 0); tableDirectories.Controls.Add(destinationListLabel, 0, 1); tableDirectories.Controls.Add(this.destinationList, 1, 1); tableDirectories.Controls.Add(destinationButtonsFlow, 2, 1); tableDirectories.Controls.Add(this.defaultDestinationDirectory, 1, 3); tableDirectories.Controls.Add(this.label1, 0, 2); tableDirectories.Controls.Add(this.flowLayoutPanel1, 2, 2); tableDirectories.Controls.Add(this.ignoreList, 1, 2); tableDirectories.Controls.Add(defaultDestinationLabel, 0, 3); tableDirectories.Dock = System.Windows.Forms.DockStyle.Fill; tableDirectories.Location = new System.Drawing.Point(3, 16); tableDirectories.Name = "tableDirectories"; tableDirectories.RowCount = 4; tableDirectories.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableDirectories.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableDirectories.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); tableDirectories.RowStyles.Add(new System.Windows.Forms.RowStyle()); tableDirectories.Size = new System.Drawing.Size(722, 382); tableDirectories.TabIndex = 0; // // sourceLabel // sourceLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; sourceLabel.AutoSize = true; sourceLabel.Location = new System.Drawing.Point(34, 6); sourceLabel.Name = "sourceLabel"; sourceLabel.Size = new System.Drawing.Size(89, 13); sourceLabel.TabIndex = 0; sourceLabel.Text = "Source Directory:"; // // sourceText // this.sourceText.Dock = System.Windows.Forms.DockStyle.Fill; this.sourceText.Location = new System.Drawing.Point(129, 3); this.sourceText.Name = "sourceText"; this.sourceText.ReadOnly = true; this.sourceText.Size = new System.Drawing.Size(485, 20); this.sourceText.TabIndex = 1; this.toolTip.SetToolTip(this.sourceText, "The source directory to search for TV Show files."); // // sourceBrowse // this.sourceBrowse.Dock = System.Windows.Forms.DockStyle.Fill; this.sourceBrowse.Location = new System.Drawing.Point(620, 3); this.sourceBrowse.Name = "sourceBrowse"; this.sourceBrowse.Size = new System.Drawing.Size(99, 20); this.sourceBrowse.TabIndex = 2; this.sourceBrowse.Text = "Browse"; this.sourceBrowse.UseVisualStyleBackColor = true; this.sourceBrowse.Click += new System.EventHandler(this.SourceBrowseClick); // // destinationListLabel // destinationListLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; destinationListLabel.AutoSize = true; destinationListLabel.Location = new System.Drawing.Point(7, 101); destinationListLabel.Name = "destinationListLabel"; destinationListLabel.Size = new System.Drawing.Size(116, 13); destinationListLabel.TabIndex = 5; destinationListLabel.Text = "Destination Directories:"; // // destinationList // this.destinationList.Dock = System.Windows.Forms.DockStyle.Fill; this.destinationList.FormattingEnabled = true; this.destinationList.Location = new System.Drawing.Point(129, 29); this.destinationList.Name = "destinationList"; this.destinationList.Size = new System.Drawing.Size(485, 158); this.destinationList.TabIndex = 6; this.toolTip.SetToolTip(this.destinationList, "All the directories where TV Shows are stored. Only the selected one will have TV" + " moved to it but all will be used in Missing and Duplicate episode searches."); // // destinationButtonsFlow // destinationButtonsFlow.AutoSize = true; destinationButtonsFlow.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; destinationButtonsFlow.Controls.Add(this.addDestinationButton); destinationButtonsFlow.Controls.Add(this.removeDestinationButton); destinationButtonsFlow.Dock = System.Windows.Forms.DockStyle.Fill; destinationButtonsFlow.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; destinationButtonsFlow.Location = new System.Drawing.Point(617, 26); destinationButtonsFlow.Margin = new System.Windows.Forms.Padding(0); destinationButtonsFlow.Name = "destinationButtonsFlow"; destinationButtonsFlow.Size = new System.Drawing.Size(105, 164); destinationButtonsFlow.TabIndex = 7; // // addDestinationButton // this.addDestinationButton.Location = new System.Drawing.Point(3, 3); this.addDestinationButton.Name = "addDestinationButton"; this.addDestinationButton.Size = new System.Drawing.Size(99, 23); this.addDestinationButton.TabIndex = 0; this.addDestinationButton.Text = "Add"; this.addDestinationButton.UseVisualStyleBackColor = true; this.addDestinationButton.Click += new System.EventHandler(this.AddDestinationButtonClick); // // removeDestinationButton // this.removeDestinationButton.Location = new System.Drawing.Point(3, 32); this.removeDestinationButton.Name = "removeDestinationButton"; this.removeDestinationButton.Size = new System.Drawing.Size(99, 23); this.removeDestinationButton.TabIndex = 1; this.removeDestinationButton.Text = "Remove"; this.removeDestinationButton.UseVisualStyleBackColor = true; this.removeDestinationButton.Click += new System.EventHandler(this.RemoveDestinationButtonClick); // // defaultDestinationDirectory // this.defaultDestinationDirectory.Dock = System.Windows.Forms.DockStyle.Fill; this.defaultDestinationDirectory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.defaultDestinationDirectory.FormattingEnabled = true; this.defaultDestinationDirectory.Location = new System.Drawing.Point(129, 357); this.defaultDestinationDirectory.Name = "defaultDestinationDirectory"; this.defaultDestinationDirectory.Size = new System.Drawing.Size(485, 21); this.defaultDestinationDirectory.TabIndex = 9; // // label1 // this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right; this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(43, 265); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 13); this.label1.TabIndex = 10; this.label1.Text = "Ignored folders:"; // // flowLayoutPanel1 // this.flowLayoutPanel1.AutoSize = true; this.flowLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.flowLayoutPanel1.Controls.Add(this.addIgnore_btn); this.flowLayoutPanel1.Controls.Add(this.removeIgnore_btn); this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.flowLayoutPanel1.Location = new System.Drawing.Point(617, 190); this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(0); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Size = new System.Drawing.Size(105, 164); this.flowLayoutPanel1.TabIndex = 12; // // addIgnore_btn // this.addIgnore_btn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.addIgnore_btn.Location = new System.Drawing.Point(3, 3); this.addIgnore_btn.Name = "addIgnore_btn"; this.addIgnore_btn.Size = new System.Drawing.Size(96, 23); this.addIgnore_btn.TabIndex = 0; this.addIgnore_btn.Text = "Add"; this.addIgnore_btn.UseVisualStyleBackColor = true; this.addIgnore_btn.Click += new System.EventHandler(this.AddIgnoreButtonClick); // // removeIgnore_btn // this.removeIgnore_btn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.removeIgnore_btn.Location = new System.Drawing.Point(3, 32); this.removeIgnore_btn.Name = "removeIgnore_btn"; this.removeIgnore_btn.Size = new System.Drawing.Size(96, 23); this.removeIgnore_btn.TabIndex = 1; this.removeIgnore_btn.Text = "Remove"; this.removeIgnore_btn.UseVisualStyleBackColor = true; this.removeIgnore_btn.Click += new System.EventHandler(this.RemoveIgnoreButtonClick); // // ignoreList // this.ignoreList.Dock = System.Windows.Forms.DockStyle.Fill; this.ignoreList.FormattingEnabled = true; this.ignoreList.Location = new System.Drawing.Point(129, 193); this.ignoreList.Name = "ignoreList"; this.ignoreList.Size = new System.Drawing.Size(485, 158); this.ignoreList.TabIndex = 11; // // defaultDestinationLabel // defaultDestinationLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; defaultDestinationLabel.AutoSize = true; defaultDestinationLabel.Location = new System.Drawing.Point(23, 361); defaultDestinationLabel.Name = "defaultDestinationLabel"; defaultDestinationLabel.Size = new System.Drawing.Size(100, 13); defaultDestinationLabel.TabIndex = 8; defaultDestinationLabel.Text = "Default Destination:"; // // sortOptionsGroup // sortOptionsGroup.Controls.Add(sortOptionsFlow); sortOptionsGroup.Dock = System.Windows.Forms.DockStyle.Fill; sortOptionsGroup.Location = new System.Drawing.Point(3, 464); sortOptionsGroup.Name = "sortOptionsGroup"; sortOptionsGroup.Size = new System.Drawing.Size(728, 89); sortOptionsGroup.TabIndex = 1; sortOptionsGroup.TabStop = false; sortOptionsGroup.Text = "Sort Options"; // // sortOptionsFlow // sortOptionsFlow.Controls.Add(this.recurseSubdirectoriesCheck); sortOptionsFlow.Controls.Add(this.deleteEmptyCheck); sortOptionsFlow.Controls.Add(this.renameIfExistsCheck); sortOptionsFlow.Controls.Add(this.addUnmatchedShowsCheck); sortOptionsFlow.Controls.Add(this.unlockAndUpdateCheck); sortOptionsFlow.Controls.Add(this.lockShowWithNoNewEpisodesCheck); sortOptionsFlow.Dock = System.Windows.Forms.DockStyle.Fill; sortOptionsFlow.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; sortOptionsFlow.Location = new System.Drawing.Point(3, 16); sortOptionsFlow.Name = "sortOptionsFlow"; sortOptionsFlow.Size = new System.Drawing.Size(722, 70); sortOptionsFlow.TabIndex = 0; // // recurseSubdirectoriesCheck // this.recurseSubdirectoriesCheck.AutoSize = true; this.recurseSubdirectoriesCheck.Location = new System.Drawing.Point(3, 3); this.recurseSubdirectoriesCheck.Name = "recurseSubdirectoriesCheck"; this.recurseSubdirectoriesCheck.Size = new System.Drawing.Size(136, 17); this.recurseSubdirectoriesCheck.TabIndex = 0; this.recurseSubdirectoriesCheck.Text = "Recurse Subdirectories"; this.toolTip.SetToolTip(this.recurseSubdirectoriesCheck, "When selected, this option will search the subdirectories of the source directory" + " as well."); this.recurseSubdirectoriesCheck.UseVisualStyleBackColor = true; // // deleteEmptyCheck // this.deleteEmptyCheck.AutoSize = true; this.deleteEmptyCheck.Location = new System.Drawing.Point(3, 26); this.deleteEmptyCheck.Name = "deleteEmptyCheck"; this.deleteEmptyCheck.Size = new System.Drawing.Size(159, 17); this.deleteEmptyCheck.TabIndex = 1; this.deleteEmptyCheck.Text = "Delete Empty Subdirectories"; this.toolTip.SetToolTip(this.deleteEmptyCheck, "When selected, this option will delete subdirectories of Source Directory after f" + "iles have been moved out of them if this leaves the directory empty."); this.deleteEmptyCheck.UseVisualStyleBackColor = true; // // renameIfExistsCheck // this.renameIfExistsCheck.AutoSize = true; this.renameIfExistsCheck.Location = new System.Drawing.Point(3, 49); this.renameIfExistsCheck.Name = "renameIfExistsCheck"; this.renameIfExistsCheck.Size = new System.Drawing.Size(213, 17); this.renameIfExistsCheck.TabIndex = 2; this.renameIfExistsCheck.Text = "Rename if Episode Exists at Destination"; this.toolTip.SetToolTip(this.renameIfExistsCheck, "When selected, this option will search the destination directoy for the episode b" + "eing processed and renamed the copy there if it exists with a different name."); this.renameIfExistsCheck.UseVisualStyleBackColor = true; // // addUnmatchedShowsCheck // this.addUnmatchedShowsCheck.AutoSize = true; this.addUnmatchedShowsCheck.Location = new System.Drawing.Point(222, 3); this.addUnmatchedShowsCheck.Name = "addUnmatchedShowsCheck"; this.addUnmatchedShowsCheck.Size = new System.Drawing.Size(203, 17); this.addUnmatchedShowsCheck.TabIndex = 3; this.addUnmatchedShowsCheck.Text = "Add Unmatched Shows Automatically"; this.toolTip.SetToolTip(this.addUnmatchedShowsCheck, resources.GetString("addUnmatchedShowsCheck.ToolTip")); this.addUnmatchedShowsCheck.UseVisualStyleBackColor = true; // // unlockAndUpdateCheck // this.unlockAndUpdateCheck.AutoSize = true; this.unlockAndUpdateCheck.Location = new System.Drawing.Point(222, 26); this.unlockAndUpdateCheck.Name = "unlockAndUpdateCheck"; this.unlockAndUpdateCheck.Size = new System.Drawing.Size(202, 17); this.unlockAndUpdateCheck.TabIndex = 4; this.unlockAndUpdateCheck.Text = "Unlock and Update Locked Matches"; this.toolTip.SetToolTip(this.unlockAndUpdateCheck, "When selected, this option will unlock any shows that are locked and update them " + "if a match is found."); this.unlockAndUpdateCheck.UseVisualStyleBackColor = true; // // lockShowWithNoNewEpisodesCheck // this.lockShowWithNoNewEpisodesCheck.AutoSize = true; this.lockShowWithNoNewEpisodesCheck.Location = new System.Drawing.Point(222, 49); this.lockShowWithNoNewEpisodesCheck.Name = "lockShowWithNoNewEpisodesCheck"; this.lockShowWithNoNewEpisodesCheck.Size = new System.Drawing.Size(264, 17); this.lockShowWithNoNewEpisodesCheck.TabIndex = 5; this.lockShowWithNoNewEpisodesCheck.Text = "Lock Show After 3 Weeks With No New Episodes\r\n"; this.toolTip.SetToolTip(this.lockShowWithNoNewEpisodesCheck, "When selected, during an update, if the show hasn\'t \r\nhad any new episodes for 3 " + "weeks, the show will be\r\nlocked and skipped in future updates."); this.lockShowWithNoNewEpisodesCheck.UseVisualStyleBackColor = true; // // searchOptionsGroup // searchOptionsGroup.Controls.Add(searchOptionsFlow); searchOptionsGroup.Dock = System.Windows.Forms.DockStyle.Fill; searchOptionsGroup.Location = new System.Drawing.Point(3, 559); searchOptionsGroup.Name = "searchOptionsGroup"; searchOptionsGroup.Size = new System.Drawing.Size(728, 50); searchOptionsGroup.TabIndex = 2; searchOptionsGroup.TabStop = false; searchOptionsGroup.Text = "Search Options"; // // searchOptionsFlow // searchOptionsFlow.Controls.Add(this.regExButton); searchOptionsFlow.Controls.Add(this.fileExtensionsButton); searchOptionsFlow.Controls.Add(editOverwriteKeywordsButton); searchOptionsFlow.Dock = System.Windows.Forms.DockStyle.Fill; searchOptionsFlow.Location = new System.Drawing.Point(3, 16); searchOptionsFlow.Name = "searchOptionsFlow"; searchOptionsFlow.Size = new System.Drawing.Size(722, 31); searchOptionsFlow.TabIndex = 0; // // regExButton // this.regExButton.Location = new System.Drawing.Point(3, 3); this.regExButton.Name = "regExButton"; this.regExButton.Size = new System.Drawing.Size(136, 23); this.regExButton.TabIndex = 0; this.regExButton.Text = "Edit Regular Expressions"; this.toolTip.SetToolTip(this.regExButton, "Edit the regular expressions used for searching.\r\nSee http://code.google.com/p/tv" + "sorter for more\r\ninformation."); this.regExButton.UseVisualStyleBackColor = true; this.regExButton.Click += new System.EventHandler(this.RegExButtonClick); // // fileExtensionsButton // this.fileExtensionsButton.Location = new System.Drawing.Point(145, 3); this.fileExtensionsButton.Name = "fileExtensionsButton"; this.fileExtensionsButton.Size = new System.Drawing.Size(136, 23); this.fileExtensionsButton.TabIndex = 1; this.fileExtensionsButton.Text = "Edit File Extensions"; this.toolTip.SetToolTip(this.fileExtensionsButton, "Edit the file extensions that are searched."); this.fileExtensionsButton.UseVisualStyleBackColor = true; this.fileExtensionsButton.Click += new System.EventHandler(this.FileExtensionsButtonClick); // // editOverwriteKeywordsButton // editOverwriteKeywordsButton.Location = new System.Drawing.Point(287, 3); editOverwriteKeywordsButton.Name = "editOverwriteKeywordsButton"; editOverwriteKeywordsButton.Size = new System.Drawing.Size(146, 23); editOverwriteKeywordsButton.TabIndex = 2; editOverwriteKeywordsButton.Text = "Edit Overwrite Keywords"; this.toolTip.SetToolTip(editOverwriteKeywordsButton, resources.GetString("editOverwriteKeywordsButton.ToolTip")); editOverwriteKeywordsButton.UseVisualStyleBackColor = true; editOverwriteKeywordsButton.Click += new System.EventHandler(this.EditOverwriteKeywordsButtonClick); // // formatOptionsGroup // formatOptionsGroup.Controls.Add(formatTable); formatOptionsGroup.Dock = System.Windows.Forms.DockStyle.Fill; formatOptionsGroup.Location = new System.Drawing.Point(3, 410); formatOptionsGroup.Name = "formatOptionsGroup"; formatOptionsGroup.Size = new System.Drawing.Size(728, 48); formatOptionsGroup.TabIndex = 3; formatOptionsGroup.TabStop = false; formatOptionsGroup.Text = "Format Options"; // // formatTable // formatTable.ColumnCount = 3; formatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 126F)); formatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); formatTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 105F)); formatTable.Controls.Add(formatLabel, 0, 0); formatTable.Controls.Add(this.formatText, 1, 0); formatTable.Controls.Add(this.formatBuilderButton, 2, 0); formatTable.Dock = System.Windows.Forms.DockStyle.Fill; formatTable.Location = new System.Drawing.Point(3, 16); formatTable.Name = "formatTable"; formatTable.RowCount = 1; formatTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); formatTable.Size = new System.Drawing.Size(722, 29); formatTable.TabIndex = 0; // // formatLabel // formatLabel.Anchor = System.Windows.Forms.AnchorStyles.Right; formatLabel.AutoSize = true; formatLabel.Location = new System.Drawing.Point(46, 8); formatLabel.Name = "formatLabel"; formatLabel.Size = new System.Drawing.Size(77, 13); formatLabel.TabIndex = 0; formatLabel.Text = "Output Format:"; // // formatText // this.formatText.Dock = System.Windows.Forms.DockStyle.Fill; this.formatText.Location = new System.Drawing.Point(129, 3); this.formatText.Name = "formatText"; this.formatText.Size = new System.Drawing.Size(485, 20); this.formatText.TabIndex = 1; this.toolTip.SetToolTip(this.formatText, "The formatting string used to set the output path for an episode. This setting ca" + "n be overriden on a per show basis."); // // formatBuilderButton // this.formatBuilderButton.Dock = System.Windows.Forms.DockStyle.Top; this.formatBuilderButton.Location = new System.Drawing.Point(620, 3); this.formatBuilderButton.Name = "formatBuilderButton"; this.formatBuilderButton.Size = new System.Drawing.Size(99, 23); this.formatBuilderButton.TabIndex = 2; this.formatBuilderButton.Text = "Format Builder"; this.formatBuilderButton.UseVisualStyleBackColor = true; this.formatBuilderButton.Click += new System.EventHandler(this.FormatBuilderButtonClick); // // flowBottomButtons // flowBottomButtons.Controls.Add(this.revertButton); flowBottomButtons.Controls.Add(this.saveButton); flowBottomButtons.Dock = System.Windows.Forms.DockStyle.Fill; flowBottomButtons.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; flowBottomButtons.Location = new System.Drawing.Point(3, 615); flowBottomButtons.Name = "flowBottomButtons"; flowBottomButtons.Size = new System.Drawing.Size(728, 34); flowBottomButtons.TabIndex = 4; // // revertButton // this.revertButton.Location = new System.Drawing.Point(650, 3); this.revertButton.Name = "revertButton"; this.revertButton.Size = new System.Drawing.Size(75, 23); this.revertButton.TabIndex = 0; this.revertButton.Text = "Revert"; this.revertButton.UseVisualStyleBackColor = true; this.revertButton.Click += new System.EventHandler(this.RevertButtonClick); // // saveButton // this.saveButton.Location = new System.Drawing.Point(569, 3); this.saveButton.Name = "saveButton"; this.saveButton.Size = new System.Drawing.Size(75, 23); this.saveButton.TabIndex = 1; this.saveButton.Text = "Save"; this.saveButton.UseVisualStyleBackColor = true; this.saveButton.Click += new System.EventHandler(this.SaveButtonClick); // // Settings // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(mainTable); this.Name = "Settings"; this.Size = new System.Drawing.Size(734, 652); this.Load += new System.EventHandler(this.SettingsLoad); mainTable.ResumeLayout(false); mainTable.PerformLayout(); this.groupDirectories.ResumeLayout(false); this.groupDirectories.PerformLayout(); tableDirectories.ResumeLayout(false); tableDirectories.PerformLayout(); destinationButtonsFlow.ResumeLayout(false); this.flowLayoutPanel1.ResumeLayout(false); sortOptionsGroup.ResumeLayout(false); sortOptionsFlow.ResumeLayout(false); sortOptionsFlow.PerformLayout(); searchOptionsGroup.ResumeLayout(false); searchOptionsFlow.ResumeLayout(false); formatOptionsGroup.ResumeLayout(false); formatTable.ResumeLayout(false); formatTable.PerformLayout(); flowBottomButtons.ResumeLayout(false); this.ResumeLayout(false); }