private void FilterSalesRegions(int countryid)
        {
            FullyObservableCollection <SalesRegionModel> tempsalesregions = new FullyObservableCollection <SalesRegionModel>();

            SalesRegions?.Clear();
            foreach (SalesRegionModel sd in StaticCollections.SalesRegions)
            {
                if (sd.CountryID == countryid && !sd.Deleted)
                {
                    tempsalesregions.Add(sd);
                }
            }
            SalesRegions = tempsalesregions;
        }
Exemple #2
0
        void mrsClient_GetSalesRegionByStateCompleted(object sender, GetSalesRegionByStateCompletedEventArgs e)
        {
            SalesRegions.Clear();
            SalesRegions.Add(new SQSSalesRegion()
            {
                RegionId = 0, RegionName = "All"
            });
            foreach (var item in e.Result)
            {
                SalesRegions.Add(item);
            }
            SelectedRegionId = (App.Current as App).CurrentRegionId;

            SearchNotesTemplate();
        }