public void SetItemSource(KnowledgeSystemDiagramEntity knowledgeSystemDiagramEntity)
        {
            if (knowledgeSystemDiagramEntity == default(KnowledgeSystemDiagramEntity))
                return;

            this.SetDataContext(knowledgeSystemDiagramEntity);

            var collectionViewSource = this.PrepareGroupedData();

            if (this.TimeLineDetailView != default(ListView) && TimeLineTitleView != default(GridView))
            {
                this.TimeLineDetailView.ItemsSource = collectionViewSource.View;
                this.TimeLineTitleView.ItemsSource = collectionViewSource.View.CollectionGroups;
            }
        }
 public void SetDataContext(KnowledgeSystemDiagramEntity knowledgeSystemDiagramEntity)
 {
     this.DataContext = this.KnowledgeSystemDiagramEntity = knowledgeSystemDiagramEntity;
 }