private void btnAddDriver_Click(object sender, EventArgs e) { ShowDriverForm showdr = new ShowDriverForm(new Driver(" ", " "), this); Hide(); showdr.ShowDialog(); }
private void btnEditdr_Click(object sender, EventArgs e) { if (lbDrivers.SelectedItem != null) { ShowDriverForm showdr = new ShowDriverForm((Driver)lbDrivers.SelectedItem, this); Hide(); showdr.ShowDialog(); } }