Exemplo n.º 1
0
        private void btnChangeRole_Click(object sender, EventArgs e)
        {
            UserModel user = new UserModel()
            {
                UserId     = Convert.ToInt32(listViewUser.SelectedItems[0].SubItems[0].Text),
                TypeOfUser = listViewUser.SelectedItems[0].SubItems[5].Text,
            };

            UserOverview.ChangeRole(user);
            FillListView();
        }