Allow maximizing custom uploader settings window, removed unnecessary panel

This commit is contained in:
Jaex 2019-02-03 10:35:36 +03:00
parent 99a18b3697
commit 84d46e4ffb
3 changed files with 1223 additions and 530 deletions

View file

@ -30,12 +30,12 @@ private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CustomUploaderSettingsForm));
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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
this.tscCustomUploaderResponseText = new System.Windows.Forms.ToolStripContainer();
this.txtCustomUploaderResponse = new System.Windows.Forms.TextBox();
this.tsCustomUploaderResponseText = new System.Windows.Forms.ToolStrip();
@ -66,7 +66,6 @@ private void InitializeComponent()
this.lblCustomUploaderFileUploader = new System.Windows.Forms.Label();
this.btnCustomUploaderFileUploaderTest = new System.Windows.Forms.Button();
this.lblCustomUploaderImageUploader = new System.Windows.Forms.Label();
this.pCustomUploader = new System.Windows.Forms.Panel();
this.tcCustomUploader = new System.Windows.Forms.TabControl();
this.tpCustomUploaderRequest = new System.Windows.Forms.TabPage();
this.dgvHeaders = new System.Windows.Forms.DataGridView();
@ -149,7 +148,6 @@ private void InitializeComponent()
this.tsCustomUploaderResponseText.SuspendLayout();
this.gbCustomUploaders.SuspendLayout();
this.cmsCustomUploaderHelp.SuspendLayout();
this.pCustomUploader.SuspendLayout();
this.tcCustomUploader.SuspendLayout();
this.tpCustomUploaderRequest.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvHeaders)).BeginInit();
@ -404,22 +402,12 @@ private void InitializeComponent()
resources.ApplyResources(this.lblCustomUploaderImageUploader, "lblCustomUploaderImageUploader");
this.lblCustomUploaderImageUploader.Name = "lblCustomUploaderImageUploader";
//
// pCustomUploader
//
this.pCustomUploader.Controls.Add(this.tcCustomUploader);
this.pCustomUploader.Controls.Add(this.lblCustomUploaderDestinationType);
this.pCustomUploader.Controls.Add(this.lblCustomUploaderName);
this.pCustomUploader.Controls.Add(this.mbCustomUploaderDestinationType);
this.pCustomUploader.Controls.Add(this.txtCustomUploaderName);
resources.ApplyResources(this.pCustomUploader, "pCustomUploader");
this.pCustomUploader.Name = "pCustomUploader";
//
// tcCustomUploader
//
resources.ApplyResources(this.tcCustomUploader, "tcCustomUploader");
this.tcCustomUploader.Controls.Add(this.tpCustomUploaderRequest);
this.tcCustomUploader.Controls.Add(this.tpCustomUploaderResponse);
this.tcCustomUploader.Controls.Add(this.tpCustomUploaderTest);
resources.ApplyResources(this.tcCustomUploader, "tcCustomUploader");
this.tcCustomUploader.Name = "tcCustomUploader";
this.tcCustomUploader.SelectedIndex = 0;
//
@ -446,28 +434,28 @@ private void InitializeComponent()
this.dgvHeaders.AllowUserToResizeRows = false;
this.dgvHeaders.BackgroundColor = System.Drawing.SystemColors.Window;
this.dgvHeaders.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvHeaders.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle31.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle31.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvHeaders.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle31;
this.dgvHeaders.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvHeaders.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvHeaders.DefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle32.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle32.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle32.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvHeaders.DefaultCellStyle = dataGridViewCellStyle32;
this.dgvHeaders.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
this.dgvHeaders.GridColor = System.Drawing.SystemColors.ControlLight;
resources.ApplyResources(this.dgvHeaders, "dgvHeaders");
@ -495,28 +483,28 @@ private void InitializeComponent()
this.dgvParameters.AllowUserToResizeRows = false;
this.dgvParameters.BackgroundColor = System.Drawing.SystemColors.Window;
this.dgvParameters.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle3.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvParameters.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle33.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle33.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle33.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle33.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
dataGridViewCellStyle33.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle33.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle33.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvParameters.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle33;
this.dgvParameters.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvParameters.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.chParametersName,
this.chParametersValue});
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle4.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvParameters.DefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle34.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle34.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle34.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle34.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
dataGridViewCellStyle34.SelectionBackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle34.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvParameters.DefaultCellStyle = dataGridViewCellStyle34;
this.dgvParameters.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
this.dgvParameters.GridColor = System.Drawing.SystemColors.ControlLight;
resources.ApplyResources(this.dgvParameters, "dgvParameters");
@ -609,28 +597,28 @@ private void InitializeComponent()
this.dgvArguments.AllowUserToResizeRows = false;
this.dgvArguments.BackgroundColor = System.Drawing.SystemColors.Window;
this.dgvArguments.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvArguments.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle35.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle35.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle35.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle35.Padding = new System.Windows.Forms.Padding(0, 2, 0, 2);
dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dgvArguments.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle35;
this.dgvArguments.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvArguments.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn3,
this.dataGridViewTextBoxColumn4});
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle6.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvArguments.DefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle36.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle36.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);
dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvArguments.DefaultCellStyle = dataGridViewCellStyle36;
this.dgvArguments.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
this.dgvArguments.GridColor = System.Drawing.SystemColors.ControlLight;
resources.ApplyResources(this.dgvArguments, "dgvArguments");
@ -1060,12 +1048,16 @@ private void InitializeComponent()
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.Controls.Add(this.tcCustomUploader);
this.Controls.Add(this.lblCustomUploaderDestinationType);
this.Controls.Add(this.mbCustomUploaderDestinationType);
this.Controls.Add(this.lblCustomUploaderName);
this.Controls.Add(this.btnCustomUploaderURLSharingServiceTest);
this.Controls.Add(this.txtCustomUploaderName);
this.Controls.Add(this.cbCustomUploaderURLSharingService);
this.Controls.Add(this.gbCustomUploaders);
this.Controls.Add(this.lblCustomUploaderURLSharingService);
this.Controls.Add(this.cbCustomUploaderImageUploader);
this.Controls.Add(this.pCustomUploader);
this.Controls.Add(this.btnCustomUploaderTextUploaderTest);
this.Controls.Add(this.lblCustomUploaderImageUploader);
this.Controls.Add(this.lblCustomUploaderURLShortener);
@ -1078,7 +1070,6 @@ private void InitializeComponent()
this.Controls.Add(this.cbCustomUploaderFileUploader);
this.Controls.Add(this.cbCustomUploaderURLShortener);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "CustomUploaderSettingsForm";
this.DragDrop += new System.Windows.Forms.DragEventHandler(this.CustomUploaderSettingsForm_DragDrop);
this.DragEnter += new System.Windows.Forms.DragEventHandler(this.CustomUploaderSettingsForm_DragEnter);
@ -1092,8 +1083,6 @@ private void InitializeComponent()
this.tsCustomUploaderResponseText.PerformLayout();
this.gbCustomUploaders.ResumeLayout(false);
this.cmsCustomUploaderHelp.ResumeLayout(false);
this.pCustomUploader.ResumeLayout(false);
this.pCustomUploader.PerformLayout();
this.tcCustomUploader.ResumeLayout(false);
this.tpCustomUploaderRequest.ResumeLayout(false);
this.tpCustomUploaderRequest.PerformLayout();
@ -1148,7 +1137,6 @@ private void InitializeComponent()
private System.Windows.Forms.Label lblCustomUploaderFileUploader;
private System.Windows.Forms.Button btnCustomUploaderFileUploaderTest;
private System.Windows.Forms.Label lblCustomUploaderImageUploader;
private System.Windows.Forms.Panel pCustomUploader;
private System.Windows.Forms.TabControl tcCustomUploader;
private System.Windows.Forms.TabPage tpCustomUploaderRequest;
private System.Windows.Forms.Label lblCustomUploaderHeaders;

View file

@ -231,8 +231,8 @@ private void CustomUploaderUpdateStates()
{
bool isSelected = CustomUploaderCheck(lbCustomUploaderList.SelectedIndex);
txtCustomUploaderName.Enabled = btnCustomUploaderRemove.Enabled = btnCustomUploaderDuplicate.Enabled = pCustomUploader.Enabled =
mbCustomUploaderDestinationType.Enabled = isSelected;
btnCustomUploaderRemove.Enabled = btnCustomUploaderDuplicate.Enabled = txtCustomUploaderName.Enabled = mbCustomUploaderDestinationType.Enabled =
tcCustomUploader.Enabled = isSelected;
if (isSelected)
{

File diff suppressed because it is too large Load diff