private void addCarBtn_Click(object sender, EventArgs e) { Add_item addItem = new Add_item(2, driverBase, carsBase); addItem.Owner = this; addItem.ShowDialog(); }
private void addDealBtn_Click(object sender, EventArgs e) { FillDriversList(); FillCarsList(); Add_item addItem = new Add_item(3, driverBase, carsBase); addItem.Owner = this; addItem.ShowDialog(); }