private void opérationsSupprimerToolStripMenuItem_Click(object sender, EventArgs e) { IFabriqueCommande fab = LesFabriques.GetInstance().FabriqueDe(m_articleCourant.GetType()); ICommande commande = fab.CréerCommandeSupprimer(m_articleCourant); commande.Exécuter(); }
private void Rétablir_Btn_Click(object sender, EventArgs e) { //Numero C : A revoir if (!m_gestionCommandes.AucuneRétablissantes) { ICommande commandeRétablissante = m_gestionCommandes.RetirerCommandeRétablissante(); commandeRétablissante.Rétablir(); m_gestionCommandes.PousserCommandeAnnulable(commandeRétablissante); } }
/*--Opération Modifiante effectuer dans le menu--*/ public void OpérationsAjouter(object p_sender, EventArgs p_e) { ToolStripMenuItem tsi = (ToolStripMenuItem)p_sender; FabriqueEtArticle fabriqueEtArticle = (FabriqueEtArticle)tsi.Tag; IFabriqueCommande fab = (IFabriqueCommande)fabriqueEtArticle.Fabrique; ICommande commande = fab.CréerCommandeAjouter(fabriqueEtArticle.Article); commande.Exécuter(); }
public HomeController(IArticle s1, ICommande s2, ICategorie s3, IFavoris s4) { this.s1 = s1; this.s2 = s2; this.s3 = s3; this.s4 = s4; ViewBag.categories = s3.getAllCategorie(); ViewBag.articles = s1.getAllArticle(); ViewBag.TopSArticle = s1.getTopSeeledarticle(); ViewBag.sessionkayna = true; }
public ProductController(IArticle s1, ICommande s2, ICategorie s3, IFavoris s4, ICommentaire s5) { this.s1 = s1; this.s2 = s2; this.s3 = s3; this.s4 = s4; this.s5 = s5; ViewBag.categories = s3.getAllCategorie(); ViewBag.sessionkayna = true; }
public LoginController(IClient s0, IArticle s1, ICommande s2, ICategorie s3, IFavoris s4) { this.s0 = s0; this.s1 = s1; this.s2 = s2; this.s3 = s3; this.s4 = s4; ViewBag.categories = s3.getAllCategorie(); ViewBag.articles = s1.getAllArticle(); ViewBag.TopSArticle = s1.getTopSeeledarticle(); ViewBag.sessionkayna = false; }
public LangageController(IArticle s1, ICommande s2, ICategorie s3, IFavoris s4) { this.s1 = s1; this.s2 = s2; this.s3 = s3; this.s4 = s4; ViewBag.categories = s3.getAllCategorie(); ViewBag.articles = s1.getAllArticle(); ViewBag.TopSArticle = s1.getTopSeeledarticle(); ViewBag.num = s2.countCommandeClient(9999); ViewBag.charts = s2.getCommandeById(9999); ViewBag.favoris = s4.getFavorisClient(9999); ViewBag.qtqfavoris = s4.totalFavorisClient(9999); ViewBag.totalcart = s2.totalClient(9999); ViewBag.LastCommande = s2.getLastCommande(); }
public AdminHomeController(IClient s0, IArticle s1, ICategorie s3, ICommande s2) { this.s0 = s0; this.s1 = s1; this.s2 = s2; this.s3 = s3; ViewBag.categories = s3.getAllCategorie(); ViewBag.articles = s1.getAllArticle(); ViewBag.TopSArticle = s1.getTopSeeledarticle(); ViewBag.num = s2.countCommandeClient(9999); ViewBag.charts = s2.getCommandeById(9999); ViewBag.totalcart = s2.totalClient(9999); ViewBag.LastCommande = s2.getLastCommande(); ViewBag.nbclient = s0.countClients(); ViewBag.nbarticlevendu = s1.nbarticleVendu(); ViewBag.thisweek = s2.thisweek(); ViewBag.totalearn = s2.totalearn(); }
public void PousserCommandeAnnulable(ICommande commande) { Annulables.Push(commande); }
public void PousserCommandeRétablissante(ICommande commande) => Rétablissantes.Push(commande);
public void SetCommand(ICommande commande) { emplacement = commande; Console.WriteLine(string.Format("Telecommande simple : set commande principal : {0}", commande.GetType())); }
public AcceuilController(IArticle s1, ICommande s2, ICategorie s3) { this.s1 = s1; this.s2 = s2; this.s3 = s3; }