示例#1
0
        private ClientSetting SettingToClientSetting(SettingElement setting)
        {
            IStringProperty property = ClientSettingsView.SettingToProperty(setting);

            if (property == null)
            {
                Debug.Fail("Shouldn't be converting a null element to a ClientSetting.");
                return(null);
            }
            else
            {
                return(new ClientSetting(property.Name, property.Value, this.SettingsLocation));
            }
        }
示例#2
0
        public string GetSetting(string name)
        {
            IStringProperty property = ClientSettingsView.SettingToProperty(this.GetSettingInternal(name));

            return(property == null ? null : property.Value);
        }