public bool CheckForNecessaryResets(MemberInfo member, object objectInstance, object settingValue)
            {
                if (settingValue == null)
                {
                    return(true);
                }

                var dict = (XmlDictionary <string, EditorControlThemeNode>)settingValue;

                if (dict.Count == 0)
                {
                    return(true);
                }

                foreach (var kvp in dict.ToList())
                {
                    if (kvp.Value != null && kvp.Value.Theme != null)
                    {
                        DefaultValueInitializer.DoNeccessaryResets(kvp.Value);
                        continue;
                    }

                    var initNode = new EditorControlThemeNode();
                    dict[kvp.Key] = initNode;
                    DefaultValueInitializer.Init(initNode);
                }

                return(false);
            }
            public bool CheckForNecessaryResets(MemberInfo member, object settingsNode, object propertyValue)
            {
                if (propertyValue == null)
                {
                    return(true);
                }

                var dict = (XmlDictionary <string, CompilerConfigurationNode>)propertyValue;

                if (dict.Count == 0)
                {
                    return(true);
                }

                foreach (var kvp in dict.ToList())
                {
                    if (kvp.Value != null && kvp.Value.OpenSimCompilerSettings != null)
                    {
                        DefaultValueInitializer.DoNeccessaryResets(kvp.Value);
                        continue;
                    }

                    var initNode = new CompilerConfigurationNode();
                    dict[kvp.Key] = initNode;
                    DefaultValueInitializer.Init(initNode);
                }

                return(false);
            }
Exemple #3
0
            public bool CheckForNecessaryResets(MemberInfo member, object objectInstance, object settingValue)
            {
                if (settingValue == null)
                {
                    return(true);
                }

                DefaultValueInitializer.DoNeccessaryResets((LSLEditorControlTheme)settingValue);

                return(false);
            }
            public bool CheckForNecessaryResets(MemberInfo member, object objectInstance, object settingValue)
            {
                if (settingValue == null)
                {
                    return(true);
                }

                DefaultValueInitializer.DoNeccessaryResets((LSLOpenSimCompilerSettings)settingValue);

                return(false);
            }