public void Initialize()
 {
     cl            = new ClientLogic();
     _commHandler  = new ClientCommunicationHandler("localhost");
     _eventHandler = new ClientEventHandler(_commHandler);
     _eventHandler.Init(cl);
     cl.Init(_eventHandler, _commHandler);
 }
示例#2
0
        public WellcomeScreen()
        {
            InitializeComponent();
            cl            = new ClientLogic();
            _commHandler  = new ClientCommunicationHandler("192.168.43.4");
            _eventHandler = new ClientEventHandler(_commHandler);
            _eventHandler.Init(cl);
            cl.Init(_eventHandler, _commHandler);
            //_commHandler.Connect();
            Task commTask = Task.Factory.StartNew(_commHandler.Start);

            _eventHandler.Start();
            //commTask.Wait();
        }