ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.Logging/LogWriter.cs
(Generate patch)

Comparing trunk/RomCheater.Logging/LogWriter.cs (file contents):
Revision 245 by william, Sun Jun 3 14:50:09 2012 UTC vs.
Revision 246 by william, Sun Jun 3 15:15:51 2012 UTC

--- trunk/RomCheater.Logging/LogWriter.cs	2012/06/03 14:50:09	245
+++ trunk/RomCheater.Logging/LogWriter.cs	2012/06/03 15:15:51	246
@@ -211,26 +211,26 @@ namespace RomCheater.Logging
                 //txtLog.ScrollToCaret();
                 //txtLog.Refresh();
 
-                txtLog.SelectionStart = 0;
-                txtLog.ScrollToCaret();
-                txtLog.Refresh();
+                //txtLog.SelectionStart = 0;
+                //txtLog.ScrollToCaret();
+                //txtLog.Refresh();
 
-                int last_line_position = -1;
-                int position = -1;
+                //int last_line_position = -1;
+                //int position = -1;
                 int len = txtLog.Text.Length;
-                StringReader sr = new StringReader(this.StreamToString());
-                string line = "";
-                while ((line = sr.ReadLine()) != null)
-                {
-                    position += (line.Length * 2);
-                    last_line_position = (line.Length * 2);
-                    //if (line.EndsWith("/n"))
-                    //{
-                    //    position++;
-                    //}
-                    //logger.VerboseDebug.WriteLine("current line: {0}", line);
-                }
-                txtLog.SelectionStart = position;
+                //StringReader sr = new StringReader(this.StreamToString());
+                //string line = "";
+                //while ((line = sr.ReadLine()) != null)
+                //{
+                //    position += (line.Length * 2);
+                //    last_line_position = (line.Length * 2);
+                //    //if (line.EndsWith("/n"))
+                //    //{
+                //    //    position++;
+                //    //}
+                //    //logger.VerboseDebug.WriteLine("current line: {0}", line);
+                //}
+                txtLog.SelectionStart = len;
                 txtLog.ScrollToCaret();
                 txtLog.Refresh();
                 //autoscroll_timer.Enabled = false;