示例#1
0
        /// <summary>
        /// Populates the list with places.
        /// </summary>
        protected virtual void PopulatePlaces()
        {
            Places.Add(new FolderModel(Environment.SpecialFolder.Desktop));
            Places.Add(new FolderModel(Environment.SpecialFolder.MyDocuments));
            var drives = FolderModel.GetDrives();

            foreach (var drive in drives)
            {
                Places.Add(drive);
            }
        }