-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.cs
35 lines (30 loc) · 909 Bytes
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using SimpleSecUtility.Frontend;
namespace SimpleSecUtility
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
private void MainForm_Load(object sender, EventArgs e)
{
AcceptButton = PassPinButton;
toolTip = new ToolTip();
toolTip.SetToolTip(PassPinButton, "Generate a Secure Password or PIN");
}
private void PassPinButton_Click(object sender, EventArgs e)
{
Hide();
GeneratorForm passPinGeneratorForm = new();
passPinGeneratorForm.ShowDialog();
passPinGeneratorForm.WindowState = FormWindowState.Normal;
if (!passPinGeneratorForm.Visible)
{
Show();
WindowState = FormWindowState.Normal;
Focus();
}
}
}
}