Refine audible api login
This commit is contained in:
parent
cecbea1e9f
commit
b0fd0ee26a
@ -88,6 +88,8 @@ namespace AudibleApiDomainService
|
|||||||
public async Task<JObject> TestGetLibraryAsync()
|
public async Task<JObject> TestGetLibraryAsync()
|
||||||
{
|
{
|
||||||
var x = await _api.GetLibraryAsync();
|
var x = await _api.GetLibraryAsync();
|
||||||
|
var str = x.ToString();
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -39,20 +39,20 @@
|
|||||||
//
|
//
|
||||||
this.captchaPb.Location = new System.Drawing.Point(12, 12);
|
this.captchaPb.Location = new System.Drawing.Point(12, 12);
|
||||||
this.captchaPb.Name = "captchaPb";
|
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.TabIndex = 0;
|
||||||
this.captchaPb.TabStop = false;
|
this.captchaPb.TabStop = false;
|
||||||
//
|
//
|
||||||
// answerTb
|
// 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.Name = "answerTb";
|
||||||
this.answerTb.Size = new System.Drawing.Size(100, 20);
|
this.answerTb.Size = new System.Drawing.Size(94, 20);
|
||||||
this.answerTb.TabIndex = 1;
|
this.answerTb.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// submitBtn
|
// 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.Name = "submitBtn";
|
||||||
this.submitBtn.Size = new System.Drawing.Size(75, 23);
|
this.submitBtn.Size = new System.Drawing.Size(75, 23);
|
||||||
this.submitBtn.TabIndex = 2;
|
this.submitBtn.TabIndex = 2;
|
||||||
@ -63,7 +63,7 @@
|
|||||||
// answerLbl
|
// answerLbl
|
||||||
//
|
//
|
||||||
this.answerLbl.AutoSize = true;
|
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.Name = "answerLbl";
|
||||||
this.answerLbl.Size = new System.Drawing.Size(100, 13);
|
this.answerLbl.Size = new System.Drawing.Size(100, 13);
|
||||||
this.answerLbl.TabIndex = 0;
|
this.answerLbl.TabIndex = 0;
|
||||||
@ -74,7 +74,7 @@
|
|||||||
this.AcceptButton = this.submitBtn;
|
this.AcceptButton = this.submitBtn;
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
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.answerLbl);
|
||||||
this.Controls.Add(this.submitBtn);
|
this.Controls.Add(this.submitBtn);
|
||||||
this.Controls.Add(this.answerTb);
|
this.Controls.Add(this.answerTb);
|
||||||
|
|||||||
@ -15,18 +15,11 @@ namespace LibationWinForm.Dialogs.Login
|
|||||||
public CaptchaDialog(byte[] captchaImage)
|
public CaptchaDialog(byte[] captchaImage)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
this.FormClosed += (_, __) => { ms?.Dispose(); image?.Dispose(); };
|
this.FormClosed += (_, __) => { ms?.Dispose(); image?.Dispose(); };
|
||||||
|
|
||||||
ms = new MemoryStream(captchaImage);
|
ms = new MemoryStream(captchaImage);
|
||||||
image = Image.FromStream(ms);
|
image = Image.FromStream(ms);
|
||||||
this.captchaPb.Image = image;
|
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)
|
private void submitBtn_Click(object sender, EventArgs e)
|
||||||
|
|||||||
@ -39,20 +39,20 @@
|
|||||||
//
|
//
|
||||||
this.captchaPb.Location = new System.Drawing.Point(12, 12);
|
this.captchaPb.Location = new System.Drawing.Point(12, 12);
|
||||||
this.captchaPb.Name = "captchaPb";
|
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.TabIndex = 0;
|
||||||
this.captchaPb.TabStop = false;
|
this.captchaPb.TabStop = false;
|
||||||
//
|
//
|
||||||
// answerTb
|
// 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.Name = "answerTb";
|
||||||
this.answerTb.Size = new System.Drawing.Size(100, 20);
|
this.answerTb.Size = new System.Drawing.Size(94, 20);
|
||||||
this.answerTb.TabIndex = 1;
|
this.answerTb.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// submitBtn
|
// 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.Name = "submitBtn";
|
||||||
this.submitBtn.Size = new System.Drawing.Size(75, 23);
|
this.submitBtn.Size = new System.Drawing.Size(75, 23);
|
||||||
this.submitBtn.TabIndex = 2;
|
this.submitBtn.TabIndex = 2;
|
||||||
@ -62,7 +62,7 @@
|
|||||||
// answerLbl
|
// answerLbl
|
||||||
//
|
//
|
||||||
this.answerLbl.AutoSize = true;
|
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.Name = "answerLbl";
|
||||||
this.answerLbl.Size = new System.Drawing.Size(100, 13);
|
this.answerLbl.Size = new System.Drawing.Size(100, 13);
|
||||||
this.answerLbl.TabIndex = 0;
|
this.answerLbl.TabIndex = 0;
|
||||||
@ -73,7 +73,7 @@
|
|||||||
this.AcceptButton = this.submitBtn;
|
this.AcceptButton = this.submitBtn;
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
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.answerLbl);
|
||||||
this.Controls.Add(this.submitBtn);
|
this.Controls.Add(this.submitBtn);
|
||||||
this.Controls.Add(this.answerTb);
|
this.Controls.Add(this.answerTb);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user