Пример #1
0
 public static CommandStatus RunScript(IWin32Window owner, IGitModule module, string scriptKey, IGitUICommands uiCommands, RevisionGridControl revisionGrid)
 {
     try
     {
         return(RunScript(owner, module, scriptKey, uiCommands, revisionGrid,
                          msg => MessageBox.Show(owner, msg, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Error)));
     }
     catch (Exception ex)
     {
         MessageBoxes.FailedToExecuteScript(owner, scriptKey, ex);
         return(new CommandStatus(false, false));
     }
 }