Example #1
0
        /// <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);
        }
Example #2
0
        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);
            }
        }
Example #3
0
        private void CreateMatchProfileView(PassAroundItem obj)
        {
            var matchProfileWindow = new MatchProfileView(obj.Item, obj.DirPath);

            matchProfileWindow.Show();
        }
Example #4
0
        private void CreateChatWindow(PassAroundItem obj)
        {
            var chatWindow = new ChatView((MatchModel)obj.Item, obj.DirPath);

            chatWindow.Show();
        }