コード例 #1
0
ファイル: CatalogManager.cs プロジェクト: A-F-V/CardCatalog
        private string FancyEntryWithFileFlag(CatalogEntry entry)
        {
            bool isFile = IsFile(entry.codePrefix, out string path, out bool isImage);

            //Color bg = isFile ? (isImage ? Color.DodgerBlue : Color.OrangeRed) : Color.FromArgb(12, 12, 12);
            return(entry.FancifyEntry(isFile, -3) +
                   (isFile ? PC.Format($"{{{(isImage ? 0 : -2)}}}", " <\u25A0>") : ""));
        }
コード例 #2
0
ファイル: CatalogEntry.cs プロジェクト: A-F-V/CardCatalog
        public string FancifyEntry(bool over = false, int number = 0)
        {
            PastelConsole PC = new PastelConsole(ColourPalette.MarineFields);

            return(PC.Format($"{{-2}} {{{(over?number:Math.Max(codePrefix.Depth - 1,0))}}}", codePrefix, name ?? String.Empty));
        }