Exemple #1
0
        public static string GetHeaderStr(CompilerData.CompileCategory category)
        {
            switch (category)
            {
            case CompilerData.CompileCategory.ExecuteCompiler: return("Duration");

            default: return(CompileScore.Common.UIConverters.ToSentenceCase(category.ToString()));
            }
        }
Exemple #2
0
        private TimelineNode LoadNode(BinaryReader reader)
        {
            uint start    = reader.ReadUInt32();
            uint duration = reader.ReadUInt32();
            uint eventId  = reader.ReadUInt32();

            CompilerData.CompileCategory category = (CompilerData.CompileCategory)reader.ReadByte();
            CompileValue value = CompilerData.Instance.GetValue(category, (int)eventId);

            string label = value != null ? value.Name : Common.UIConverters.ToSentenceCase(category.ToString());

            label += " ( " + Common.UIConverters.GetTimeStr(duration) + " )";

            return(new TimelineNode(label, start, duration, category, value));
        }