示例#1
0
 protected string GetTemplate(string mainTemplate)
 {
     return(mainTemplate
            .Replace("#Usings_PLACE_HOLDER#", StringResourceReader.Read(FolderPath + "Common/Usings.c"))
            .Replace("#InnerParts_PLACE_HOLDER#", CommonInnerPartsProvider.Get())
            .Replace("#OuterParts_PLACE_HOLDER#", CommonOuterPartsProvider.Get()));
 }
        public string GetTemplate()
        {
            var mainTemplate = StringResourceReader.Read(FolderPath + "Robot/RobotMainTemplate.c");

            return(GetTemplate(mainTemplate)
                   .Replace("#RobotInnerParts_PLACE_HOLDER#", RobotInnerPartsProvider.Get()));
        }
示例#3
0
        public virtual string GetTemplate()
        {
            var mainTemplate = StringResourceReader.Read(FolderPath + "Indicator/IndicatorMainTemplate.c");

            return(GetTemplate(mainTemplate)
                   .Replace("#IndicatorInnerParts_PLACE_HOLDER#", IndicatorInnerPartsProvider.Get()));
        }