Closing button works now, forgot about that

This commit is contained in:
2023-03-28 13:10:57 +02:00
parent edd573546b
commit a799470f6a
2 changed files with 19 additions and 13 deletions

View File

@@ -5,14 +5,14 @@ namespace Password_Manager
public partial class GeneratePassword : Form
{
private string currentPath;
private string recipient;
private string recipient;
public GeneratePassword(string name, string currentPath, string recipient)
{
InitializeComponent();
passwordName.Text = name;
this.currentPath = currentPath;
this.recipient = recipient;
this.recipient = recipient;
}
public void Generate(object sender, EventArgs e)
@@ -29,7 +29,7 @@ namespace Password_Manager
File.WriteAllText(
currentPath + $"\\{passwordName.Text}.gpg",
PasswordGenerator.New(
recipient,
recipient,
Convert.ToInt32(passwordLength.Text),
noSymbols.Checked)
);
@@ -44,5 +44,10 @@ namespace Password_Manager
}
}
}
private void cancel_Click(object sender, EventArgs e)
{
Close();
}
}
}