private void newCar_Click(object sender, EventArgs e) { ObjectEdit objEdit = new ObjectEdit(); objEdit.Owner = this; objEdit.ShowDialog(); }
private void editButton_Click(object sender, EventArgs e)//открытие формы изменения { ObjectEdit objectEdit = new ObjectEdit(Data.CurrentObject); objectEdit.Owner = this; objectEdit.ShowDialog(); }