+ /// <summary>\r
+ /// Display the log header\r
+ /// </summary>\r
+ private void PrintLogHeader()\r
+ {\r
+ try\r
+ {\r
+ if (IsHandleCreated)\r
+ {\r
+ if (rtf_actLog.InvokeRequired)\r
+ {\r
+ IAsyncResult invoked = BeginInvoke(new SetTextClearCallback(PrintLogHeader));\r
+ EndInvoke(invoked);\r
+ }\r
+ else\r
+ {\r
+ lock (rtf_actLog)\r
+ {\r
+ // Print the log header. This function will be re-implimented later. Do not delete.\r
+ StringBuilder header = new StringBuilder();\r
+\r
+ header.Append(String.Format("### Windows GUI {1} {0} \n", Properties.Settings.Default.hb_build, Properties.Settings.Default.hb_version));\r
+ header.Append(String.Format("### Running: {0} \n###\n", Environment.OSVersion));\r
+ header.Append(String.Format("### CPU: {0} \n", SystemInfo.GetCpuCount));\r
+ header.Append(String.Format("### Ram: {0} MB \n", SystemInfo.TotalPhysicalMemory));\r
+ header.Append(String.Format("### Screen: {0}x{1} \n", SystemInfo.ScreenBounds.Bounds.Width, SystemInfo.ScreenBounds.Bounds.Height));\r
+ header.Append(String.Format("### Temp Dir: {0} \n", Path.GetTempPath()));\r
+ header.Append(String.Format("### Install Dir: {0} \n", Application.StartupPath));\r
+ header.Append(String.Format("### Data Dir: {0} \n", Application.UserAppDataPath));\r
+ header.Append("#########################################\n\n");\r
+\r
+ rtf_actLog.AppendText(header.ToString());\r
+ }\r
+ }\r
+ }\r