示例#1
0
        /// <summary>
        /// The set config property is robust in the sense that they will create the
        /// attributes if needed.  If value is null it will set empty string.
        /// </summary>
        /// <param name="attrName"></param>
        /// <param name="value"></param>
        public void SetConfigProperty(string attrName, string value)
        {
            CCITracing.TraceCall();
            if (value == null)
            {
                value = String.Empty;
            }

            if (this.ProjectMgr != null)
            {
                for (int i = 0, n = this.projectConfigs.Length; i < n; i++)
                {
                    ProjectConfig config = projectConfigs[i];

                    config.SetConfigurationProperty(attrName, value);
                }

                this.ProjectMgr.SetProjectFileDirty(true);
            }
        }