private void OnTopicAdded(object sender, AddTopicEventArgs e)
        {
            FlickrGroup group = Cinderella.CinderellaCore.GroupCache[e.GroupId];

            JObject rawJson = JObject.Parse(e.Response);
            string newTopicId = rawJson["topic"]["id"].ToString();

            Topic newTopic = new Topic();
            newTopic.ResourceId = newTopicId;
            newTopic.Subject = e.Subject;
            newTopic.Message = e.Message;
            newTopic.Author = CurrentUser;
            newTopic.CreationDate = DateTime.Now;

            group.TopicCache[newTopicId] = newTopic;
            group.Topics.Insert(0, newTopic);
            group.TopicCount++;

            AddTopicCompleteEventArgs evt = new AddTopicCompleteEventArgs();
            evt.SessionId = e.SessionId;
            evt.GroupId = group.ResourceId;
            evt.newTopic = newTopic;
            AddTopicCompleted.DispatchEvent(this, evt);
        }
        private void OnAddTopicComplete(object sender, AddTopicCompleteEventArgs e)
        {
            if (composer == null || e.SessionId != addTopicSessionId)
                return;

            Dispatcher.BeginInvoke(() =>
            {
                ApplicationBar.IsVisible = true;
                DismissComposerView();
            });
        }
        private void OnAddTopicComplete(object sender, AddTopicCompleteEventArgs e)
        {
            Dispatcher.BeginInvoke(() =>
            {
                if (GroupSource.ResourceId != e.GroupId)
                    return;

                StatusLabel.Visibility = Visibility.Collapsed;
                TopicListView.Visibility = Visibility.Visible;

                TopicCollection.Insert(0, e.newTopic);
            });
        }