Ejemplo n.º 1
0
        public override void Load()
        {
            MSBuildItemDefinitionGroup group = new MSBuildItemDefinitionGroup(Project,
                                                                              Helper.Configuration, Helper.Platform);

            setControlValue(control, group.GetElementMetadata(elementName, metadataName));
        }
Ejemplo n.º 2
0
        void SetOutputTypeCombo()
        {
            MSBuildItemDefinitionGroup group = new MSBuildItemDefinitionGroup(base.Project, base.Project.ActiveConfiguration);
            string     subsystem             = group.GetElementMetadata("Link", "SubSystem");
            string     configurationType     = base.Project.GetEvaluatedProperty("ConfigurationType");
            OutputType validOutputType       = ConfigurationTypeToOutputType(configurationType, subsystem);

            this.outputTypeComboBox.SelectedIndex = Array.IndexOf((OutputType[])Enum.GetValues(typeof(OutputType)), validOutputType);
        }
Ejemplo n.º 3
0
        public override void LoadPanelContents()
        {
            base.LoadPanelContents();
            ComboBox cbOutputType = Get <ComboBox>("outputType");

            helper.AddBinding("ConfigurationType", new ObservedBinding <string, ComboBox>(cbOutputType, ConvertOutputType));

            MSBuildItemDefinitionGroup group = new MSBuildItemDefinitionGroup(project, helper.Configuration, helper.Platform);
            string     subsystem             = group.GetElementMetadata("Link", "SubSystem");
            string     configurationType     = project.GetEvaluatedProperty("ConfigurationType");
            OutputType validOutputType       = ConfigurationTypeToOutputType(configurationType, subsystem);

            cbOutputType.SelectedIndex = Array.IndexOf((OutputType[])Enum.GetValues(typeof(OutputType)), validOutputType);

            TextBox tbApplicationIcon = Get <TextBox>("applicationIcon");

            helper.AddBinding(null, new ObservedBinding <object, TextBox>(tbApplicationIcon, SetApplicationIcon));
            tbApplicationIcon.Text = GetApplicationIconPathFromResourceScripts();

            DisableWin32ResourceOptions();

            IsDirty = false;
        }
Ejemplo n.º 4
0
 private static string GetElementMetaData(MSBuildItemDefinitionGroup group, string name)
 {
     return(group.GetElementMetadata(metaElement, name));
 }