예제 #1
0
        static void Main()
        {
            ClerkOfficeManager man = new ClerkOfficeManager();

            man.ClerkRepository  = new ClerkRepository("clerks.xml");
            man.TicketRepository = new TicketRepository("tickets.xml");

            TcpServer tcpServer = new TcpServer();

            tcpServer.CommandService = new CommandService(man);
            tcpServer.Start();
        }
 public CommandService(ClerkOfficeManager manager)
 {
     this.manager = manager;
 }