コード例 #1
0
		internal DefaultProcessedTemplateResult (ProjectTemplate template, IEnumerable<IWorkspaceFileObject> itemsCreated, string projectBasePath)
		{
			this.template = template;
			workspaceItems = itemsCreated.ToList ();
			SolutionFileName = template.CreatedSolutionName;
			ProjectBasePath = projectBasePath;
		}
コード例 #2
0
		internal DefaultSolutionTemplate (ProjectTemplate template)
			: base (template.Id, template.Name, template.Icon.ToString ())
		{
			this.template = template;

			Description = template.Description;
			Category = template.Category;
			Language = template.LanguageName;
			GroupId = template.GroupId;
			Condition = template.Condition;
			ProjectFileExtension = template.FileExtension;
			Wizard = template.WizardPath;
			SupportedParameters = template.SupportedParameters;
			DefaultParameters = template.DefaultParameters;
			ImageId = template.ImageId;
			ImageFile = template.ImageFile;
			Visibility = GetVisibility (template.Visibility);

			HasProjects = (template.SolutionDescriptor.EntryDescriptors.Length > 0);
		}
コード例 #3
0
			public TemplateItem (ProjectTemplate template)
			{
				Name = StringParserService.Parse (template.Name);
				this.Template = template;
				if (!string.IsNullOrEmpty (template.Category))
					this.Category = template.Category.Split (new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
				else
					this.Category = new string[0];
			}