private void PayerExec() { Mediator <bool> .Instance.Send(false); Commande x = new Commande(IsBenevol); ServiceClientLocator.Instance.Commande.Insert(x); foreach (var item in Ready) { LigneDeCommande Ligne = new LigneDeCommande(0, item.ProduitId, item.Quantite, item.TestPrix); InsterDb.Add(Ligne); if (Ready.Count == InsterDb.Count) { foreach (var Insert in InsterDb) { ServiceClientLocator.Instance.LigneDeCommand.Insert(Insert); } } } Ready.Clear(); InsterDb.Clear(); PrixTotal = 0; }
private void AnnulExec() { Ready.Clear(); }
/// <summary> /// Resets all ready users to attending. /// </summary> public void ResetReady() { Attending = Attending.Union(Ready).ToDictionary(k => k.Key, v => v.Value); Ready.Clear(); }