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

            dtgUsersByOrganization.ItemsSource = userList;
            ClearRoles();
        }
        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 btnSelect_Click(object sender, RoutedEventArgs e)
 {
     if (dtgOrganizations.SelectedItem != null)
     {
         var OrganizationDTO = dtgOrganizations.SelectedItem as OrganizationDTO;
         if (OrganizationDTO != null)
         {
             OrganizationSelectedArg arg = new OrganizationSelectedArg();
             arg.OrganizationID = OrganizationDTO.ID;
             if (OrganizationSelected != null)
             {
                 OrganizationSelected(this, arg);
             }
         }
     }
 }
 private void FrmOrganizationSelect_OrganizationSelected(object sender, OrganizationSelectedArg e)
 {
     MyProjectManager.GetMyProjectManager.CloseDialog(sender);
     GetOrganization(e.OrganizationID);
 }