Closing button works now, forgot about that
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user