private void imprim_Click(object sender, RoutedEventArgs e) { if (succ > 0) { rapport_facture cr_facture = new rapport_facture(3, a.list_inf, list_info_fact); cr_facture.Show(); } else { MessageBox.Show("Vous devez valider la commande avant !!"); } }
private void imprim_Click(object sender, RoutedEventArgs e) { if (valide) { rapport_facture cr_facture = new rapport_facture(1, Window1.list_inf, list_info_fact); cr_facture.Show(); } else { MessageBox.Show("Vous devez valider l'achat avant !!"); } }