Наследование: IVSPCMessageHandler
Пример #1
0
        public MainWindow(MessageBroker broker)
        {
            this.broker = broker;
            broker.Subscribe(this, typeof(FlightsimConnectedMessage));
            broker.Subscribe(this, typeof(FSDConnectedMessage));
            broker.Subscribe(this, typeof(CommErrorMessage));
            broker.Subscribe(this, typeof(SimCommErrorMessage));
            broker.Subscribe(this, typeof(FSDDisconnectedMessage));
            broker.Subscribe(this, typeof(FlightsimDisconnectedMessage));

            textMessageHandler = new TextMessageHandler(this);
            broker.Subscribe(textMessageHandler, typeof (TextMessageSend));
            broker.Subscribe(textMessageHandler, typeof (TextMessageReceive));
            InitializeComponent();
        }
Пример #2
0
        public MainWindow(MessageBroker broker)
        {
            this.broker = broker;
            broker.Subscribe(this, typeof(FlightsimConnectedMessage));
            broker.Subscribe(this, typeof(FSDConnectedMessage));
            broker.Subscribe(this, typeof(CommErrorMessage));
            broker.Subscribe(this, typeof(SimCommErrorMessage));
            broker.Subscribe(this, typeof(FSDDisconnectedMessage));
            broker.Subscribe(this, typeof(FlightsimDisconnectedMessage));

            textMessageHandler = new TextMessageHandler(this);
            broker.Subscribe(textMessageHandler, typeof(TextMessageSend));
            broker.Subscribe(textMessageHandler, typeof(TextMessageReceive));
            InitializeComponent();
        }