Ejemplo n.º 1
0
        public static void Main()
        {
            settings = new Settings();

            InitialPanel iPanel = new InitialPanel();

            Application.EnableVisualStyles();
            Application.Run(iPanel);
            VisualThread vThread       = new VisualThread();
            Thread       graphicThread = new Thread(vThread.StartThread);

            graphicThread.Start();
            dataSaver = new DataSaver();
            Recognizer recognizer = new Recognizer(vThread);

            packetBuffer = new PacketBuffer(vThread, recognizer, dataSaver);
            recognizer.SetPacketBuffer(PacketBuffer);
            Listener  listener = new Listener(PacketBuffer);
            TcpClient client   = listener.Connection();

            listener.StreamRead(client);
        }
Ejemplo n.º 2
0
 public PacketBuffer(VisualThread vThread, Recognizer recognizer, DataSaver dataSaver)
 {
     this.vThread    = vThread;
     this.recognizer = recognizer;
     this.dataSaver  = dataSaver;
 }