Exemple #1
0
        private void novoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormControleEntrega frm = new FormControleEntrega();

            frm.ShowDialog();
            frm.Dispose();
            Carrega();
        }
Exemple #2
0
        private void salvarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var entrega = new Entrega
            {
                Id          = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()),
                IdCaminhao  = int.Parse(dataGridView1.CurrentRow.Cells[1].Value.ToString()),
                DataSaida   = DateTime.Parse(dataGridView1.CurrentRow.Cells[2].Value.ToString()),
                DataChegada = DateTime.Parse(dataGridView1.CurrentRow.Cells[3].Value.ToString()),
                KmFinal     = int.Parse(dataGridView1.CurrentRow.Cells[4].Value.ToString()),
                Observacao  = dataGridView1.CurrentRow.Cells[5].Value.ToString()
            };
            FormControleEntrega frm = new FormControleEntrega();

            frm.entrega = entrega;
            frm.Alterar = true;
            frm.ShowDialog();
            frm.Dispose();
            Carrega();
        }
Exemple #3
0
        private void viajemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new FormControleEntrega();

            frm.ShowDialog();
        }