This commit is contained in:
Chenx221 2024-08-22 20:08:10 +08:00
parent ec4fd3eaa6
commit 8a6676062d
2 changed files with 11 additions and 0 deletions

2
OTP/Form1.Designer.cs generated
View File

@ -64,6 +64,7 @@
label1.TabIndex = 1; label1.TabIndex = 1;
label1.Text = "TOTP Code"; label1.Text = "TOTP Code";
label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
label1.Click += Label1_Click;
// //
// button1 // button1
// //
@ -160,6 +161,7 @@
label5.Size = new System.Drawing.Size(92, 20); label5.Size = new System.Drawing.Size(92, 20);
label5.TabIndex = 13; label5.TabIndex = 13;
label5.Text = "Next Code"; label5.Text = "Next Code";
label5.Click += Label5_Click;
// //
// Form1 // Form1
// //

View File

@ -216,5 +216,14 @@ namespace OTP
LoadTitlesToListBox(); 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);
}
} }
} }