Esempio n. 1
0
 /// <summary>
 /// Clears the collection of current file/folder items and makes sure
 /// the operation is performed on the dispatcher thread.
 /// </summary>
 private void CurrentItemsClear()
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         _CurrentItems.Clear();
     });
 }
        protected virtual void ResetChildren(bool addDummyChild = true)
        {
            lock (_itemsLock)
            {
                _Children.Clear();
            }

            if (addDummyChild == true)
            {
                lock (_itemsLock)
                {
                    _Children.Add(DummyChild);
                }
            }
        }