예제 #1
0
        private BuildTaskInfoPopulator CreateLargeImageBuildTaskPopulator()
        {
            Dictionary <string, string> strs = new Dictionary <string, string>()
            {
                { "CopyToOutputDirectory", "PreserveNewest" }
            };
            BuildTaskInfo buildTaskInfo = new BuildTaskInfo("Content", strs);

            return(XamlProject.CreateLargeImagePopulator((this.IsControlLibrary ? StringTable.ImageScalabilityWarningSilverlightControlLibrary : StringTable.ImageScalabilityWarningSilverlightApplication), buildTaskInfo, base.Services));
        }
예제 #2
0
 private BuildTaskInfoPopulator CreateLargeImagePopulator()
 {
     return(XamlProject.CreateLargeImagePopulator(this.IsControlLibrary ? StringTable.ImageScalabilityWarningWpfControlLibrary : StringTable.ImageScalabilityWarningWpfApplication, new BuildTaskInfo("None", (IDictionary <string, string>) new Dictionary <string, string>()
     {
         {
             "CopyToOutputDirectory",
             "PreserveNewest"
         }
     }), this.Services));
 }
예제 #3
0
        protected static BuildTaskInfoPopulator CreateLargeImagePopulator(string baseWarningMessage, BuildTaskInfo overrideBuildTask, IServiceProvider services)
        {
            Func <string> promptMessageFormatter = (Func <string>)(() => string.Format((IFormatProvider)CultureInfo.CurrentCulture, baseWarningMessage, new object[1]
            {
                (object)XamlProject.GetLargeImageThreshold(services).ToString((IFormatProvider)CultureInfo.CurrentCulture)
            }));
            Func <string> doNotPromptAgainMessageFormatter = (Func <string>)(() => string.Format((IFormatProvider)CultureInfo.CurrentCulture, StringTable.ImageScalabilityWarningDoNotShowAgainMessage, new object[1]
            {
                (object)XamlProject.GetLargeImageThreshold(services).ToString((IFormatProvider)CultureInfo.CurrentCulture)
            }));
            IBuildTaskOverrider buildTaskOverrider = (IBuildTaskOverrider) new BuildTaskOverrider(services, promptMessageFormatter, doNotPromptAgainMessageFormatter, "LargeImageDialog", overrideBuildTask);

            return((BuildTaskInfoPopulator) new LargeImageBuildTaskInfoPopulator((ICreationInfoFilter) new LargeImageCreationInfoFilter(services), buildTaskOverrider));
        }