public override IDocumentType GetDocumentType(string fileName) { return(this.GetDocumentType(fileName, (IList <IDocumentType>) new List <IDocumentType>(1) { DocumentServiceExtensions.DocumentTypes(this.Services)[DocumentTypeNamesHelper.Xaml] })); }
protected override IDocumentType GetDocumentTypeForBuildItem(string fileName, string buildItemType) { if (buildItemType == "ApplicationDefinition" && PathHelper.FileExists(fileName)) { return(DocumentServiceExtensions.DocumentTypes(this.Services)[DocumentTypeNamesHelper.ApplicationDefinition]); } return(base.GetDocumentTypeForBuildItem(fileName, buildItemType)); }
protected override AddProjectItemCommand.FileTypeDescription[] GetFileTypeFilter() { return(new AddProjectItemCommand.FileTypeDescription[1] { new AddProjectItemCommand.FileTypeDescription(string.Format((IFormatProvider)CultureInfo.CurrentCulture, StringTable.AddProjectItemCommandFileFilterTextFormat, new object[2] { (object)DocumentServiceExtensions.DocumentTypes(this.Services)[DocumentTypeNamesHelper.Assembly].Description, (object)"*.dll, *.exe" }), "*.dll; *.exe") }); }