예제 #1
0
 public void RemoveList(string id)
 {
     if (this.rtb_Server.InvokeRequired)
     {
         DelegateStringFun d = new DelegateStringFun(RemoveList);
         this.Invoke(d, new object[] { id });
     }
     else
     {
         lis_sessions.Items.Remove(id);
     }
 }
예제 #2
0
 public void Log(string log)
 {
     if (this.rtb_Server.InvokeRequired)
     {
         DelegateStringFun d = new DelegateStringFun(Log);
         this.Invoke(d, new object[] { log });
     }
     else
     {
         text            = text + log.Replace("\0", "") + "\n";
         rtb_Server.Text = text;
     }
 }