Ejemplo n.º 1
0
        private void InitializeChatCore()
        {
            mChatModel = ChatService.CurrentChatModel.CreateTCPChat();
            mChatModel.PropertyChanged += (s, e) => RaisePropertyChanged(e.PropertyName);

            mChatModel.Connect();
            ResourcesService.Instance.Unloading += (s, e) => mChatModel.Disconnect();
        }
Ejemplo n.º 2
0
 private void Disconnect()
 {
     mChatModel.Disconnect();
     Navigator.Navigate(new StartupPage(),
                        new StartupPageViewModel());
 }