Exemplo n.º 1
0
        /// <summary>
        /// Load Relation data
        /// </summary>
        private void LoadRelations()
        {
            var relations = VndbDataHelper.LoadRelations();

            VnRelations.AddRange(relations);
            RelationsDataVisibility = VnRelations.Count < 1 ? Visibility.Collapsed : Visibility.Visible;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Loads main data when the VnInfo view shows up
        /// </summary>
        protected override void OnViewLoaded()
        {
            LanguageCollection.Clear();
            TagCollection.Clear();
            VnRelations.Clear();

            VndbLink = new Tuple <string, Visibility>(string.Empty, Visibility.Visible);
            WikiLink = new Tuple <string, Visibility>(string.Empty, Visibility.Collapsed);
            LoadMainData();
            LoadUserData();
            LoadRelations();
            LoadLinks();

            TagCollection.AddRange(VndbTagTraitHelper.GetTags(VndbContentViewModel.VnId));
            SummaryHeaderVisibility  = DescriptionInLine.Length < 1 ? Visibility.Collapsed : Visibility.Visible;
            TagHeaderVisibility      = TagCollection.Count < 1 ? Visibility.Collapsed : Visibility.Visible;
            RelationHeaderVisibility = VnRelations.Count < 1 ? Visibility.Collapsed : Visibility.Visible;
            RelationsDataVisibility  = VnRelations.Count < 1 ? Visibility.Collapsed : Visibility.Visible;
            IsStartButtonVisible     = Visibility.Visible;
        }