DashBoard dgv double click ok
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user