コード例 #1
0
        private void ToolButtonClick(ToolEntry toolEntry)
        {
            if (string.IsNullOrEmpty(toolEntry.cmd))
            {
                //TODO TabIndex => To Enum
                OpenSettings(2);
                return;
            }

            if (CurrentLogWindow != null)
            {
                ILogLine     line = CurrentLogWindow.GetCurrentLine();
                ILogFileInfo info = CurrentLogWindow.GetCurrentFileInfo();
                if (line != null && info != null)
                {
                    ArgParser parser  = new ArgParser(toolEntry.args);
                    string    argLine = parser.BuildArgs(line, CurrentLogWindow.GetRealLineNum() + 1, info, this);
                    if (argLine != null)
                    {
                        StartTool(toolEntry.cmd, argLine, toolEntry.sysout, toolEntry.columnizerName,
                                  toolEntry.workingDir);
                    }
                }
            }
        }
コード例 #2
0
ファイル: ToolArgsDialog.cs プロジェクト: gspatace/logexpert
		private void testButton_Click(object sender, EventArgs e)
		{
			if (this.logTabWin.CurrentLogWindow != null)
			{
				string line = this.logTabWin.CurrentLogWindow.GetCurrentLine();
				ILogFileInfo info = this.logTabWin.CurrentLogWindow.GetCurrentFileInfo();
				if (line != null && info != null)
				{
					ArgParser parser = new ArgParser(this.argsTextBox.Text);
					string args = parser.BuildArgs(line, this.logTabWin.CurrentLogWindow.GetRealLineNum() + 1, info, this);
					this.testResultLabel.Text = args;
				}
			}
		}
コード例 #3
0
 private void testButton_Click(object sender, EventArgs e)
 {
     if (this.logTabWin.CurrentLogWindow != null)
     {
         string       line = this.logTabWin.CurrentLogWindow.GetCurrentLine();
         ILogFileInfo info = this.logTabWin.CurrentLogWindow.GetCurrentFileInfo();
         if (line != null && info != null)
         {
             ArgParser parser = new ArgParser(this.argsTextBox.Text);
             string    args   = parser.BuildArgs(line, this.logTabWin.CurrentLogWindow.GetRealLineNum() + 1, info, this);
             this.testResultLabel.Text = args;
         }
     }
 }