tl;dr text on alt login. Issue #160

This commit is contained in:
Robert McRackan 2021-11-29 11:12:26 -05:00
parent 7f5cf8f018
commit b4015030cf
2 changed files with 146 additions and 133 deletions

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<Version>6.5.2.1</Version> <Version>6.5.3.1</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -28,140 +28,152 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LoginExternalDialog)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LoginExternalDialog));
this.submitBtn = new System.Windows.Forms.Button(); this.submitBtn = new System.Windows.Forms.Button();
this.localeLbl = new System.Windows.Forms.Label(); this.localeLbl = new System.Windows.Forms.Label();
this.usernameLbl = new System.Windows.Forms.Label(); this.usernameLbl = new System.Windows.Forms.Label();
this.loginUrlLbl = new System.Windows.Forms.Label(); this.loginUrlLbl = new System.Windows.Forms.Label();
this.loginUrlTb = new System.Windows.Forms.TextBox(); this.loginUrlTb = new System.Windows.Forms.TextBox();
this.copyBtn = new System.Windows.Forms.Button(); this.copyBtn = new System.Windows.Forms.Button();
this.launchBrowserBtn = new System.Windows.Forms.Button(); this.launchBrowserBtn = new System.Windows.Forms.Button();
this.instructionsLbl = new System.Windows.Forms.Label(); this.instructionsLbl = new System.Windows.Forms.Label();
this.responseUrlTb = new System.Windows.Forms.TextBox(); this.responseUrlTb = new System.Windows.Forms.TextBox();
this.SuspendLayout(); this.tldrLbl = new System.Windows.Forms.Label();
// this.SuspendLayout();
// submitBtn //
// // submitBtn
this.submitBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); //
this.submitBtn.Location = new System.Drawing.Point(665, 400); this.submitBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.submitBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.submitBtn.Location = new System.Drawing.Point(665, 458);
this.submitBtn.Name = "submitBtn"; this.submitBtn.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.submitBtn.Size = new System.Drawing.Size(88, 27); this.submitBtn.Name = "submitBtn";
this.submitBtn.TabIndex = 8; this.submitBtn.Size = new System.Drawing.Size(88, 27);
this.submitBtn.Text = "Submit"; this.submitBtn.TabIndex = 8;
this.submitBtn.UseVisualStyleBackColor = true; this.submitBtn.Text = "Submit";
this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click); this.submitBtn.UseVisualStyleBackColor = true;
// this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click);
// localeLbl //
// // localeLbl
this.localeLbl.AutoSize = true; //
this.localeLbl.Location = new System.Drawing.Point(14, 10); this.localeLbl.AutoSize = true;
this.localeLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.localeLbl.Location = new System.Drawing.Point(14, 10);
this.localeLbl.Name = "localeLbl"; this.localeLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.localeLbl.Size = new System.Drawing.Size(61, 15); this.localeLbl.Name = "localeLbl";
this.localeLbl.TabIndex = 0; this.localeLbl.Size = new System.Drawing.Size(61, 15);
this.localeLbl.Text = "Locale: {0}"; this.localeLbl.TabIndex = 0;
// this.localeLbl.Text = "Locale: {0}";
// usernameLbl //
// // usernameLbl
this.usernameLbl.AutoSize = true; //
this.usernameLbl.Location = new System.Drawing.Point(14, 25); this.usernameLbl.AutoSize = true;
this.usernameLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.usernameLbl.Location = new System.Drawing.Point(14, 25);
this.usernameLbl.Name = "usernameLbl"; this.usernameLbl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.usernameLbl.Size = new System.Drawing.Size(80, 15); this.usernameLbl.Name = "usernameLbl";
this.usernameLbl.TabIndex = 1; this.usernameLbl.Size = new System.Drawing.Size(80, 15);
this.usernameLbl.Text = "Username: {0}"; this.usernameLbl.TabIndex = 1;
// this.usernameLbl.Text = "Username: {0}";
// loginUrlLbl //
// // loginUrlLbl
this.loginUrlLbl.AutoSize = true; //
this.loginUrlLbl.Location = new System.Drawing.Point(14, 61); this.loginUrlLbl.AutoSize = true;
this.loginUrlLbl.Name = "loginUrlLbl"; this.loginUrlLbl.Location = new System.Drawing.Point(14, 61);
this.loginUrlLbl.Size = new System.Drawing.Size(180, 15); this.loginUrlLbl.Name = "loginUrlLbl";
this.loginUrlLbl.TabIndex = 2; this.loginUrlLbl.Size = new System.Drawing.Size(180, 15);
this.loginUrlLbl.Text = "Paste this URL into your browser:"; this.loginUrlLbl.TabIndex = 2;
// this.loginUrlLbl.Text = "Paste this URL into your browser:";
// loginUrlTb //
// // loginUrlTb
this.loginUrlTb.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) //
this.loginUrlTb.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.loginUrlTb.Location = new System.Drawing.Point(14, 79); this.loginUrlTb.Location = new System.Drawing.Point(14, 79);
this.loginUrlTb.Multiline = true; this.loginUrlTb.Multiline = true;
this.loginUrlTb.Name = "loginUrlTb"; this.loginUrlTb.Name = "loginUrlTb";
this.loginUrlTb.ReadOnly = true; this.loginUrlTb.ReadOnly = true;
this.loginUrlTb.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.loginUrlTb.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.loginUrlTb.Size = new System.Drawing.Size(739, 92); this.loginUrlTb.Size = new System.Drawing.Size(739, 117);
this.loginUrlTb.TabIndex = 3; this.loginUrlTb.TabIndex = 3;
// //
// copyBtn // copyBtn
// //
this.copyBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.copyBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.copyBtn.Location = new System.Drawing.Point(14, 177); this.copyBtn.Location = new System.Drawing.Point(14, 202);
this.copyBtn.Name = "copyBtn"; this.copyBtn.Name = "copyBtn";
this.copyBtn.Size = new System.Drawing.Size(165, 23); this.copyBtn.Size = new System.Drawing.Size(165, 23);
this.copyBtn.TabIndex = 4; this.copyBtn.TabIndex = 4;
this.copyBtn.Text = "Copy URL to clipboard"; this.copyBtn.Text = "Copy URL to clipboard";
this.copyBtn.UseVisualStyleBackColor = true; this.copyBtn.UseVisualStyleBackColor = true;
this.copyBtn.Click += new System.EventHandler(this.copyBtn_Click); this.copyBtn.Click += new System.EventHandler(this.copyBtn_Click);
// //
// launchBrowserBtn // launchBrowserBtn
// //
this.launchBrowserBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.launchBrowserBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.launchBrowserBtn.Location = new System.Drawing.Point(588, 177); this.launchBrowserBtn.Location = new System.Drawing.Point(589, 202);
this.launchBrowserBtn.Name = "launchBrowserBtn"; this.launchBrowserBtn.Name = "launchBrowserBtn";
this.launchBrowserBtn.Size = new System.Drawing.Size(165, 23); this.launchBrowserBtn.Size = new System.Drawing.Size(165, 23);
this.launchBrowserBtn.TabIndex = 5; this.launchBrowserBtn.TabIndex = 5;
this.launchBrowserBtn.Text = "Launch in browser"; this.launchBrowserBtn.Text = "Launch in browser";
this.launchBrowserBtn.UseVisualStyleBackColor = true; this.launchBrowserBtn.UseVisualStyleBackColor = true;
this.launchBrowserBtn.Click += new System.EventHandler(this.launchBrowserBtn_Click); this.launchBrowserBtn.Click += new System.EventHandler(this.launchBrowserBtn_Click);
// //
// instructionsLbl // instructionsLbl
// //
this.instructionsLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.instructionsLbl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.instructionsLbl.AutoSize = true; this.instructionsLbl.AutoSize = true;
this.instructionsLbl.Location = new System.Drawing.Point(14, 203); this.instructionsLbl.Location = new System.Drawing.Point(14, 261);
this.instructionsLbl.Name = "instructionsLbl"; this.instructionsLbl.Name = "instructionsLbl";
this.instructionsLbl.Size = new System.Drawing.Size(436, 90); this.instructionsLbl.Size = new System.Drawing.Size(436, 90);
this.instructionsLbl.TabIndex = 6; this.instructionsLbl.TabIndex = 6;
this.instructionsLbl.Text = resources.GetString("instructionsLbl.Text"); this.instructionsLbl.Text = resources.GetString("instructionsLbl.Text");
// //
// responseUrlTb // responseUrlTb
// //
this.responseUrlTb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.responseUrlTb.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.responseUrlTb.Location = new System.Drawing.Point(14, 296); this.responseUrlTb.Location = new System.Drawing.Point(14, 354);
this.responseUrlTb.Multiline = true; this.responseUrlTb.Multiline = true;
this.responseUrlTb.Name = "responseUrlTb"; this.responseUrlTb.Name = "responseUrlTb";
this.responseUrlTb.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.responseUrlTb.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.responseUrlTb.Size = new System.Drawing.Size(739, 98); this.responseUrlTb.Size = new System.Drawing.Size(739, 98);
this.responseUrlTb.TabIndex = 7; this.responseUrlTb.TabIndex = 7;
// //
// LoginExternalDialog // tldrLbl
// //
this.AcceptButton = this.submitBtn; this.tldrLbl.AutoSize = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.tldrLbl.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.tldrLbl.Location = new System.Drawing.Point(14, 237);
this.ClientSize = new System.Drawing.Size(766, 440); this.tldrLbl.Name = "tldrLbl";
this.Controls.Add(this.responseUrlTb); this.tldrLbl.Size = new System.Drawing.Size(421, 15);
this.Controls.Add(this.instructionsLbl); this.tldrLbl.TabIndex = 9;
this.Controls.Add(this.launchBrowserBtn); this.tldrLbl.Text = "tl;dr : an ERROR on Amazon is GOOD. Sorry, I can\'t control their weird login";
this.Controls.Add(this.copyBtn); //
this.Controls.Add(this.loginUrlTb); // LoginExternalDialog
this.Controls.Add(this.loginUrlLbl); //
this.Controls.Add(this.usernameLbl); this.AcceptButton = this.submitBtn;
this.Controls.Add(this.localeLbl); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.Controls.Add(this.submitBtn); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.ClientSize = new System.Drawing.Size(766, 498);
this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.Controls.Add(this.tldrLbl);
this.MaximizeBox = false; this.Controls.Add(this.responseUrlTb);
this.MinimizeBox = false; this.Controls.Add(this.instructionsLbl);
this.Name = "LoginExternalDialog"; this.Controls.Add(this.launchBrowserBtn);
this.ShowIcon = false; this.Controls.Add(this.copyBtn);
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Controls.Add(this.loginUrlTb);
this.Text = "Audible External Login"; this.Controls.Add(this.loginUrlLbl);
this.ResumeLayout(false); this.Controls.Add(this.usernameLbl);
this.PerformLayout(); this.Controls.Add(this.localeLbl);
this.Controls.Add(this.submitBtn);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "LoginExternalDialog";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Audible External Login";
this.ResumeLayout(false);
this.PerformLayout();
} }
@ -175,5 +187,6 @@
private System.Windows.Forms.Button launchBrowserBtn; private System.Windows.Forms.Button launchBrowserBtn;
private System.Windows.Forms.Label instructionsLbl; private System.Windows.Forms.Label instructionsLbl;
private System.Windows.Forms.TextBox responseUrlTb; private System.Windows.Forms.TextBox responseUrlTb;
} private System.Windows.Forms.Label tldrLbl;
}
} }