--- 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;