Esempio n. 1
0
        private void EditToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddRental form = new AddRental(dataGridView1.CurrentRow.Cells[0].Value.ToString(), dataGridView1.CurrentRow.Cells[1].Value.ToString(), dataGridView1.CurrentRow.Cells[2].Value.ToString(), dataGridView1.CurrentRow.Cells[3].Value.ToString(), dataGridView1.CurrentRow.Cells[6].Value.ToString(), dataGridView1.CurrentRow.Cells[7].Value.ToString(), dataGridView1.CurrentRow.Cells[14].Value.ToString(), dataGridView1.CurrentRow.Cells[13].Value.ToString());

            form.FormClosed += (s, args) => BindData();
            form.Show();
        }
Esempio n. 2
0
        private void AddRentalButton_Click(object sender, EventArgs e)
        {
            AddRental form = new AddRental();

            form.FormClosed += (s, args) => BindData();
            form.Show();
        }