Files
FileManager-UWP/FileManager_UWP/Model/Displayable.cs
T
2019-04-04 22:02:02 +08:00

23 lines
619 B
C#

using System;
using Windows.UI.Xaml.Media.Imaging;
namespace FileManager_UWP.Model {
public enum Type{
File, Folder, Disk, VirtualFolder
}
public abstract class Displayable : IComparable {
public abstract string Name { get; }
public abstract string Path { get; }
public abstract Type Type { get; }
public abstract BitmapImage Icon { get; }
public int CompareTo(object obj) {
if (obj is Displayable another) {
return Name.CompareTo(another.Name);
}
throw new NotSupportedException();
}
}
}