aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.FileSystem/DriveItem.cs
blob: 9c4494fec2eb6e4b6f869ed698de2a677f16bd0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-ri
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.FileSystem
{
    public class DriveItem : FileSystemItem, IFileSystemContainer
    {
        public ObservableCollection<FileSystemItem> Items { get; set; }

        public String Label { get; set; }

        public DriveType DriveType { get; set; }

        public DriveItem()
        {
            Type = FileSystemItemType.Drive;
            Items = new ObservableCollection<FileSystemItem>();
        }

        protected override string OnGetName()
        {
            return Label;
        }

        public override string Description
        {
            get
            {
                return DriveType.ToString().ToTitle();
            }
        }
    }
}