예제 #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);
        }
예제 #2
0
파일: Helper.cs 프로젝트: Pelsoft/fwk_10.3
        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;

        }