代理版本调试

This commit is contained in:
wule_5900x committed 2026-07-05 22:53:54 +08:00
1 parent 0b325e7cd8
commit 8ff2508632
36 files changed
+1049 -342

No files matched your search

+14 -1
View File
@@ -31,6 +31,7 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CefForm));
this.btnChangeBuyer = new DevComponents.DotNetBar.PanelEx();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.txtUrl = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.SuspendLayout();
@@ -72,14 +73,24 @@
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.txtUrl);
this.splitContainer1.Panel1.Controls.Add(this.btnChangeBuyer);
this.splitContainer1.Size = new System.Drawing.Size(1278, 686);
this.splitContainer1.SplitterDistance = 26;
this.splitContainer1.TabIndex = 432;
//
// txtUrl
//
this.txtUrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtUrl.Location = new System.Drawing.Point(5, 3);
this.txtUrl.Name = "txtUrl";
this.txtUrl.Size = new System.Drawing.Size(1270, 21);
this.txtUrl.TabIndex = 435;
this.txtUrl.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtUrl_KeyDown);
//
// CefForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1280, 720);
this.Controls.Add(this.splitContainer1);
@@ -91,6 +102,7 @@
this.Load += new System.EventHandler(this.CefForm_Load);
this.Controls.SetChildIndex(this.splitContainer1, 0);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.ResumeLayout(false);
@@ -101,5 +113,6 @@
private DevComponents.DotNetBar.PanelEx btnChangeBuyer;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.TextBox txtUrl;
}
}
+16 -1
View File
@@ -45,7 +45,8 @@ namespace TemuKJD.ToolForms
private void CefForm_Load(object sender, EventArgs e)
{
this.StartPosition = FormStartPosition.CenterScreen;
this.splitContainer1.Panel1Collapsed = true;
btnChangeBuyer.Visible = false;
//this.splitContainer1.Panel1Collapsed = true;
if (string.IsNullOrEmpty(Url))
{
@@ -163,6 +164,9 @@ namespace TemuKJD.ToolForms
}
});
}
Invoke(new Action(() => { this.txtUrl.Text = e.Url; }));
}
private void LifeHandler_OnPop(object sender, PopData e)
@@ -192,5 +196,16 @@ namespace TemuKJD.ToolForms
this.cefWebBrowser.Reload();
}
}
private void txtUrl_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
if (cefWebBrowser != null)
{
cefWebBrowser.Load(txtUrl.Text);
}
}
}
}
}