Example #1
0
        protected internal override void BindProperties()
        {
            base.BindProperties();
            this.chkXMLDocumentationFile.Checked = !string.IsNullOrEmpty(ParentPropertyPage.GetProperty(XSharpProjectFileConstants.DocumentationFile));
            var platform = ParentPropertyPage.GetProperty(XSharpProjectFileConstants.PlatformTarget) ?? "anycpu";

            if (string.Compare(platform, "anycpu", true) == 0)
            {
                this.chkPrefer32Bit.Enabled = true;
            }
            else
            {
                this.chkPrefer32Bit.Enabled = false;
                this.chkPrefer32Bit.Checked = false;
            }
            if (!string.IsNullOrEmpty(txtSpecificWarnings.Text))
            {
                rbWarningSpecific.Checked   = true;
                rbWarningAll.Checked        = false;
                rbWarningNone.Checked       = false;
                txtSpecificWarnings.Enabled = true;
            }
            else
            {
                var warn = ParentPropertyPage.GetProperty(XSharpProjectFileConstants.TreatWarningsAsErrors) ?? "false";
                warn = warn.ToLower();
                rbWarningSpecific.Checked   = false;
                rbWarningAll.Checked        = warn == "true";
                rbWarningNone.Checked       = warn != "true";
                txtSpecificWarnings.Enabled = false;
            }
        }
Example #2
0
 protected internal override void BindProperties()
 {
     base.BindProperties();
     ThreadHelper.ThrowIfNotOnUIThread();
     SetDialectOptions(ParentPropertyPage.GetProperty(XSharpProjectFileConstants.Dialect) ?? "Core");
     EnabledisableStandardDefs();
 }