private void helpAreaCombobox_SelectionChanged(AreaINCountry item, int index)
        {
            List <GuestRequest> afterFilter = myBL.groupByArea().AllElementsForKey(item);

            indexArea  = index;
            SelectArea = AreaList[indexArea];
            Refresh(guestRequests, afterFilter);
        }
示例#2
0
        private void helpAreaCombobox_SelectionChanged(AreaINCountry item, int index)
        {
            List <BE.HostingUnit> afterFilter = myBL.GroupByAreaOfUnit().AllElementsForKey(item);//.Where(item => item.Owner.HostId == hostingUnits[0].Owner.HostId).Select(x => x).ToList();

            indexArea  = index;
            SelectArea = AreaList[indexArea];
            Refresh(hostingUnits, afterFilter);
        }
        private void AreaCombobox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (AreaCombobox.SelectedItem == null)
            {
                indexArea            = -1;
                AreaClear.Visibility = Visibility.Hidden;
                return;
            }
            AreaINCountry areaIN = (AreaINCountry)AreaCombobox.SelectedItem;

            AreaClear.Visibility   = Visibility.Visible;
            AreaCombobox.IsEnabled = false;
            helpAreaCombobox_SelectionChanged(areaIN, AreaCombobox.SelectedIndex);
        }