/[RomCheater]/trunk/RomCheater.Logging/LogWriter.cs
ViewVC logotype

Diff of /trunk/RomCheater.Logging/LogWriter.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.Logging/LogWriter.cs	2014/04/07 12:16:42	800
+++ trunk/RomCheater.Logging/LogWriter.cs	2014/04/07 12:17:38	801
@@ -214,62 +214,15 @@
         }
         #endregion
 
-        private void autoscroll_timer_Tick(object sender, EventArgs e)
-        {           
-            //try
-            //{
-            //    if (this.DesignMode) { return; }
-            //    AUTO_SCROLL = true;
-            //    ////txtLog.ScrollToEnd();
-            //    //txtLog.SelectionStart = txtLog.Text.Length - 100;
-            //    //txtLog.ScrollToCaret();
-            //    //txtLog.Refresh();
-
-            //    //txtLog.SelectionStart = 0;
-            //    //txtLog.ScrollToCaret();
-            //    //txtLog.Refresh();
-
-            //    //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 = len;
-            //    txtLog.ScrollToCaret();
-            //    txtLog.Refresh();
-            //    //autoscroll_timer.Enabled = false;
-            //    FIRST_LOAD = false;
-            //}
-            //catch { }
-
-        }
-
         private void logupdater_DoWork(object sender, DoWorkEventArgs e)
         {
             string message = e.Argument.ToString();
             SetLogText(string.Format("{0}", message));
         }
 
-        private void logupdater_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
-        {
-
-        }
+        private void logupdater_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { }
 
-        private void LogWriter_Load(object sender, EventArgs e)
-        {
-            //txtLog.SelectionStart = 0;
-            //txtLog.ScrollToCaret();
-        }
+        private void LogWriter_Load(object sender, EventArgs e) { }
 
         private void chkAutoScroll_CheckedChanged(object sender, EventArgs e)
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22