public DelAutoForm(MainForm own) { Garage current; InitializeComponent(); owner = own; current = owner.comp.getfirstGarage(); while (current != null) { comboBox1.Items.Add(current.getNumber()); current = current.getNext(); } comboBox1.SelectedIndex = 0; }
public DelGarForm(MainForm own) { InitializeComponent(); owner=own; label1.Text=("Удалить гараж №"+owner.comp.getfirstGarage().getNumber()+"?"); }
public AddGarForm(MainForm own) { InitializeComponent(); owner = own; }