Exemplo n.º 1
0
        protected override void SetProjectPropertyInternal(SilverlightProject project, bool newValue)
        {
            ISolution solution = ProjectCommandExtensions.Solution((IProjectCommand)this);

            if (solution == null || project == null)
            {
                return;
            }
            solution.SolutionSettingsManager.SetProjectProperty((INamedProject)project, EnablePreviewOutOfBrowserCommand.PreviewOutOfBrowserEnabled, (object)(bool)(newValue ? true : false));
        }
Exemplo n.º 2
0
 public override sealed object GetProperty(string propertyName)
 {
     if (propertyName == "IsChecked")
     {
         SilverlightProject currentProject = this.GetCurrentProject();
         if (currentProject != null)
         {
             return(this.GetProjectPropertyInternal(currentProject));
         }
     }
     return(base.GetProperty(propertyName));
 }
Exemplo n.º 3
0
        protected override object GetProjectPropertyInternal(SilverlightProject project)
        {
            ISolution solution = ProjectCommandExtensions.Solution((IProjectCommand)this);

            if (solution != null && project != null)
            {
                object projectProperty = solution.SolutionSettingsManager.GetProjectProperty((INamedProject)project, EnablePreviewOutOfBrowserCommand.PreviewOutOfBrowserEnabled);
                if (projectProperty != null && projectProperty is bool)
                {
                    return((object)(bool)((bool)projectProperty ? true : false));
                }
            }
            return((object)false);
        }
Exemplo n.º 4
0
 public override sealed void SetProperty(string propertyName, object propertyValue)
 {
     if (propertyName == "IsChecked")
     {
         SilverlightProject currentProject = this.GetCurrentProject();
         if (currentProject == null)
         {
             return;
         }
         this.SetProjectPropertyInternal(currentProject, (bool)propertyValue);
     }
     else
     {
         base.SetProperty(propertyName, propertyValue);
     }
 }
Exemplo n.º 5
0
 protected override void SetProjectPropertyInternal(SilverlightProject project, bool newValue)
 {
     if (this.ShouldEnforceMutualExclusion() && newValue && project.EnableOutOfBrowser)
     {
         if (!this.PromptForPreviewOutOfBrowserToggle())
         {
             return;
         }
         project.EnableOutOfBrowser    = false;
         project.UsePlatformExtensions = true;
         ISolution solution = ProjectCommandExtensions.Solution((IProjectCommand)this);
         if (solution == null)
         {
             return;
         }
         solution.SolutionSettingsManager.SetProjectProperty((INamedProject)project, EnablePlatformExtensionsCommand.PreviewOutOfBrowserEnabled, (object)false);
     }
     else
     {
         project.UsePlatformExtensions = newValue;
     }
 }
Exemplo n.º 6
0
 protected override object GetProjectPropertyInternal(SilverlightProject project)
 {
     return((object)(bool)(project.UsePlatformExtensions ? true : false));
 }
Exemplo n.º 7
0
 protected abstract object GetProjectPropertyInternal(SilverlightProject project);
Exemplo n.º 8
0
 protected abstract void SetProjectPropertyInternal(SilverlightProject project, bool newValue);
Exemplo n.º 9
0
 protected override void SetProjectPropertyInternal(SilverlightProject project, bool newValue)
 {
     project.ElevatedOutOfBrowser = newValue;
 }
Exemplo n.º 10
0
 protected override object GetProjectPropertyInternal(SilverlightProject project)
 {
     return((object)(bool)(project.ElevatedOutOfBrowser ? true : false));
 }