Beispiel #1
0
        protected void btnListRoles_Click(object sender, EventArgs e)
        {
            try
            {

                um = new UserManager();
                lstbxUsers.Items.Clear();
                um.List_User(txtbURL.Text, txtbToken.Text, txtbToken.Text);

                foreach (User u in um.user_list)
                {
                    lstbxUsers.Items.Add(u.name + " " + u.id);

                }

                if (um.user_list.Count != 0)
                {
                    lnkbtnPrintFV.Visible = true;
                }
                else
                {
                    lnkbtnPrintFV.Visible = false;
                }

            }
            catch (Exception x)
            {
                lblUser.Text = x.Message;
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (sender != null && sender.GetType().Equals(this.GetType()))
            {
                if (((UsersView)sender).CurrentManager != null)
                    um = ((UsersView)sender).CurrentManager;
                else
                    um = new UserManager();

            }
            else
            {
                um = new UserManager();
            }
            lstbxUsers.SelectedIndexChanged += new EventHandler(lstbxUsers_SelectedIndexChanged);
        }