public static MemberSettings GetMemberSettings(string membre)
        {
            if (membre == String.Empty)
            {
                return(null);
            }

            MemberSettings memberSettings = new MemberSettings();

            memberSettings = XmlMemberSettingsProvider.GetMemberSettings(membre);

            return(memberSettings);
        }
        public static MemberSettings Fill(DataRow r)
        {
            MemberSettings obj = new MemberSettings();

            obj.Approuve                    = ( bool )r["Approuve"];
            obj.MenuExpert                  = ( bool )r["MenuExpert"];
            obj.MenuColonne                 = ( bool )r["MenuColonne"];
            obj.AfficherAide                = ( bool )r["AfficherAide"];
            obj.AfficherAideEnLigne         = ( bool )r["AfficherAideEnLigne"];
            obj.BarreNavigation             = ( bool )r["BarreNavigation"];
            obj.MenuToujoursVisible         = ( bool )r["MenuToujoursVisible"];
            obj.MenuToujoursVisiblePosition = r["MenuToujoursVisiblePosition"].ToString();
            obj.PrevenirNouvelleReponse     = ( bool )r["PrevenirNouvelleReponse"];
            obj.BoutonQuestionSuivanteTexte = r["BoutonQuestionSuivanteTexte"].ToString();
            obj.BoutonQuestionSuivanteAlt   = r["BoutonQuestionSuivanteAlt"].ToString();
            obj.TaillePageQuestions         = r["TaillePageQuestions"].ToString();

            return(obj);
        }
        public int Update(string userName, MemberSettings settings)
        {
            int status = XmlMemberSettingsProvider.Update(userName, settings);

            return(status);
        }