/** * Self made event Handler * It is called from the child component * giving all needed information about the real estate class */ public void handledForm(AddNewRealEstate realEstateFrom) { if (realEstateFrom.isHandled) { RealEstateInterface buffer = new RealEstateModel(realEstateFrom.realEstateComponents); this.addInternalStorage(buffer); this.addToDataGrid(buffer); } }
/** * Open new form view to read all information about the real Eastate; */ private void openNewEntryForm_Click(object sender, EventArgs e) { AddNewRealEstate realEstateFrom = new AddNewRealEstate(); realEstateFrom.Show(this); }