Exemplo n.º 1
0
        private void dtCustomer_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            RentalForm frm = (RentalForm)Application.OpenForms["RentalForm"];
            var        row = dtCustomer.CurrentRow;

            frm.cmbCustomer.Text = row.Cells[2].Value.ToString();
            this.Close();
        }
Exemplo n.º 2
0
        private void btnRent_Click(object sender, EventArgs e)
        {
            RentalForm frm = new RentalForm();

            frm.Show();
        }