Esempio n. 1
0
        /// <summary>Selects all.</summary>
        private void SelectAll()
        {
            int totalCount    = FileCollection.Count;
            int selectedCount = FileCollection.Count(p => p.IsSelected);

            bool value = (totalCount != selectedCount);

            foreach (var item in FileCollection)
            {
                item.IsSelected = value;
            }
        }