Esempio n. 1
0
        private void PopulateRegionData(DDLRegionSelection sel)
        {
            switch (sel)
            {
            case DDLRegionSelection.Agencies:
                PopulateAgenciesForUser();
                break;

            case DDLRegionSelection.SubStateRegions:
                PopulateSubStateRegionsForUser();
                break;

            case DDLRegionSelection.CMSRegions:
                PopulateCMSRegionsForUser();
                break;

            default:
                return;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Route calls to methods that perform action for the selected drop down.
        /// </summary>
        /// <param name="dropdown"></param>
        private void ShowDropdowns(DDLRegionSelection dropdown)
        {
            string StateFIPS = string.Empty;

            switch (dropdown)
            {
            case DDLRegionSelection.CMSRegions:
                HandleCMSRegionDisplayLogic();
                break;

            case DDLRegionSelection.States:
                HandleStateDisplayLogic();
                break;

            case DDLRegionSelection.SubStateRegions:
                if (this.AccountInfo.Scope == Scope.State)
                {
                    StateFIPS = this.AccountInfo.StateFIPS;
                }
                else
                {
                    StateFIPS = ddlStates.SelectedValue;
                }

                HandleSubStateDisplayLogic(StateFIPS);
                break;

            case DDLRegionSelection.Agencies:
                if (this.AccountInfo.Scope == Scope.State)
                {
                    StateFIPS = this.AccountInfo.StateFIPS;
                }
                else
                {
                    StateFIPS = ddlStates.SelectedValue;
                }

                HandleAgencyDisplayLogic(StateFIPS);
                break;
            }
        }