refactored TryStart

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1273 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2009-05-14 08:38:21 +00:00
parent 26661fc9f5
commit e3d4320a3b
3 changed files with 25 additions and 39 deletions
+13
View File
@@ -673,6 +673,19 @@ namespace ProcessHacker
}
}
public static void TryStart(string command)
{
try
{
System.Diagnostics.Process.Start(command);
}
catch (Exception ex)
{
MessageBox.Show("Could not start process:\n\n" + ex.Message, "Process Hacker", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
private static Dictionary<string, string> ParseArgs(string[] args)
{
Dictionary<string, string> dict = new Dictionary<string, string>();