private void InitializeChatCore() { mChatModel = ChatService.CurrentChatModel.CreateTCPChat(); mChatModel.PropertyChanged += (s, e) => RaisePropertyChanged(e.PropertyName); mChatModel.Connect(); ResourcesService.Instance.Unloading += (s, e) => mChatModel.Disconnect(); }
private void Disconnect() { mChatModel.Disconnect(); Navigator.Navigate(new StartupPage(), new StartupPageViewModel()); }