/// <summary>
        /// Initializes a new instance of the <see cref="XBuildEventsPropertyPagePanel"/> class.
        /// </summary>
        /// <param name="parentPropertyPage">The parent property page to which this is bound.</param>
        public XGeneralPropertyPagePanel(XPropertyPage parentPropertyPage)
            : base(parentPropertyPage)
        {
            this.InitializeComponent();

            this.tbAssemblyName.Tag                  = XSharpProjectFileConstants.AssemblyName;
            this.tbDefaultNamespace.Tag              = XSharpProjectFileConstants.RootNamespace;
            this.tbAppIcon.Tag                       = XSharpProjectFileConstants.ApplicationIcon;
            this.comboStartupObject.Tag              = XSharpProjectFileConstants.StartupObject;
            this.chkPreferNativeVersion.Tag          = XSharpProjectFileConstants.UseNativeVersion;
            this.chkSuppressDefaultManifest.Tag      = XSharpProjectFileConstants.NoWin32Manifest;
            this.chkVulcanCompatibleResources.Tag    = XSharpProjectFileConstants.VulcanCompatibleResources;
            this.chkAutoGenerateBindingRedirects.Tag = XSharpProjectFileConstants.AutoGenerateBindingRedirects;
            this.comboDialect.Tag                    = XSharpProjectFileConstants.Dialect;
            this.comboOutputType.Tag                 = XSharpProjectFileConstants.OutputType;
            this.comboTargetFramework.Tag            = XSharpProjectFileConstants.TargetFrameworkVersion;

            lblDefaultNamespace.Text = captNamespace;
            toolTip1.SetToolTip(lblDefaultNamespace, descNamespace);
            toolTip1.SetToolTip(tbDefaultNamespace, descNamespace);

            lblApplicationName.Text = captAppName;
            toolTip1.SetToolTip(lblApplicationName, descAssembly);
            toolTip1.SetToolTip(tbAssemblyName, descAssembly);
            labelIcon.Text = captIcon;
            toolTip1.SetToolTip(labelIcon, descIcon);
            toolTip1.SetToolTip(tbAppIcon, descIcon);
            toolTip1.SetToolTip(btnIcon, descIcon);
            labelStartupObject.Text = captStartup;
            toolTip1.SetToolTip(labelStartupObject, descStartup);
            toolTip1.SetToolTip(comboStartupObject, descStartup);

            chkSuppressDefaultManifest.Text = captWin32Manifest;
            toolTip1.SetToolTip(chkSuppressDefaultManifest, descWin32Manifest);

            chkPreferNativeVersion.Text = captPreferNative;
            toolTip1.SetToolTip(chkPreferNativeVersion, descPreferNative);
            chkVulcanCompatibleResources.Text = captVulcanCompatibleResouces;
            toolTip1.SetToolTip(chkVulcanCompatibleResources, descVulcanCompatibleResouces);
            chkAutoGenerateBindingRedirects.Text = captBindingRedirects;
            toolTip1.SetToolTip(chkAutoGenerateBindingRedirects, descBindingRedirects);


            FillCombo(new DialectConverter(), comboDialect);
            toolTip1.SetToolTip(lblDialect, descDialect);
            toolTip1.SetToolTip(comboDialect, descDialect);
            FillCombo(new OutputTypeConverter(), comboOutputType);
            toolTip1.SetToolTip(lblOutputType, descOutputType);
            toolTip1.SetToolTip(comboOutputType, descOutputType);
            FillCombo(new FrameworkNameConverter(), comboTargetFramework);
            toolTip1.SetToolTip(lblTargetFramework, descFramework);
            toolTip1.SetToolTip(comboTargetFramework, descFramework);


            // hook up the form to both editors
            Color defaultBackground = SystemColors.ButtonFace;
            Color defaultForeground = SystemColors.WindowText;

            UpdateWindowColors(this, defaultBackground, defaultForeground);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="XPropertyPagePanel"/> class.
        /// </summary>
        /// <param name="parentPropertyPage">The parent property page to which this is bound.</param>
        public XPropertyPagePanel(XPropertyPage parentPropertyPage)
        {
            this.parentPropertyPage = parentPropertyPage;
            this.InitializeComponent();

            this.Font = XHelperMethods.GetDialogFont();
            //this.BackColor = XHelperMethods.GetVsColor(XHelperMethods.Vs2010Color.VSCOLOR_BUTTONFACE);
            this.ForeColor = XHelperMethods.GetVsColor(XHelperMethods.Vs2010Color.VSCOLOR_BUTTONTEXT);
        }
Ejemplo n.º 3
0
        // =========================================================================================
        // Constructors
        // =========================================================================================

        /// <summary>
        /// Initializes a new instance of the <see cref="XBuildEventsPropertyPagePanel"/> class.
        /// </summary>
        /// <param name="parentPropertyPage">The parent property page to which this is bound.</param>
        public XBuildEventsPropertyPagePanel(XPropertyPage parentPropertyPage)
            : base(parentPropertyPage)
        {
            this.InitializeComponent();

            // hook up the form to both editors
            this.preBuildEditor.Initialize((XProjectNode)parentPropertyPage.ProjectMgr, this.editorForm);
            this.postBuildEditor.Initialize((XProjectNode)parentPropertyPage.ProjectMgr, this.editorForm);

            this.preBuildEditor.TextBox.Tag  = XProjectFileConstants.PreBuildEvent;
            this.postBuildEditor.TextBox.Tag = XProjectFileConstants.PostBuildEvent;
            this.runPostBuildComboBox.Tag    = XProjectFileConstants.RunPostBuildEvent;

            Color defaultBackground = System.Drawing.SystemColors.ButtonFace;
            Color defaultForeground = System.Drawing.SystemColors.WindowText;

            UpdateWindowColors(this, defaultBackground, defaultForeground);
        }
        // =========================================================================================
        // Constructors
        // =========================================================================================

        /// <summary>
        /// Initializes a new instance of the <see cref="XBuildEventsPropertyPagePanel"/> class.
        /// </summary>
        /// <param name="parentPropertyPage">The parent property page to which this is bound.</param>
        public XDebugPropertyPagePanel(XPropertyPage parentPropertyPage)
            : base(parentPropertyPage)
        {
            this.InitializeComponent();
            this.lblCommand.Text = captDebuggerCommand;
            this.tbCommand.Tag   = XSharpProjectFileConstants.DebuggerCommand;
            this.toolTip1.SetToolTip(lblCommand, descDebuggerCommand);
            this.toolTip1.SetToolTip(tbCommand, descDebuggerCommand);

            this.lblCommandArguments.Text = captDebuggerCommandArguments;
            this.tbArguments.Tag          = XSharpProjectFileConstants.DebuggerCommandArguments;
            this.toolTip1.SetToolTip(lblCommandArguments, descDebuggerCommandArguments);
            this.toolTip1.SetToolTip(tbArguments, descDebuggerCommandArguments);

            this.lblDebugInfo.Text  = captDebugType;
            this.comboDebugInfo.Tag = XSharpProjectFileConstants.DebugType;
            this.toolTip1.SetToolTip(this.lblDebugInfo, descDebugType);
            this.toolTip1.SetToolTip(this.comboDebugInfo, descDebugType);

            this.lblWorkDir.Text = captDebuggerWorkingDirectory;
            this.tbWorkdir.Tag   = XSharpProjectFileConstants.DebuggerWorkingDirectory;
            this.toolTip1.SetToolTip(this.lblWorkDir, descDebuggerWorkingDirectory);
            this.toolTip1.SetToolTip(this.tbWorkdir, descDebuggerWorkingDirectory);

            this.chkUnmanagedDebugging.Text = captEnableUnmanagedDebugging;
            this.chkUnmanagedDebugging.Tag  = XSharpProjectFileConstants.EnableUnmanagedDebugging;
            this.toolTip1.SetToolTip(chkUnmanagedDebugging, descEnableUnmanagedDebugging);

            FillCombo(new DebugTypeConverter(), comboDebugInfo);

            // hook up the form to both editors
            Color defaultBackground = SystemColors.ButtonFace;
            Color defaultForeground = SystemColors.WindowText;

            UpdateWindowColors(this, defaultBackground, defaultForeground);
        }
Ejemplo n.º 5
0
        // =========================================================================================
        // Constructors
        // =========================================================================================

        /// <summary>
        /// Initializes a new instance of the <see cref="XBuildEventsPropertyPagePanel"/> class.
        /// </summary>
        /// <param name="parentPropertyPage">The parent property page to which this is bound.</param>
        public XBuildPropertyPagePanel(XPropertyPage parentPropertyPage)
            : base(parentPropertyPage)
        {
            this.InitializeComponent();

            this.chkPPO.Text = PPOCaption;
            this.chkPPO.Tag  = "PPO";
            this.toolTip1.SetToolTip(this.chkPPO, PPODescription);

            this.chkUseSharedCompilation.Text = captUseSharedCompilation;
            this.chkUseSharedCompilation.Tag  = XSharpProjectFileConstants.UseSharedCompilation;
            this.toolTip1.SetToolTip(this.chkUseSharedCompilation, descUseSharedCompilation);

            this.chkPrefer32Bit.Text = captPrefer32Bit;
            this.chkPrefer32Bit.Tag  = XSharpProjectFileConstants.Prefer32Bit;
            this.toolTip1.SetToolTip(this.chkPrefer32Bit, descPrefer32Bit);

            this.chkRegisterForComInterop.Text = captRegisterForComInterop;
            this.chkRegisterForComInterop.Tag  = XSharpProjectFileConstants.RegisterForComInterop;
            this.toolTip1.SetToolTip(this.chkRegisterForComInterop, descRegisterForComInterop);

            this.chkXMLDocumentationFile.Text = captDocumentationFile;
            this.txtXMLDocumentationFile.Tag  = XSharpProjectFileConstants.DocumentationFile;
            this.toolTip1.SetToolTip(chkXMLDocumentationFile, descDocumentationFile);
            this.toolTip1.SetToolTip(txtXMLDocumentationFile, descDocumentationFileName);

            this.chkOptimize.Text = captOptimize;
            this.chkOptimize.Tag  = XSharpProjectFileConstants.Optimize;
            this.toolTip1.SetToolTip(this.chkOptimize, descOptimize);

            this.chkSignAssembly.Text = captSignAssembly;
            this.chkSignAssembly.Tag  = XSharpProjectFileConstants.SignAssembly;
            this.toolTip1.SetToolTip(this.chkSignAssembly, descSignAssembly);

            this.chkSuppressRCWarnings.Text = SuppressRCWarningsCaption;
            this.chkSuppressRCWarnings.Tag  = XSharpProjectFileConstants.SuppressRCWarnings;
            this.toolTip1.SetToolTip(this.chkSuppressRCWarnings, SuppressRCWarningsDescription);

            this.chkDelaySign.Text = captDelaySign;
            this.chkDelaySign.Tag  = XSharpProjectFileConstants.DelaySign;
            this.toolTip1.SetToolTip(this.chkDelaySign, descDelaySign);

            this.txtDefineConstants.Tag  = XSharpProjectFileConstants.DefineConstants;
            this.lblDefineConstants.Text = DefCaption;
            this.toolTip1.SetToolTip(this.txtDefineConstants, DefDescription);
            this.toolTip1.SetToolTip(this.lblDefineConstants, DefDescription);

            this.txtCommandLineOption.Tag  = XSharpProjectFileConstants.CommandLineOption;
            this.lblCommandLineOption.Text = CmdLineCaption;
            this.toolTip1.SetToolTip(txtCommandLineOption, CmdLineDescription);
            this.toolTip1.SetToolTip(lblCommandLineOption, CmdLineDescription);

            this.txtDisabledWarnings.Tag  = XSharpProjectFileConstants.DisabledWarnings;
            this.lblDisabledWarnings.Text = captDisabledWarnings;
            this.toolTip1.SetToolTip(lblDisabledWarnings, descDisabledWarnings);
            this.toolTip1.SetToolTip(txtDisabledWarnings, descDisabledWarnings);

            this.txtOutputPath.Tag  = XSharpProjectFileConstants.OutputPath;
            this.lblOutputPath.Text = captOutputPath;
            this.toolTip1.SetToolTip(txtOutputPath, descOutputPath);
            this.toolTip1.SetToolTip(lblOutputPath, descOutputPath);


            this.txtIntermediateOutputPath.Tag  = XSharpProjectFileConstants.IntermediateOutputPath;
            this.lblIntermediateOutputPath.Text = captIntermediateOutputPath;
            this.toolTip1.SetToolTip(txtIntermediateOutputPath, descIntermediateOutputPath);
            this.toolTip1.SetToolTip(lblIntermediateOutputPath, descIntermediateOutputPath);

            this.txtAssemblyOriginatorKeyFile.Tag  = XSharpProjectFileConstants.AssemblyOriginatorKeyFile;
            this.lblAssemblyOriginatorKeyFile.Text = captAssemblyOriginatorKeyFile;
            this.toolTip1.SetToolTip(txtAssemblyOriginatorKeyFile, descAssemblyOriginatorKeyFile);
            this.toolTip1.SetToolTip(lblAssemblyOriginatorKeyFile, descAssemblyOriginatorKeyFile);

            this.lblPlatformTarget.Text  = captPlatFormTarget;
            this.comboPlatformTarget.Tag = XSharpProjectFileConstants.PlatformTarget;
            this.toolTip1.SetToolTip(lblPlatformTarget, descPlatFormTarget);
            this.toolTip1.SetToolTip(comboPlatformTarget, descPlatFormTarget);

            this.lblWarningLevel.Text = captWarningLevel;
            this.cboWarningLevel.Tag  = XSharpProjectFileConstants.WarningLevel;
            this.toolTip1.SetToolTip(lblWarningLevel, descWarningLevel);
            this.toolTip1.SetToolTip(cboWarningLevel, descWarningLevel);

            this.rbWarningAll.Tag        = XSharpProjectFileConstants.TreatWarningsAsErrors + "|True";
            this.rbWarningNone.Tag       = XSharpProjectFileConstants.TreatWarningsAsErrors + "|False";
            this.rbWarningSpecific.Tag   = XSharpProjectFileConstants.TreatWarningsAsErrors + "|False";
            this.txtSpecificWarnings.Tag = XSharpProjectFileConstants.WarningsAsErrors;
            this.toolTip1.SetToolTip(txtSpecificWarnings, descSpecificWarnings);

            FillCombo(new PlatformConverter(), comboPlatformTarget);

            // hook up the form to both editors
            Color defaultBackground = SystemColors.ButtonFace;
            Color defaultForeground = SystemColors.WindowText;

            UpdateWindowColors(this, defaultBackground, defaultForeground);
        }
Ejemplo n.º 6
0
        // =========================================================================================
        // Constructors
        // =========================================================================================

        /// <summary>
        /// Initializes a new instance of the <see cref="XBuildEventsPropertyPagePanel"/> class.
        /// </summary>
        /// <param name="parentPropertyPage">The parent property page to which this is bound.</param>
        public XLanguagePropertyPagePanel(XPropertyPage parentPropertyPage)
            : base(parentPropertyPage)
        {
            this.InitializeComponent();
            chkAZ.Text = AZCaption;
            chkAZ.Tag  = XSharpProjectFileConstants.AZ;
            toolTip1.SetToolTip(chkAZ, AZDescription);
            chkCS.Text = CSCaption;
            chkCS.Tag  = XSharpProjectFileConstants.CS;
            toolTip1.SetToolTip(chkCS, CSDescription);
            chkIns.Text = INSCaption;
            chkIns.Tag  = XSharpProjectFileConstants.INS;
            toolTip1.SetToolTip(chkIns, INSDescription);
            chkInitLocals.Text = InitLocalsCaption;
            chkInitLocals.Tag  = XSharpProjectFileConstants.InitLocals;
            toolTip1.SetToolTip(chkInitLocals, InitLocalsDescription);
            chkLB.Text = LBCaption;
            chkLB.Tag  = XSharpProjectFileConstants.LB;
            toolTip1.SetToolTip(chkLB, LBDescription);
            chkMemVar.Text = MemVarCaption;
            chkMemVar.Tag  = XSharpProjectFileConstants.MemVar;
            toolTip1.SetToolTip(chkMemVar, MemVarDescription);
            chkMemVar.CheckStateChanged += ChkMemVar_CheckStateChanged;
            chkNamedArgs.Text            = NamedArgCaption;
            chkNamedArgs.Tag             = XSharpProjectFileConstants.NamedArgs;
            toolTip1.SetToolTip(chkNamedArgs, NamedArgDescription);
            chkNoStandardDefs.Text = NoStdDefCaption;
            chkNoStandardDefs.Tag  = XSharpProjectFileConstants.NoStandardDefs;
            toolTip1.SetToolTip(chkNoStandardDefs, NoStdDefDescription);
            chkNS.Text = NSCaption;
            chkNS.Tag  = XSharpProjectFileConstants.NS;
            toolTip1.SetToolTip(chkNS, NSDescription);
            chkOvf.Text = OVFCaption;
            chkOvf.Tag  = XSharpProjectFileConstants.OVF;
            toolTip1.SetToolTip(chkOvf, OVFDescription);
            chkUndefined.Text = UndeclaredCaption;
            chkUndefined.Tag  = XSharpProjectFileConstants.Undeclared;
            toolTip1.SetToolTip(chkUndefined, UndeclaredDescription);
            chkUnsafe.Text = UnsafeCaption;
            chkUnsafe.Tag  = XSharpProjectFileConstants.Unsafe;
            toolTip1.SetToolTip(chkUnsafe, UnsafeDescription);

            lblIncludePaths.Text = INCCaption;
            tbIncludePath.Tag    = XSharpProjectFileConstants.IncludePaths;
            toolTip1.SetToolTip(lblIncludePaths, INCDescription);
            toolTip1.SetToolTip(tbIncludePath, INCDescription);
            toolTip1.SetToolTip(this.btnIncludePaths, INCDescription);
            lblStandardDefs.Text = StdDefCaption;
            tbStandardDefs.Tag   = XSharpProjectFileConstants.StandardDefs;
            toolTip1.SetToolTip(lblStandardDefs, StdDefDescription);
            toolTip1.SetToolTip(tbStandardDefs, StdDefDescription);
            toolTip1.SetToolTip(btnStandardHeader, StdDefDescription);
            chkEnforceSelf.Text = enforceSelfCaption;
            chkEnforceSelf.Tag  = XSharpProjectFileConstants.EnforceSelf;
            toolTip1.SetToolTip(chkEnforceSelf, EnforceSelfDescription);

            chkEnforceOverride.Text = EnforceOverrideCaption;
            chkEnforceOverride.Tag  = XSharpProjectFileConstants.EnforceOverride;
            toolTip1.SetToolTip(chkEnforceOverride, EnforceOverrideDescription);

            chkAllowDot.Text = allowDotCaption;
            chkAllowDot.Tag  = XSharpProjectFileConstants.Allowdot;
            toolTip1.SetToolTip(chkAllowDot, allowDotDescription);

            // hook up the form to both editors
            Color defaultBackground = SystemColors.ButtonFace;
            Color defaultForeground = SystemColors.WindowText;

            UpdateWindowColors(this, defaultBackground, defaultForeground);
        }
        // =========================================================================================
        // Constructors
        // =========================================================================================

        /// <summary>
        /// Initializes a new instance of the <see cref="XBuildEventsPropertyPagePanel"/> class.
        /// </summary>
        /// <param name="parentPropertyPage">The parent property page to which this is bound.</param>
        public XDialectPropertyPagePanel(XPropertyPage parentPropertyPage)
            : base(parentPropertyPage)
        {
            this.InitializeComponent();
            this.chkVO1.Text  = VO1Caption;
            this.chkVO2.Text  = VO2Caption;
            this.chkVO3.Text  = VO3Caption;
            this.chkVO4.Text  = VO4Caption;
            this.chkVO5.Text  = VO5Caption;
            this.chkVO6.Text  = VO6Caption;
            this.chkVO7.Text  = VO7Caption;
            this.chkVO8.Text  = VO8Caption;
            this.chkVO9.Text  = VO9Caption;
            this.chkVO10.Text = VO10Caption;
            this.chkVO11.Text = VO11Caption;
            this.chkVO12.Text = VO12Caption;
            this.chkVO13.Text = VO13Caption;
            this.chkVO14.Text = VO14Caption;
            this.chkVO15.Text = VO15Caption;
            this.chkVO16.Text = VO16Caption;
            this.chkFox1.Text = FOX1Caption;
            this.chkFox2.Text = FOX2Caption;
            this.chkXPP1.Text = XPP1Caption;
            this.chkVO1.Tag   = XSharpProjectFileConstants.Vo1;
            this.chkVO2.Tag   = XSharpProjectFileConstants.Vo2;
            this.chkVO3.Tag   = XSharpProjectFileConstants.Vo3;
            this.chkVO4.Tag   = XSharpProjectFileConstants.Vo4;
            this.chkVO5.Tag   = XSharpProjectFileConstants.Vo5;
            this.chkVO6.Tag   = XSharpProjectFileConstants.Vo6;
            this.chkVO7.Tag   = XSharpProjectFileConstants.Vo7;
            this.chkVO8.Tag   = XSharpProjectFileConstants.Vo8;
            this.chkVO9.Tag   = XSharpProjectFileConstants.Vo9;
            this.chkVO10.Tag  = XSharpProjectFileConstants.Vo10;
            this.chkVO11.Tag  = XSharpProjectFileConstants.Vo11;
            this.chkVO12.Tag  = XSharpProjectFileConstants.Vo12;
            this.chkVO13.Tag  = XSharpProjectFileConstants.Vo13;
            this.chkVO14.Tag  = XSharpProjectFileConstants.Vo14;
            this.chkVO15.Tag  = XSharpProjectFileConstants.Vo15;
            this.chkVO16.Tag  = XSharpProjectFileConstants.Vo16;
            this.chkFox1.Tag  = XSharpProjectFileConstants.Fox1;
            this.chkFox2.Tag  = XSharpProjectFileConstants.Fox2;
            this.chkXPP1.Tag  = XSharpProjectFileConstants.Xpp1;
            toolTip1.SetToolTip(chkVO1, VO1Description);
            toolTip1.SetToolTip(chkVO2, VO2Description);
            toolTip1.SetToolTip(chkVO3, VO3Description);
            toolTip1.SetToolTip(chkVO4, VO4Description);
            toolTip1.SetToolTip(chkVO5, VO5Description);
            toolTip1.SetToolTip(chkVO6, VO6Description);
            toolTip1.SetToolTip(chkVO7, VO7Description);
            toolTip1.SetToolTip(chkVO8, VO8Description);
            toolTip1.SetToolTip(chkVO9, VO9Description);
            toolTip1.SetToolTip(chkVO10, VO10Description);
            toolTip1.SetToolTip(chkVO11, VO11Description);
            toolTip1.SetToolTip(chkVO12, VO12Description);
            toolTip1.SetToolTip(chkVO13, VO13Description);
            toolTip1.SetToolTip(chkVO14, VO14Description);
            toolTip1.SetToolTip(chkVO15, VO15Description);
            toolTip1.SetToolTip(chkVO16, VO16Description);

            toolTip1.SetToolTip(chkFox1, FOX1Description);
            toolTip1.SetToolTip(chkFox2, FOX2Description);
            toolTip1.SetToolTip(chkXPP1, XPP1Description);
            this.lblAllDialects.Text = CatCompatibility;
            this.lblNotInCore.Text   = CatNotCore;
            this.lblVFP.Text         = FOXCompatibility;
            this.lblXPP.Text         = XPPCompatibility;

            // hook up the form to both editors
            Color defaultBackground = SystemColors.ButtonFace;
            Color defaultForeground = SystemColors.WindowText;

            UpdateWindowColors(this, defaultBackground, defaultForeground);
        }