コード例 #1
0
        private void SetSampleBallotVisibility()
        {
            SampleBallot.Visible    = false;
            SpecialLinkLogo.Visible = false;
            SpecialLink.Visible     = false;
            var cookies = LocationCookies.GetCookies();

            if (cookies.IsValid)
            {
                TopOptionsOfficialsLink.HRef =
                    UrlManager.GetElectedPageUri(
                        cookies.State, cookies.Congress, cookies.StateSenate, cookies.StateHouse,
                        cookies.County)
                    .ToString();
            }
            else
            {
                //TopOptionsOfficials.Visible = false;
                TopOptions.Visible = false;
            }
        }