diff --git a/OTP/Form4.Designer.cs b/OTP/Form4.Designer.cs deleted file mode 100644 index 4006ef5..0000000 --- a/OTP/Form4.Designer.cs +++ /dev/null @@ -1,73 +0,0 @@ -namespace OTP -{ - partial class Form4 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.button1 = new System.Windows.Forms.Button(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.SuspendLayout(); - // - // button1 - // - this.button1.Location = new System.Drawing.Point(713, 160); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 0; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // pictureBox1 - // - this.pictureBox1.Location = new System.Drawing.Point(12, 12); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(695, 426); - this.pictureBox1.TabIndex = 1; - this.pictureBox1.TabStop = false; - // - // Form4 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Controls.Add(this.pictureBox1); - this.Controls.Add(this.button1); - this.Name = "Form4"; - this.Text = "Form4"; - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Button button1; - private System.Windows.Forms.PictureBox pictureBox1; - } -} \ No newline at end of file diff --git a/OTP/Form4.cs b/OTP/Form4.cs deleted file mode 100644 index 100b76c..0000000 --- a/OTP/Form4.cs +++ /dev/null @@ -1,31 +0,0 @@ -using ScreenCapturerNS; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace OTP -{ - public partial class Form4 : Form - { - public Form4() - { - InitializeComponent(); - } - - private void button1_Click(object sender, EventArgs e) - { - ScreenCapturer.StartCapture((Bitmap bitmap) => { - // 处理截图 (bitmap) 这里 - // 例如,你可以将截图显示在某个 PictureBox 控件中 - pictureBox1.Image = bitmap; - ScreenCapturer.StopCapture(); - }); - } - } -} diff --git a/OTP/Form4.resx b/OTP/Form4.resx deleted file mode 100644 index 1af7de1..0000000 --- a/OTP/Form4.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/OTP/OTP.csproj b/OTP/OTP.csproj index 584983f..dae8ba7 100644 --- a/OTP/OTP.csproj +++ b/OTP/OTP.csproj @@ -127,12 +127,6 @@ Form3.cs - - Form - - - Form4.cs - @@ -144,9 +138,6 @@ Form3.cs - - Form4.cs - ResXFileCodeGenerator Resources.Designer.cs diff --git a/OTP/key.db b/OTP/key.db deleted file mode 100644 index e4fbb03..0000000 Binary files a/OTP/key.db and /dev/null differ