Пример #1
0
 private void Btn_Avanti_Click(object sender, EventArgs e)
 {
     if (Cmb_Fornitore.Text != "")
     {
         Program._Stato = "I";
         Dettaglio frmdt =
             new Dettaglio(Cmb_Fornitore.Text,
                           DTP_Ordine.Value.ToString("dd/MM/yyyy"),
                           lbl_ordine.Text,
                           DTP_Consegna.Value.ToString(),
                           lbl_Codice.Text);
         frmdt.ShowDialog();
     }
 }
Пример #2
0
        private void btn_modifica_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                Program._Stato = "M";

                var riga = dataGridView1.SelectedRows[0].Index;

                Dettaglio fdet = new Dettaglio(
                    dataGridView1[3, riga].Value.ToString(),
                    dataGridView1[2, riga].Value.ToString(),
                    dataGridView1[1, riga].Value.ToString(),
                    "", dataGridView1[4, riga].Value.ToString());
                fdet.ShowDialog();
            }
            else
            {
                MessageBox.Show("Selezionare l'ordine da modificare");
            }
        }
Пример #3
0
        private void Btn_inserisci_Click(object sender, EventArgs e)
        {
            Dettaglio fdet = new Dettaglio();

            fdet.ShowDialog();
        }