public static string WorkspaceItemIcon(this WorkspaceItemKindEnum kind) { switch (kind) { case WorkspaceItemKindEnum.InputStream: return("oi oi-align-left"); case WorkspaceItemKindEnum.RootFolder: return("oi oi-home"); case WorkspaceItemKindEnum.Folder: return("oi oi-folder"); case WorkspaceItemKindEnum.File: return("oi oi-file"); case WorkspaceItemKindEnum.Favorite: return("oi oi-book"); default: throw new InvalidOperationException($"Unknown WorkspaceItemKindEnum value: {kind}"); } }
public WorkspaceItemModel(Guid key, WorkspaceItemKindEnum kind, string title) { Key = key; Kind = kind; Title = title; }