From b0fd0ee26a3746b7e7c4bd47c35ea1ca017206ff Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Mon, 21 Oct 2019 16:45:15 -0400 Subject: [PATCH] Refine audible api login --- AudibleApiDomainService/AudibleApiLibationClient.cs | 2 ++ .../UNTESTED/Dialogs/Login/CaptchaDialog.Designer.cs | 12 ++++++------ .../UNTESTED/Dialogs/Login/CaptchaDialog.cs | 7 ------- .../Dialogs/Login/CaptchaDialog.Designer.cs | 12 ++++++------ 4 files changed, 14 insertions(+), 19 deletions(-) diff --git a/AudibleApiDomainService/AudibleApiLibationClient.cs b/AudibleApiDomainService/AudibleApiLibationClient.cs index ca9282fe..56bafb47 100644 --- a/AudibleApiDomainService/AudibleApiLibationClient.cs +++ b/AudibleApiDomainService/AudibleApiLibationClient.cs @@ -88,6 +88,8 @@ namespace AudibleApiDomainService public async Task TestGetLibraryAsync() { var x = await _api.GetLibraryAsync(); +var str = x.ToString(); + return x; } diff --git a/LibationWinForm/UNTESTED/Dialogs/Login/CaptchaDialog.Designer.cs b/LibationWinForm/UNTESTED/Dialogs/Login/CaptchaDialog.Designer.cs index 1a0de084..0c3f64f4 100644 --- a/LibationWinForm/UNTESTED/Dialogs/Login/CaptchaDialog.Designer.cs +++ b/LibationWinForm/UNTESTED/Dialogs/Login/CaptchaDialog.Designer.cs @@ -39,20 +39,20 @@ // this.captchaPb.Location = new System.Drawing.Point(12, 12); this.captchaPb.Name = "captchaPb"; - this.captchaPb.Size = new System.Drawing.Size(429, 186); + this.captchaPb.Size = new System.Drawing.Size(200, 70); this.captchaPb.TabIndex = 0; this.captchaPb.TabStop = false; // // answerTb // - this.answerTb.Location = new System.Drawing.Point(118, 206); + this.answerTb.Location = new System.Drawing.Point(118, 88); this.answerTb.Name = "answerTb"; - this.answerTb.Size = new System.Drawing.Size(100, 20); + this.answerTb.Size = new System.Drawing.Size(94, 20); this.answerTb.TabIndex = 1; // // submitBtn // - this.submitBtn.Location = new System.Drawing.Point(366, 204); + this.submitBtn.Location = new System.Drawing.Point(137, 114); this.submitBtn.Name = "submitBtn"; this.submitBtn.Size = new System.Drawing.Size(75, 23); this.submitBtn.TabIndex = 2; @@ -63,7 +63,7 @@ // answerLbl // this.answerLbl.AutoSize = true; - this.answerLbl.Location = new System.Drawing.Point(12, 209); + this.answerLbl.Location = new System.Drawing.Point(12, 91); this.answerLbl.Name = "answerLbl"; this.answerLbl.Size = new System.Drawing.Size(100, 13); this.answerLbl.TabIndex = 0; @@ -74,7 +74,7 @@ this.AcceptButton = this.submitBtn; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(453, 239); + this.ClientSize = new System.Drawing.Size(224, 149); this.Controls.Add(this.answerLbl); this.Controls.Add(this.submitBtn); this.Controls.Add(this.answerTb); diff --git a/LibationWinForm/UNTESTED/Dialogs/Login/CaptchaDialog.cs b/LibationWinForm/UNTESTED/Dialogs/Login/CaptchaDialog.cs index c25693f5..3e0bf6e7 100644 --- a/LibationWinForm/UNTESTED/Dialogs/Login/CaptchaDialog.cs +++ b/LibationWinForm/UNTESTED/Dialogs/Login/CaptchaDialog.cs @@ -15,18 +15,11 @@ namespace LibationWinForm.Dialogs.Login public CaptchaDialog(byte[] captchaImage) { InitializeComponent(); - this.FormClosed += (_, __) => { ms?.Dispose(); image?.Dispose(); }; ms = new MemoryStream(captchaImage); image = Image.FromStream(ms); this.captchaPb.Image = image; - - var h1 = captchaPb.Height; - var w1 = captchaPb.Width; - - var h2 = captchaPb.Image.Height; - var w2 = captchaPb.Image.Width; } private void submitBtn_Click(object sender, EventArgs e) diff --git a/WinFormsDesigner/Dialogs/Login/CaptchaDialog.Designer.cs b/WinFormsDesigner/Dialogs/Login/CaptchaDialog.Designer.cs index a20dc62a..aaee0093 100644 --- a/WinFormsDesigner/Dialogs/Login/CaptchaDialog.Designer.cs +++ b/WinFormsDesigner/Dialogs/Login/CaptchaDialog.Designer.cs @@ -39,20 +39,20 @@ // this.captchaPb.Location = new System.Drawing.Point(12, 12); this.captchaPb.Name = "captchaPb"; - this.captchaPb.Size = new System.Drawing.Size(429, 186); + this.captchaPb.Size = new System.Drawing.Size(200, 70); this.captchaPb.TabIndex = 0; this.captchaPb.TabStop = false; // // answerTb // - this.answerTb.Location = new System.Drawing.Point(118, 206); + this.answerTb.Location = new System.Drawing.Point(118, 88); this.answerTb.Name = "answerTb"; - this.answerTb.Size = new System.Drawing.Size(100, 20); + this.answerTb.Size = new System.Drawing.Size(94, 20); this.answerTb.TabIndex = 1; // // submitBtn // - this.submitBtn.Location = new System.Drawing.Point(366, 204); + this.submitBtn.Location = new System.Drawing.Point(137, 114); this.submitBtn.Name = "submitBtn"; this.submitBtn.Size = new System.Drawing.Size(75, 23); this.submitBtn.TabIndex = 2; @@ -62,7 +62,7 @@ // answerLbl // this.answerLbl.AutoSize = true; - this.answerLbl.Location = new System.Drawing.Point(12, 209); + this.answerLbl.Location = new System.Drawing.Point(12, 91); this.answerLbl.Name = "answerLbl"; this.answerLbl.Size = new System.Drawing.Size(100, 13); this.answerLbl.TabIndex = 0; @@ -73,7 +73,7 @@ this.AcceptButton = this.submitBtn; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(453, 239); + this.ClientSize = new System.Drawing.Size(224, 149); this.Controls.Add(this.answerLbl); this.Controls.Add(this.submitBtn); this.Controls.Add(this.answerTb);