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

# Line 211 | Line 211 | namespace RomCheater.Logging
211                  //txtLog.ScrollToCaret();
212                  //txtLog.Refresh();
213  
214 <                txtLog.SelectionStart = 0;
215 <                txtLog.ScrollToCaret();
216 <                txtLog.Refresh();
214 >                //txtLog.SelectionStart = 0;
215 >                //txtLog.ScrollToCaret();
216 >                //txtLog.Refresh();
217  
218 <                int last_line_position = -1;
219 <                int position = -1;
218 >                //int last_line_position = -1;
219 >                //int position = -1;
220                  int len = txtLog.Text.Length;
221 <                StringReader sr = new StringReader(this.StreamToString());
222 <                string line = "";
223 <                while ((line = sr.ReadLine()) != null)
224 <                {
225 <                    position += (line.Length * 2);
226 <                    last_line_position = (line.Length * 2);
227 <                    //if (line.EndsWith("/n"))
228 <                    //{
229 <                    //    position++;
230 <                    //}
231 <                    //logger.VerboseDebug.WriteLine("current line: {0}", line);
232 <                }
233 <                txtLog.SelectionStart = position;
221 >                //StringReader sr = new StringReader(this.StreamToString());
222 >                //string line = "";
223 >                //while ((line = sr.ReadLine()) != null)
224 >                //{
225 >                //    position += (line.Length * 2);
226 >                //    last_line_position = (line.Length * 2);
227 >                //    //if (line.EndsWith("/n"))
228 >                //    //{
229 >                //    //    position++;
230 >                //    //}
231 >                //    //logger.VerboseDebug.WriteLine("current line: {0}", line);
232 >                //}
233 >                txtLog.SelectionStart = len;
234                  txtLog.ScrollToCaret();
235                  txtLog.Refresh();
236                  //autoscroll_timer.Enabled = false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines