예제 #1
0
        private void RoomCountCB_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (RoomCountCB.SelectedIndex > -1)
            {
                property.RoomCount = RoomCountCB.SelectedItem.ToString();

                property = ToLet.DBDataProvider.DBDataProvider.getForRoomResult(property);

                // PriceRangeCB.SelectedIndex = PriceRangeCB.FindStringExact(property.RentRange);
                DurationCB.SelectedIndex = DurationCB.FindStringExact(property.Duration);
            }
            else
            {
            }
        }
예제 #2
0
        private void TenantCategoryCB_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (TenantCategoryCB.SelectedIndex > -1)
            {
                property.TenantCategory = TenantCategoryCB.SelectedItem.ToString();
                property = ToLet.DBDataProvider.DBDataProvider.getForTenantResult(property);


                HomeCategoryCB.SelectedIndex = HomeCategoryCB.FindStringExact(property.HomeCategory);
                LocationCB.SelectedIndex     = LocationCB.FindStringExact(property.Location);

                // PriceRangeCB.SelectedIndex = PriceRangeCB.FindStringExact(property.RentRange);
                RoomCountCB.SelectedIndex = RoomCountCB.FindStringExact(property.RoomCount);
                DurationCB.SelectedIndex  = DurationCB.FindStringExact(property.Duration);
            }
            else
            {
            }
        }