public MvcViewEngineViewModel(
     string name,
     MvcTextTemplateType templateType)
 {
     this.Name         = name;
     this.TemplateType = templateType;
 }
		string GetFolderName(MvcTextTemplateType type, MvcTextTemplateLanguage language)
		{
			if (type.IsRazor()) {
				return GetRazorFolderName(language);
			}
			return GetAspxFolderName(language);
		}
Esempio n. 3
0
		public MvcViewEngineViewModel(
			string name,
			MvcTextTemplateType templateType)
		{
			this.Name = name;
			this.TemplateType = templateType;
		}
Esempio n. 4
0
 string GetFolderName(MvcTextTemplateType type, MvcTextTemplateLanguage language)
 {
     if (type.IsRazor())
     {
         return(GetRazorFolderName(language));
     }
     return(GetAspxFolderName(language));
 }
		public static string GetViewFileExtension(
			MvcTextTemplateType type,
			MvcTextTemplateLanguage language,
			bool isPartialView)
		{
			if (type.IsAspx()) {
				return GetAspxFileExtension(isPartialView);
			}
			return GetRazorFileExtension(language);
		}
 public static string GetViewFileExtension(
     MvcTextTemplateType type,
     MvcTextTemplateLanguage language,
     bool isPartialView)
 {
     if (type.IsAspx())
     {
         return(GetAspxFileExtension(isPartialView));
     }
     return(GetRazorFileExtension(language));
 }
Esempio n. 7
0
 public MvcTextTemplateTypeFolder(
     MvcTextTemplateType type,
     MvcTextTemplateLanguage language)
 {
     name = GetFolderName(type, language);
 }
		public MvcTextTemplateTypeFolder(
			MvcTextTemplateType type,
			MvcTextTemplateLanguage language)
		{
			name = GetFolderName(type, language);
		}
 public static bool IsAspx(this MvcTextTemplateType templateType)
 {
     return(templateType == MvcTextTemplateType.Aspx);
 }
 public static bool IsRazor(this MvcTextTemplateType templateType)
 {
     return(templateType == MvcTextTemplateType.Razor);
 }