Skip to content

Commit

Permalink
Remove rtbConsole
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatNerdUKnow committed Sep 27, 2020
1 parent 24763a3 commit 2be41dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 31 deletions.
23 changes: 3 additions & 20 deletions vmaf-gui/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 5 additions & 11 deletions vmaf-gui/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ string ChildProcess(string program_name, string args, bool show)
var p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = !show;
p.StartInfo.FileName = program_name;
p.StartInfo.Arguments = args;
Expand All @@ -40,7 +39,7 @@ string ChildProcess(string program_name, string args, bool show)
// p.standardoutput is an input stream
//string output = p.StandardOutput.ReadToEnd();
string output = "";


/*
while ((line = p.StandardOutput.ReadLine()) != null)
Expand All @@ -50,17 +49,12 @@ string ChildProcess(string program_name, string args, bool show)
}*/
//rtbConsole.Text += output;


while (!p.HasExited)
{
rtbConsole.Text += "\n\n" + program_name + " " + args + "\n";
rtbConsole.Text += p.StandardOutput.ReadToEnd();
prgProgress.PerformStep();
System.Windows.Forms.Application.DoEvents();

}
// p.WaitForExit();
Console.WriteLine(program_name);
Console.WriteLine(args);

p.WaitForExit();
prgProgress.PerformStep();
return output;
}

Expand Down

0 comments on commit 2be41dd

Please sign in to comment.