Beispiel #1
0
        public static void StartExecution(object sender, StartExecutionEventArgs e)
        {
            MonadCommand  monadCommand  = sender as MonadCommand;
            StringBuilder stringBuilder = new StringBuilder();

            if (e.Pipeline != null)
            {
                int num = 0;
                foreach (object value in e.Pipeline)
                {
                    if (num != 0)
                    {
                        stringBuilder.Append(",");
                    }
                    num++;
                    stringBuilder.Append(MonadCommand.FormatParameterValue(value));
                }
                if (stringBuilder.Length > 0)
                {
                    stringBuilder.Append(" | ");
                }
            }
            stringBuilder.Append(monadCommand.ToString());
            CommandLoggingDialog.LogStart(e.Guid, (DateTime)ExDateTime.Now, stringBuilder.ToString());
        }
Beispiel #2
0
 public static Command GetCommandLoggingCommand()
 {
     if (CommandLoggingDialog.viewCommandLoggingCommand == null)
     {
         CommandLoggingDialog.viewCommandLoggingCommand          = new Command();
         CommandLoggingDialog.viewCommandLoggingCommand.Name     = "viewCommandLoggingCommand";
         CommandLoggingDialog.viewCommandLoggingCommand.Text     = Strings.ViewCommandLOgging;
         CommandLoggingDialog.viewCommandLoggingCommand.Execute += delegate(object param0, EventArgs param1)
         {
             CommandLoggingDialog.ShowCommandLoggingDialog();
         };
     }
     return(CommandLoggingDialog.viewCommandLoggingCommand);
 }
 protected DataListViewResultPane(ResultsLoaderProfile profile, DataTableLoader loader) : base(profile, loader)
 {
     this.listContextMenu                      = base.ContextMenu;
     base.ContextMenu                          = null;
     base.Name                                 = "DataListViewResultPane";
     this.saveDefaultFilterCommand             = new Command();
     this.saveDefaultFilterCommand.Description = LocalizedString.Empty;
     this.saveDefaultFilterCommand.Name        = "commandSaveFilter";
     this.saveDefaultFilterCommand.Text        = Strings.SaveAsDefaultFilterCommandText;
     this.saveDefaultFilterCommand.Execute    += this.saveDefaultFilterCommand_Execute;
     base.ViewModeCommands.AddRange(new Command[]
     {
         CommandLoggingDialog.GetCommandLoggingCommand(),
         Command.CreateSeparator()
     });
     base.ViewModeCommands.Add(Theme.VisualEffectsCommands);
 }
Beispiel #4
0
 public static void EndExecution(object sender, RunGuidEventArgs e)
 {
     CommandLoggingDialog.LogEnd(e.Guid, (DateTime)ExDateTime.Now);
 }
Beispiel #5
0
 public static void WarningReport(object sender, WarningReportEventArgs e)
 {
     CommandLoggingDialog.LogWarning(e.Guid, e.WarningMessage);
 }
Beispiel #6
0
 public static void ErrorReport(object sender, ErrorReportEventArgs e)
 {
     CommandLoggingDialog.LogError(e.Guid, e.ErrorRecord.Exception.Message);
 }