public void Execute(CommandValues commandValues) { if (RegistryDictionary.ContainsKey(commandValues.CommandName)) { RegistryDictionary[commandValues.CommandName].Execute(commandValues.CommandArgs); } else { throw new InvalidCommandException(commandValues.CommandName); } }
/// <summary> /// Initializes a new instance of the <see cref="YafBoardSettings"/> class. /// </summary> public YafBoardSettings() { this._boardID = 0; this._reg = new RegistryDictionaryOverride(); this._regBoard = new RegistryDictionary(); // set the board dictionary as the override... this._reg.OverrideDictionary = this._regBoard; this._membershipAppName = Membership.ApplicationName; this._rolesAppName = Roles.ApplicationName; }