GSDumpGUI : Added the "clear log on start" and the "select the last line of the log whenever new data arrive".

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2664 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
feal87 2010-03-04 12:12:55 +00:00
parent fe915cfa67
commit a964bc907f
1 changed files with 6 additions and 1 deletions

View File

@ -131,6 +131,7 @@ namespace GSDumpGUI
private void ExecuteFunction(String Function)
{
txtLog.Text = "";
String GSDXName = lstGSDX.SelectedItem.ToString().Split(new char[] { '|' })[0];
CreateDirs(GSDXName);
@ -188,7 +189,11 @@ namespace GSDumpGUI
void p_OutputDataReceived(object sender, DataReceivedEventArgs e)
{
// Write the log.
txtLog.Invoke(new Action<object>(delegate(object o) { txtLog.Text += e.Data + Environment.NewLine; }), new object[] { null });
txtLog.Invoke(new Action<object>(delegate(object o)
{
txtLog.Text += e.Data + Environment.NewLine;
txtLog.SelectionStart = txtLog.Text.Length - 1;
}), new object[] { null });
}
private void cmdConfigGSDX_Click(object sender, EventArgs e)