コード例 #1
0
        public static string NameForGroup(PropertyTemplateGroup pg)
        {
            switch (pg)
            {
            case PropertyTemplateGroup.Automatic:
                return(Resources.LogbookEntry.templateGroupAuto);

            case PropertyTemplateGroup.Checkrides:
                return(Resources.LogbookEntry.templateGroupCheckrides);

            case PropertyTemplateGroup.Missions:
                return(Resources.LogbookEntry.templateGroupMissions);

            case PropertyTemplateGroup.Training:
                return(Resources.LogbookEntry.templateGroupTraining);

            case PropertyTemplateGroup.Roles:
                return(Resources.LogbookEntry.templateGroupRole);

            case PropertyTemplateGroup.Lessons:
                return(Resources.LogbookEntry.templateGroupLessons);

            default:
                return(string.Empty);
            }
        }
コード例 #2
0
 public TemplateCollection(PropertyTemplateGroup ptg, IEnumerable <PropertyTemplate> rgTemplates)
 {
     Group     = ptg;
     Templates = rgTemplates;
 }