Esempio n. 1
0
        public static List <UserByApp> GetAllUsers()
        {
            UserByApp        wUserByApp;
            List <UserByApp> wUsersList = new List <UserByApp>();

            try
            {
                foreach (MembershipUser wMembershipUser in Membership.GetAllUsers())
                {
                    wUserByApp = new UserByApp(wMembershipUser);
                    wUsersList.Add(wUserByApp);
                }
            }
            catch (Exception ex)
            {
                FwkMessageView.Show(ex, "MembershipUserCollection", System.Windows.Forms.MessageBoxButtons.OK, Fwk.Bases.FrontEnd.Controls.MessageBoxIcon.Error);
            }

            return(wUsersList);
        }
Esempio n. 2
0
        public static List<UserByApp> GetAllUsers()
        {
            UserByApp wUserByApp;
            List<UserByApp> wUsersList = new List<UserByApp>();
            try
            {

                foreach (MembershipUser wMembershipUser in Membership.GetAllUsers())
                {
                    wUserByApp = new UserByApp(wMembershipUser);
                    wUsersList.Add(wUserByApp);
                }
             
            }
            catch (Exception ex)
            {
                FwkMessageView.Show(ex, "MembershipUserCollection", System.Windows.Forms.MessageBoxButtons.OK, Fwk.Bases.FrontEnd.Controls.MessageBoxIcon.Error);
            }

            return wUsersList;

        }