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