summaryrefslogtreecommitdiffstats
path: root/win/C#/frmActivityWindow.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-07-17 22:25:01 +0000
committersr55 <[email protected]>2010-07-17 22:25:01 +0000
commit561aa6ec3b4f018a4e76d1a57c7ffd6f0e7ded70 (patch)
treeb320ca795db14f25259c8d01f5f03222b25a8db6 /win/C#/frmActivityWindow.cs
parent4cacc7fd60440725739f4560f14eadf40e335890 (diff)
WinGui:
- Some tweaks to the Logging code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3445 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmActivityWindow.cs')
-rw-r--r--win/C#/frmActivityWindow.cs46
1 files changed, 0 insertions, 46 deletions
diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs
index d890a7834..62799e926 100644
--- a/win/C#/frmActivityWindow.cs
+++ b/win/C#/frmActivityWindow.cs
@@ -12,7 +12,6 @@ namespace Handbrake
using System.Text;
using System.Threading;
using System.Windows.Forms;
- using Functions;
using HandBrake.ApplicationServices.Services.Interfaces;
@@ -231,7 +230,6 @@ namespace Handbrake
appendText.AppendFormat("Waiting for the log to be generated ...\n");
position = 0;
ClearWindowText();
- PrintLogHeader();
return appendText;
}
@@ -247,7 +245,6 @@ namespace Handbrake
appendText.AppendFormat("Waiting for the log to be generated ...\n");
position = 0;
ClearWindowText();
- PrintLogHeader();
return appendText;
}
@@ -343,48 +340,6 @@ namespace Handbrake
}
/// <summary>
- /// Display the log header
- /// </summary>
- private void PrintLogHeader()
- {
- try
- {
- if (IsHandleCreated)
- {
- if (rtf_actLog.InvokeRequired)
- {
- IAsyncResult invoked = BeginInvoke(new SetTextClearCallback(PrintLogHeader));
- EndInvoke(invoked);
- }
- else
- {
- lock (rtf_actLog)
- {
- // Print the log header. This function will be re-implimented later. Do not delete.
- StringBuilder header = new StringBuilder();
-
- header.Append(String.Format("### Windows GUI {1} {0} \n", Properties.Settings.Default.hb_build, Properties.Settings.Default.hb_version));
- header.Append(String.Format("### Running: {0} \n###\n", Environment.OSVersion));
- header.Append(String.Format("### CPU: {0} \n", SystemInfo.GetCpuCount));
- header.Append(String.Format("### Ram: {0} MB \n", SystemInfo.TotalPhysicalMemory));
- header.Append(String.Format("### Screen: {0}x{1} \n", SystemInfo.ScreenBounds.Bounds.Width, SystemInfo.ScreenBounds.Bounds.Height));
- header.Append(String.Format("### Temp Dir: {0} \n", Path.GetTempPath()));
- header.Append(String.Format("### Install Dir: {0} \n", Application.StartupPath));
- header.Append(String.Format("### Data Dir: {0} \n", Application.UserAppDataPath));
- header.Append("#########################################\n\n");
-
- rtf_actLog.AppendText(header.ToString());
- }
- }
- }
- }
- catch (Exception)
- {
- return;
- }
- }
-
- /// <summary>
/// Reset Everything
/// </summary>
private void Reset()
@@ -393,7 +348,6 @@ namespace Handbrake
windowTimer.Dispose();
position = 0;
ClearWindowText();
- PrintLogHeader();
windowTimer = new Timer(new TimerCallback(LogMonitor), null, 1000, 1000);
}