Esempio n. 1
0
        private void ucOrganizationList_OrganizationSelected(object sender, OrganizationSelectedArg e)
        {
            selectedOrganization = e.Organization;
            List <UserDTO> userList = bizUser.GetUserByOrganization(selectedOrganization.ID);

            dtgUsersByOrganization.ItemsSource = userList;
            ClearRoles();
        }
Esempio n. 2
0
        void frm_OrganizationSelected(object sender, OrganizationSelectedArg e, Window window)
        {
            window.Close();

            bizOrganization.AddUserToOrganization(e.Organization.ID, selectedUser.ID);
            var OrganizationList = bizOrganization.GetOrganizationsByUser(selectedUser.ID);

            dtgOrganizationsByUser.ItemsSource = OrganizationList;
        }
 private void dtgOrganizations_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
 {
     if (e.AddedItems != null && e.AddedItems.Count > 0)
     {
         var OrganizationDTO = e.AddedItems[0] as OrganizationDTO;
         if (OrganizationDTO != null)
         {
             OrganizationSelectedArg arg = new OrganizationSelectedArg();
             arg.Organization = OrganizationDTO;
             if (OrganizationSelected != null)
             {
                 OrganizationSelected(this, arg);
             }
         }
     }
 }
 void ucOrganizationList_OrganizationSelected(object sender, OrganizationSelectedArg e)
 {
     ucOrganizationEdit.ShowOrganization(e.Organization);
 }