public AddModel(AddCars m, string pt) { this.m = m; this.pt = pt; InitializeComponent(); }
private void newCarButton_Click(object sender, EventArgs e) { Form AddCars = new AddCars(this, null, s); AddCars.Owner = this; AddCars.ShowDialog(); updateListView(); }
private void carsView_MouseClick(object sender, MouseEventArgs e) { if (!admin) { string selected = carsView.SelectedItems[0].Text; Form AddCars = new AddCars(this, Cars.GetCar(int.Parse(selected)), s); AddCars.Owner = this; AddCars.ShowDialog(); updateListView(); } }