fCraft.Config.ValidateColor C# (CSharp) Method

ValidateColor() private method

private ValidateColor ( string key, string value ) : bool
key string
value string
return bool
        bool ValidateColor( string key, string value ) {
            if( Color.Parse( value ) != null ) {
                settings[key] = value;
                return true;
            } else {
                Log( "Config.SetValue: Specified value for {0} could not be parsed. Using default ({1}).", LogType.Warning,
                                    key, settings[key] );
                return false;
            }
        }