Example #1
0
 public ChatBot(string name, int count, int delay, SendHere send)
 {
     __lockObj  = new object();
     rng        = new Random(name.GetHashCode());
     color      = Color.FromArgb(rng.Next(0, 256), rng.Next(0, 256), rng.Next(0, 256));
     this.name  = name;
     this.count = count;
     this.delay = delay;
     this.send  = send;
 }
Example #2
0
 // private Thread thread2 = null;
 public Chat()
 {
     InitializeComponent();
     send = receiveMessage;
 }