Boo.BooLangProject.GeneralPropertyPage.ApplyChanges C# (CSharp) Method

ApplyChanges() protected method

protected ApplyChanges ( ) : int
return int
        protected override int ApplyChanges()
        {
            if (!IsDirty)
              return VSConstants.S_OK;

            if (this.ProjectMgr == null)
              return VSConstants.E_INVALIDARG;

            ValidateProperties();

            this.ProjectMgr.SetProjectProperty(GeneralPropertyPageTag.AssemblyName.ToString(), this.assemblyName);
            this.ProjectMgr.SetProjectProperty(GeneralPropertyPageTag.RootNamespace.ToString(), this.defaultNamespace);

            this.ProjectMgr.SetProjectProperty(GeneralPropertyPageTag.Ducky.ToString(), this.ducky.ToString());
            this.ProjectMgr.SetProjectProperty(GeneralPropertyPageTag.WhiteSpaceAgnostic.ToString(), this.whiteSpaceAgnostic.ToString());
            this.ProjectMgr.SetProjectProperty(GeneralPropertyPageTag.OutputType.ToString(), this.outputType.ToString());
            this.IsDirty = false;

            return VSConstants.S_OK;
        }