AdvancedLauncher.UI.Pages.GalleryViewModel.Count C# (CSharp) Метод

Count() публичный Метод

public Count ( ) : int
Результат int
        public int Count()
        {
            return this.Items.Count;
        }

Usage Example

Пример #1
0
        protected override void OnShow()
        {
            string gamePath = ConfigurationManager.GetGamePath(ProfileManager.CurrentProfile.GameModel);

            if (Directory.Exists(gamePath + SCREENSHOTS_DIR))
            {
                if (Directory.GetFiles(gamePath + SCREENSHOTS_DIR, "*.jpg").Length > 0)
                {
                    if (!IsGalleryInitialized || GalleryModel.Count() != Directory.GetFiles(gamePath + SCREENSHOTS_DIR, "*.jpg").Length)
                    {
                        UpdateThumbs(gamePath);
                        EmptyText.Visibility = System.Windows.Visibility.Hidden;
                    }
                    return;
                }
            }
            EmptyText.Visibility = System.Windows.Visibility.Visible;
        }