Beispiel #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var view = new MainView();
            _chatViewModel = new ChatViewModel();
            view.DataContext = _chatViewModel;

            view.Show();
            _chatViewModel.IsReady = true;
        }
Beispiel #2
0
        public MeshLogic(ChatViewModel chatViewModel)
        {
            ChatViewModel = chatViewModel;

            Self.Chatter = ChatViewModel.Self;

            startupWorker.DoWork += startupWorkerDoWork;
            startupWorker.RunWorkerCompleted += startupWorkerCompleted;

            discoveryWorker.DoWork += discoveryWorkerDoWork;
            discoveryWorker.RunWorkerCompleted += discoveryWorkerCompleted;

            registrationRespondWorker.DoWork += registrationRespondWorkerDoWork;

            publicMessageSender.DoWork += sendPublicMessage;
        }