public RentersList(RealEstateModel realEstateModel) : this()
 {
     try
     {
         this.realEstateModel = realEstateModel;
         estate.Text         += realEstateModel.ToString();
     }
     catch { }
 }
Beispiel #2
0
        public AppartmentList(RealEstateModel realEstateModel) : this()
        {
            try
            {
                this.realEstateModel = realEstateModel;
                estate.Text         += realEstateModel.ToString();
                NOA.Text            += Connection.getAppartments().Select("buildingID=" + realEstateModel.RealEstateID).CopyToDataTable().Rows.Count;
                getAppartments();

                NOAA.Text += Connection.getAppartments().Select("buildingID=" + realEstateModel.RealEstateID + " AND rented = 0").CopyToDataTable().Rows.Count;
            }
            catch { }
        }
Beispiel #3
0
 public RealEsateDialog(RealEstateModel realEstateModel) : this()
 {
     this.realEstateModel = realEstateModel;
     realEstate.Text      = realEstateModel.ToString();
 }