Exemple #1
0
 void statusDisplay(string str)
 {
     if (this.InvokeRequired)
     {
         statusDisplay_Call d = new statusDisplay_Call(statusDisplay);
         this.BeginInvoke(d, new object[] { str });
     }
     else
     {
         try
         {
             statusSb.AppendFormat("{0}\r\n", str);
             if ((statusSb.Length) >= TB_Status.MaxLength)
             {
                 TB_Status.Clear();
                 statusSb.Clear();
                 statusSb.Length = 0;
                 statusSb.AppendFormat("{0}\r\n", str);
             }
             if (str == "clear")
             {
                 TB_Status.Clear();
                 statusSb.Clear();
                 statusSb.Length = 0;
             }
         }
         catch (Exception ex)
         {
         }
     }
 }
Exemple #2
0
 private void TB_Status_DoubleClick(object sender, EventArgs e)
 {
     TB_Status.Clear();
 }