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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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();
            }
        }
    }
}