예제 #1
0
 public override IDocumentType GetDocumentType(string fileName)
 {
     return(this.GetDocumentType(fileName, (IList <IDocumentType>) new List <IDocumentType>(1)
     {
         DocumentServiceExtensions.DocumentTypes(this.Services)[DocumentTypeNamesHelper.Xaml]
     }));
 }
예제 #2
0
 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));
 }
예제 #3
0
 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")
     });
 }