Former-commit-id: b5687cef71d79381053cfadcf0e1e7a589bc833f
TangShanKaiPing
wanggang 5 years ago
parent 91e539564c
commit 773297770b

@ -91,7 +91,7 @@ namespace CameraCard
var client = HttpClientFactory.Create();
var content = new StringContent(new JavaScriptSerializer().Serialize(new { userName = userName, password = password }), Encoding.UTF8, "application/json");
var response = client.PostAsync(url, content).Result;
this._progress?.SetProgress("正在登录,请稍候", 60);
this._progress?.SetProgress("正在登录,请稍候", 50);
if (response.StatusCode == HttpStatusCode.OK)
{
var result = new JavaScriptSerializer().Deserialize<LoginResponse>(response.Content.ReadAsStringAsync().Result);

@ -409,7 +409,7 @@
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed);
this.Load += new System.EventHandler(this.MainFrom_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.shotBtn_Click);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyDown);
tab1.ResumeLayout(false);
this.idcGroupBox.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);

@ -274,6 +274,14 @@ namespace CameraCard
Process.Start(info);
}
private void MainForm_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Space)
{
this.shotBtn_Click(sender, e);
}
}
//closeing
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
{

Loading…
Cancel
Save