Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Ajouter_une_nouvelle_ligne_commande nouvelleLigneCommande = new Ajouter_une_nouvelle_ligne_commande();

            // nouvelleLigneCommande.UpdateEventHandler += f_UpdateEventHandler;
            nouvelleLigneCommande.ShowDialog();
        }
Esempio n. 2
0
        private void F_Load_1(object sender, EventArgs e)
        {
            //dataGridView1.DataSource = getAllLines();
            F f = new F();
            Ajouter_une_nouvelle_ligne_commande nouvelleLigneCommande = new Ajouter_une_nouvelle_ligne_commande();

            Connexion    conn     = new Connexion();
            string       query    = "SELECT NumCmd FROM commande WHERE NumCmd=(SELECT max(NumCmd) FROM commande)";
            MySqlCommand commnand = new MySqlCommand(query, conn.getConnection());

            conn.openConnection();
            object result = commnand.ExecuteScalar();

            commnand.ExecuteNonQuery();
            textBox1.Text = result.ToString();
            conn.closeConnection();
        }
Esempio n. 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            F f = new F();
            Ajouter_une_nouvelle_ligne_commande nouvelleLigneCommande = new Ajouter_une_nouvelle_ligne_commande();


            nouvelleLigneCommande.TopMost       = true;
            nouvelleLigneCommande.StartPosition = FormStartPosition.CenterScreen;
            nouvelleLigneCommande.Show();
            nouvelleLigneCommande.codeP.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            nouvelleLigneCommande.des.Text   = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            nouvelleLigneCommande.type.Text  = dataGridView1.CurrentRow.Cells[2].Value.ToString();

            //nouvelleLigneCommande.Closed += (s, args) => this.Close();

            this.Close();
        }
Esempio n. 4
0
 public F(Ajouter_une_nouvelle_ligne_commande ajouterUneNouvelleLigneCommande)
 {
     throw new NotImplementedException();
 }