Subscribing MessageBox to event
This commit is contained in:
@@ -27,6 +27,7 @@ public partial class GeneratePassword : Form
|
||||
{
|
||||
try
|
||||
{
|
||||
PasswordGenerator.ExceptionOccured += (e) => MessageBox.Show(e.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
string filePath = $"{currentPath}\\{passwordName.Text}";
|
||||
File.WriteAllText(
|
||||
currentPath + $"\\{passwordName.Text}.gpg",
|
||||
|
||||
Reference in New Issue
Block a user