public AddFlat(int ID) { InitializeComponent(); button1.Text = "Изменить"; flat = new flat(ID); setInfo(); }
public AddFlat() { InitializeComponent(); button1.Text = "Добавить"; flat = new flat(); }