From 8a6676062db3acf39c287fae212f522cff6ec0b1 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Thu, 22 Aug 2024 20:08:10 +0800 Subject: [PATCH] up --- OTP/Form1.Designer.cs | 2 ++ OTP/Form1.cs | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/OTP/Form1.Designer.cs b/OTP/Form1.Designer.cs index ed88346..a930aa6 100644 --- a/OTP/Form1.Designer.cs +++ b/OTP/Form1.Designer.cs @@ -64,6 +64,7 @@ label1.TabIndex = 1; label1.Text = "TOTP Code"; label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + label1.Click += Label1_Click; // // button1 // @@ -160,6 +161,7 @@ label5.Size = new System.Drawing.Size(92, 20); label5.TabIndex = 13; label5.Text = "Next Code"; + label5.Click += Label5_Click; // // Form1 // diff --git a/OTP/Form1.cs b/OTP/Form1.cs index 1c9b9f7..dd9c3df 100644 --- a/OTP/Form1.cs +++ b/OTP/Form1.cs @@ -216,5 +216,14 @@ namespace OTP LoadTitlesToListBox(); } + private void Label1_Click(object sender, EventArgs e) + { + Clipboard.SetText(label1.Text); + } + + private void Label5_Click(object sender, EventArgs e) + { + Clipboard.SetText(label5.Text); + } } }