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; }
// private Thread thread2 = null; public Chat() { InitializeComponent(); send = receiveMessage; }