Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void ItemDataBound(object sender, PrivilegeListEventArgs <QaSettingInfo, int, HyperLink, Literal> e)
        {
            // there is no reason to display ViewAll, it's bound to other controls in the ascx and we don't want to display a link to it in this list.
            if (e.Privilege.Key != Constants.Privileges.ViewAll.ToString())
            {
                e.PrivHyperLink.NavigateUrl = Links.ViewPrivilege(ModuleContext, e.Privilege.Key.ToLower());
                e.PrivHyperLink.Text        = Localization.GetString(e.Privilege.Name, Constants.SharedResourceFileName);

                if (e.Privilege.Key == Privilege.ToString())
                {
                    e.PrivHyperLink.CssClass = "privSelected";
                }

                e.PercentCompleteLiteral.Text = Utils.CalucalatePercentForDisplay(e.CurrentUserScore, e.Privilege.Value);
            }
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void ItemDataBound(object sender, PrivilegeListEventArgs <QaSettingInfo, int, HyperLink, Literal> e)
 {
 }