public static void Main() { Console.OutputEncoding = System.Text.Encoding.Default; Worker1 w1 = new Worker1(); Worker2 w2 = new Worker2(); Worker3 w3 = new Worker3(); Manager manager = new Manager(w1, w2, w3); manager.Start(); manager.Finish(); // Wait for user Console.Read(); }
public Manager(Worker1 w1, Worker2 w2, Worker3 w3) { worker1 = w1; worker2 = w2; worker3 = w3; }