コード例 #1
0
 public FormulaireTicket(decimal prix, PayementCommande p, int id, GestionCommande g)
 {
     InitializeComponent();
     this.prix = prix;
     this.p    = p;
     this.com  = id;
     this.g    = g;
 }
コード例 #2
0
        private void Paiement_Click(object sender, RoutedEventArgs e)
        {
            Commande cm1   = (Commande)dataGrid.SelectedValue;
            int      id    = cm1.IdCommande;
            int      index = dataGrid.SelectedIndex;

            Layouts.PayementCommande payment = new Layouts.PayementCommande(id, index, this);
            payment.ShowDialog();
        }