/// <summary> /// Opens match profile and forces to download additional data /// </summary> /// <param name="item"></param> private void OpenMatchProfile(ISerializableItem item) { var obj = new PassAroundItem(); obj.Item = item; obj.DirPath = GetSourceFolder(item); Messenger.Default.Send(obj, MessengerToken.ShowMatchProfile); }
private void OpenChat(MatchModel item) { var obj = new PassAroundItem(); obj.Item = item; obj.DirPath = GetSourceFolder(item); Messenger.Default.Send(obj, MessengerToken.NewChatWindow); // Adding match to UpdateMatches list is the least complex way to force serialization // when user sends messages if (!UpdatedMatches.Contains(item)) { UpdatedMatches.Add(item); } }
private void CreateMatchProfileView(PassAroundItem obj) { var matchProfileWindow = new MatchProfileView(obj.Item, obj.DirPath); matchProfileWindow.Show(); }
private void CreateChatWindow(PassAroundItem obj) { var chatWindow = new ChatView((MatchModel)obj.Item, obj.DirPath); chatWindow.Show(); }