ClearDelegate() no longer neccesary
This commit is contained in:
@@ -21,26 +21,10 @@ namespace Password_Manager
|
|||||||
{
|
{
|
||||||
ProcessFailed?.Invoke(e);
|
ProcessFailed?.Invoke(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
ClearDelegate()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public string? GetOutput(string procName, string args)
|
public string? GetOutput(string procName, string args)
|
||||||
{
|
{
|
||||||
ProcessFinished -= p;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (ProcessFailed != null)
|
|
||||||
{
|
|
||||||
foreach (ProcessFailure p in ProcessFailed)
|
|
||||||
{
|
|
||||||
ProcessFailed -= p;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string? GetOutput(string procName, string args)
|
|
||||||
{
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Process proc = new Process()
|
Process proc = new Process()
|
||||||
@@ -71,8 +55,6 @@ namespace Password_Manager
|
|||||||
ProcessFailed.Invoke(e);
|
ProcessFailed.Invoke(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
ClearDelegate();
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user