Exemplo n.º 1
0
		private async void OnSelectActiveChat(object roomArg)
		{
			var activeChat = roomArg as ActiveChatViewModel;
			if (activeChat == null)
			{
				throw new Exception ("Selected item was not an active chat");
			}
			var model = new ChatViewModel (_appManager, activeChat.RoomData);
			await model.ShowAsync ();
		}
Exemplo n.º 2
0
		private async void OnSelectRoom(object roomArg)
		{
			var room = roomArg as Room;
			if (room == null)
			{
				throw new Exception ("Selected item was not a room");
			}
			var roomData = await _appManager.ChatManager.JoinPublicRoom (room);
			var model = new ChatViewModel (_appManager, roomData);
			await model.ShowAsync ();
		}
		private async void OnSelectChat()
		{
			IsBusy = true;
			var roomData = await _appManager.ChatManager.RequestUserChat (UserId);
			IsBusy = false;

			//Go to the root and open the chat window
			await this.PopToRootAsync ();
			var model = new ChatViewModel (_appManager, roomData);
			await model.ShowAsync ();
		}