DashBoard dgv double click ok

This commit is contained in:
Adrien VAN DAMME
2019-01-27 11:52:08 +01:00
parent 79c532dc7c
commit 17331c389e
9 changed files with 124 additions and 82 deletions

View File

@@ -95,8 +95,9 @@ namespace ProjetTheAlone.ViewModel
}
else
{
new G_T_equipe(chConnexion).Modifier(UneEquipe.ID, UneEquipe.Nom, 0, null);
BcpEquipes[nAjout] = new C_T_equipe(UneEquipe.ID, UneEquipe.Nom, 0, null);
new G_T_equipe(chConnexion).Modifier(UneEquipe.ID, UneEquipe.Nom, UneEquipe.Point, UneEquipe.IDEvent);
BcpEquipes[nAjout] = new C_T_equipe(UneEquipe.ID, UneEquipe.Nom, UneEquipe.Point, UneEquipe.IDEvent);
}
ActiverUneFiche = false;
}

View File

@@ -169,8 +169,10 @@ namespace ProjetTheAlone.ViewModel
BcpTypeEvents = ChargerTypeEvent(chConnexion);
BcpEquipes = ChargerEquipes(chConnexion);
BcpParticipants = ChargerParticipant(chConnexion);
BcpJoueurs = ChargerJoueur(chConnexion);
cAfficherJoueur = new BaseCommande(ChargerJoueur);
ActiverUneFiche = false;
cConfirmer = new BaseCommande(Confirmer);
cAnnuler = new BaseCommande(Annuler);
@@ -192,7 +194,7 @@ namespace ProjetTheAlone.ViewModel
public BaseCommande cSupprimer { get; set; }
public BaseCommande cSupprimerJoueur { get; set; }
public BaseCommande cAjouterEquipe { get; set; }
public BaseCommande cAfficherJoueur { get; set; }
#endregion
#region Chargement
@@ -241,13 +243,19 @@ namespace ProjetTheAlone.ViewModel
return rep;
}
private ObservableCollection<C_T_listParticipant> ChargerJoueur (string chConn)
private void ChargerJoueur()
{
ObservableCollection<C_T_listParticipant> rep = new ObservableCollection<C_T_listParticipant>();
List< C_T_listParticipant> lTmp = new G_T_listParticipant(chConn).Lire("ID_benificiaire");
foreach (C_T_listParticipant Tmp in lTmp)
rep.Add(Tmp);
return rep;
if (EquipeSelectionnee != null)
{
ObservableCollection<C_T_listParticipant> rep = new ObservableCollection<C_T_listParticipant>();
List<C_T_listParticipant> lTmp = new G_T_listParticipant(chConnexion).Lire("B_nom");
foreach (C_T_listParticipant Tmp in lTmp)
if (EquipeSelectionnee.ID_equipe == Tmp.ID_equipe)
rep.Add(Tmp);
BcpJoueurs = rep;
}
}
#endregion
@@ -341,6 +349,7 @@ namespace ProjetTheAlone.ViewModel
}
}
}
public class VM_UnEvent : BasePropriete
{