Christoc.Modules.DnnChat.Settings.UpdateSettings C# (CSharp) Method

UpdateSettings() public method

UpdateSettings saves the modified settings to the Database
public UpdateSettings ( ) : void
return void
        public override void UpdateSettings()
        {
            try
            {
                var modules = new ModuleController();
                modules.UpdateModuleSetting(ModuleId, "StartMessage", txtStartMessage.Text);

                modules.UpdateModuleSetting(ModuleId, "DefaultRoomId", ddlDefaultRoom.SelectedValue);
                modules.UpdateModuleSetting(ModuleId, "DefaultAvatarUrl", txtDefaultAvatarUrl.Text);

            }
            catch (Exception exc) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }