Ejemplo n.º 1
0
        private void ucUserList_UserSelected(object sender, UserSelectedArg e)
        {
            selectedUser = e.User;
            var OrganizationList = bizOrganization.GetOrganizationsByUser(selectedUser.ID);

            dtgOrganizationsByUser.ItemsSource = OrganizationList;
            ClearRoles();
        }
        private void ucUserList_UserSelected(object sender, UserSelectedArg e)
        {
            BizRole bizRole = new BizRole();

            selectedUser = e.User;
            var roleList = bizRole.GetRolesByUser(selectedUser.ID);

            dtgRolesByUser.ItemsSource = roleList;
        }
Ejemplo n.º 3
0
        void frm_UserSelected(object sender, UserSelectedArg e, Window window)
        {
            window.Close();

            var organizationUserID = bizOrganization.AddUserToOrganization(selectedOrganization.ID, e.User.ID);


            List <UserDTO> userList = bizUser.GetUserByOrganization(selectedOrganization.ID);

            dtgUsersByOrganization.ItemsSource = userList;
        }
        void frm_UserSelected(object sender, UserSelectedArg e, Window window)
        {
            window.Close();
            BizRole bizRole = new BizRole();

            bizRole.AddUserToRole(selectedRole.ID, e.User.ID);

            BizUser        bizUser  = new BizUser();
            List <UserDTO> userList = bizUser.GetUserByRole(selectedRole.ID);

            dtgUsersByRole.ItemsSource = userList;
        }
Ejemplo n.º 5
0
 private void dtgUsers_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
 {
     if (e.AddedItems != null && e.AddedItems.Count > 0)
     {
         var userDTO = e.AddedItems[0] as UserDTO;
         if (userDTO != null)
         {
             UserSelectedArg arg = new UserSelectedArg();
             arg.UserID = userDTO.ID;
             if (UserSelected != null)
                 UserSelected(this, arg);
         }
     }
 }
Ejemplo n.º 6
0
 private void FrmUserSelect_UserSelected(object sender, UserSelectedArg e)
 {
     throw new NotImplementedException();
 }