Code cleanup, removed a lot of FxCop messages and added some more disposing.

This commit is contained in:
RKrom 2014-06-15 11:45:01 +02:00
parent 49869a2630
commit 15253ef295
18 changed files with 119 additions and 335 deletions

View file

@ -114,7 +114,7 @@ namespace ExternalCommand {
} catch {
w32ex.Data.Add("commandline", config.commandlines[presetCommand]);
w32ex.Data.Add("arguments", config.arguments[presetCommand]);
throw w32ex;
throw;
}
} catch (Exception ex) {
ex.Data.Add("commandline", config.commandlines[presetCommand]);
@ -127,7 +127,7 @@ namespace ExternalCommand {
string commandline = config.commandlines[commando];
string arguments = config.arguments[commando];
output = null;
if (commandline != null && commandline.Length > 0) {
if (!string.IsNullOrEmpty(commandline)) {
using (Process p = new Process()) {
p.StartInfo.FileName = commandline;
p.StartInfo.Arguments = String.Format(arguments, fullPath);