private void EditAppartmentToolStripMenuItem_Click_1(object sender, EventArgs e) { EditAppartment add = new EditAppartment(); add.MdiParent = this; add.Show(); }
private void Button2_Click(object sender, EventArgs e) { EditAppartment editAppartment = new EditAppartment(realEstateModel.RealEstateID); editAppartment.MdiParent = this.MdiParent; editAppartment.Show(); }