Esempio n. 1
0
        private void btnApprove_Click(object sender, EventArgs e)
        {
            if (usersGrid1.CurrentUser == null)
            {
                return;
            }
            if (usersGrid1.CurrentUser.IsApproved)
            {
                FwkMembership.UnApproveUser(usersGrid1.CurrentUser.UserName, frmAdmin.Provider.Name);
                MessageViewInfo.Show(string.Concat("User password was successfully ", "disapproved"));
            }
            else
            {
                FwkMembership.ApproveUser(usersGrid1.CurrentUser.UserName, frmAdmin.Provider.Name);
                MessageViewInfo.Show(string.Concat("User password was successfully ", "approved"));
            }

            usersGrid1.Initialize();
        }