/// <summary> /// Helper method to set the type-combobox with the correct Enum values /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void comboBox3_SelectedIndexChanged(object sender, EventArgs e) { if (comboBoxCategory.SelectedItem.Equals(Category.Residential)) { comboBoxType.DataSource = TypeRes.GetValues(typeof(TypeRes)); } else { comboBoxType.DataSource = TypeCom.GetValues(typeof(TypeCom)); } }
public House(string id, string color, LegalForms lf, Bitmap image, Address address, Category cat, TypeAll typeAll) { this.color = color; this.Address = address; this.Id = id; this.TypeAll = typeAll; this.typeRes = TypeRes.House; // The unique attribute for this class this.UniqueAttribute = color; this.LegalForm = lf; this.Image = image; this.Category = cat; }
/// <summary> /// /// </summary> /// <param name="address"></param> /// <param name="id"></param> /// <param name="floorNumber"></param> /// <param name="squareMeters"></param> /// <param name="lf"></param> /// <param name="image"></param> /// <param name="street"></param> /// <param name="city"></param> /// <param name="c"></param> /// <param name="ZipCode"></param> public Apartment(string id, string floorNumber, LegalForms lf, Bitmap image, Address address, Category cat, TypeAll typeAll) { floorNum = floorNumber; this.Id = id; this.Address = address; this.TypeAll = typeAll; this.typeRes = TypeRes.Apartment; // The unique attribute for this class this.UniqueAttribute = floorNumber; this.LegalForm = lf; this.Image = image; this.Category = cat; }
/// <summary> /// /// </summary> /// <param name="address"></param> /// <param name="id"></param> /// <param name="lawnSize"></param> /// <param name="squareMeters"></param> /// <param name="lf"></param> /// <param name="image"></param> /// <param name="street"></param> /// <param name="city"></param> /// <param name="c"></param> /// <param name="ZipCode"></param> public Villa(string id, string lawnSize, LegalForms lf, Bitmap image, Address address, Category cat, TypeAll typeAll) { this.Address = address; this.Id = id; this.TypeAll = typeAll; this.typeRes = TypeRes.Villa; // The unique attribute for this class this.lawnSize = lawnSize; UniqueAttribute = lawnSize; this.LegalForm = lf; this.Image = image; this.Category = cat; }
public Townhouse(string id, string height, LegalForms lf, Bitmap image, Address address, Category cat, TypeAll typeAll) { this.Address = address; this.Id = id; this.TypeAll = typeAll; this.typeRes = TypeRes.Townhouse; // The unique attribute for this class this.height = height; UniqueAttribute = height; this.LegalForm = lf; this.Image = image; this.Category = cat; }