private void SetCredentialMessage() { switch (UserSecurityClass) { case MasterSecurityClass: CredentialMessage.InnerHtml = "Your sign-in credentials allow any jurisdiction to be updated."; break; case StateAdminSecurityClass: CredentialMessage.InnerHtml = "Your sign-in credentials permit any " + States.GetName(StateCode) + " jurisdiction to be updated."; break; case CountyAdminSecurityClass: CredentialMessage.InnerHtml = "Your sign-in credentials permit only " + Counties.GetFullName(StateCode, CountyCode) + " jurisdictions to be updated."; break; case LocalAdminSecurityClass: CredentialMessage.InnerHtml = "Your sign-in credentials permit only the " + LocalDistricts.GetFullName(StateCode, CountyCode, LocalCode) + " jurisdiction to be updated."; ChangeJurisdictionButton.Visible = false; break; default: throw new VoteException("Unexpected UserSecurityClass: " + UserSecurityClass); } }
private void SetSubHeading() { switch (AdminPageLevel) { //case AdminPageLevel.President: //case AdminPageLevel.PresidentTemplate: //case AdminPageLevel.Federal: // H2.InnerHtml = States.GetName(StateCode) + ", All States"; // break; case AdminPageLevel.State: H2.InnerHtml = "General State Information for " + States.GetName(StateCode); break; case AdminPageLevel.County: H2.InnerHtml = "General County Information for " + Counties.GetFullName(StateCode, CountyCode); break; case AdminPageLevel.Local: H2.InnerHtml = "General Local Information for " + LocalDistricts.GetFullName(StateCode, CountyCode, LocalCode); break; case AdminPageLevel.Unknown: H2.InnerHtml = "No Jurisdiction Selected"; break; } }
private void SetSubHeading() { switch (AdminPageLevel) { case AdminPageLevel.AllStates: H2.InnerHtml = "Bulk Email for All States"; break; case AdminPageLevel.State: H2.InnerHtml = $"Bulk Email for {States.GetName(StateCode)}"; break; case AdminPageLevel.County: H2.InnerHtml = $"Bulk Email for {Counties.GetFullName(StateCode, CountyCode)}"; break; case AdminPageLevel.Local: H2.InnerHtml = $"Bulk Email for {LocalDistricts.GetFullName(StateCode, CountyCode, LocalKey)}"; break; case AdminPageLevel.Unknown: H2.InnerHtml = "No Jurisdiction Selected"; break; } }
private void SetSubHeading() { switch (AdminPageLevel) { case AdminPageLevel.State: H2.InnerHtml = "General State Information for " + States.GetName(StateCode); break; case AdminPageLevel.County: H2.InnerHtml = "General County Information for " + Counties.GetFullName(StateCode, CountyCode); break; case AdminPageLevel.Local: H2.InnerHtml = "General Local Information for " + LocalDistricts.GetFullName(StateCode, CountyCode, LocalKey); FormatOtherCountiesMessage(MultiCountyMessage); break; case AdminPageLevel.Unknown: H2.InnerHtml = "No Jurisdiction Selected"; break; } }
// ReSharper restore UnassignedField.Global // ReSharper restore UnusedAutoPropertyAccessor.Global // ReSharper restore UnusedMethodReturnValue.Global // ReSharper restore UnusedMember.Global // ReSharper restore MemberCanBeProtected.Global // ReSharper restore MemberCanBePrivate.Global #endregion ReSharper restore #endregion Public #region Private private void SetCredentialMessage() { switch (UserSecurityClass) { case MasterSecurityClass: CredentialMessage.InnerHtml = "Your sign-in credentials allow access to all bulk mail capabilities."; break; case StateAdminSecurityClass: CredentialMessage.InnerHtml = $"Your sign-in credentials permit bulk mailing to any {States.GetName(StateCode)} recipients."; break; case CountyAdminSecurityClass: CredentialMessage.InnerHtml = $"Your sign-in credentials permit bulk mailing only to {Counties.GetFullName(StateCode, CountyCode)} recipients."; break; case LocalAdminSecurityClass: CredentialMessage.InnerHtml = $"Your sign-in credentials permit bulk mailing only to {LocalDistricts.GetFullName(StateCode, CountyCode, LocalKey)} recipients."; break; default: throw new VoteException($"Unexpected UserSecurityClass: {UserSecurityClass}"); } }
private void SetSubHeading() { switch (AdminPageLevel) { case AdminPageLevel.President: case AdminPageLevel.PresidentTemplate: case AdminPageLevel.Federal: H2.InnerHtml = States.GetName(StateCode) + ", All States"; break; case AdminPageLevel.State: H2.InnerHtml = "State Elections for " + States.GetName(StateCode); break; case AdminPageLevel.County: H2.InnerHtml = "County Elections for " + Counties.GetFullName(StateCode, CountyCode); break; case AdminPageLevel.Local: H2.InnerHtml = "Local Elections for " + LocalDistricts.GetFullName(StateCode, CountyCode, LocalKey); int countyCount; if ((countyCount = FormatOtherCountiesMessage(MultiCountyMessage)) > 1) { MultiCountyMessage.InnerText += $". Changes you make to elections will appear in {(countyCount == 2 ? "both" : "all")} counties."; } break; case AdminPageLevel.Unknown: H2.InnerHtml = "No Jurisdiction Selected"; break; } }
private void InitializeForCountyAdmin() { DialogCredentialMessage.InnerHtml = "Your sign-in credentials allow only " + Counties.GetFullName(_SecureAdminPage.StateCode, _SecureAdminPage.CountyCode) + " local districts to be selected."; StateName.InnerHtml = States.GetName(_SecureAdminPage.StateCode); StateDropDownList.AddCssClasses("hidden"); StateRadioButton.AddCssClasses("invisible"); CountyName.InnerHtml = Counties.GetName(_SecureAdminPage.StateCode, _SecureAdminPage.CountyCode); CountyDropDownList.AddCssClasses("hidden"); LocalName.AddCssClasses("hidden"); switch (_SecureAdminPage.AdminPageLevel) { case AdminPageLevel.County: CountyRadioButton.Checked = true; PopulateLocalDropDown(true); break; case AdminPageLevel.Local: LocalRadioButton.Checked = true; PopulateLocalDropDown(); break; } }
private void SetSubHeading() { switch (AdminPageLevel) { //case AdminPageLevel.President: //case AdminPageLevel.PresidentTemplate: //case AdminPageLevel.Federal: // H2.InnerHtml = States.GetName(StateCode) + ", All States"; // break; case AdminPageLevel.State: H2.InnerHtml = "State Offices for " + States.GetName(StateCode); break; case AdminPageLevel.County: H2.InnerHtml = "County Offices for " + Counties.GetFullName(StateCode, CountyCode); break; case AdminPageLevel.Local: H2.InnerHtml = "Local Offices for " + LocalDistricts.GetFullName(StateCode, CountyCode, LocalKey); FormatOtherCountiesMessage(MuliCountyMessage); break; case AdminPageLevel.Unknown: H2.InnerHtml = "No Jurisdiction Selected"; break; } }
private void SetCredentialMessage() { switch (UserSecurityClass) { case MasterSecurityClass: CredentialMessage.InnerHtml = IsSuperUser ? "Your sign-in credentials allow any offices to be updated." : "Your sign-in credentials allow any federal, state, county or local offices to be updated."; break; case StateAdminSecurityClass: CredentialMessage.InnerHtml = "Your sign-in credentials permit any " + States.GetName(StateCode) + " offices to be updated."; break; case CountyAdminSecurityClass: CredentialMessage.InnerHtml = "Your sign-in credentials permit only " + Counties.GetFullName(StateCode, CountyCode) + " offices to be updated."; break; case LocalAdminSecurityClass: CredentialMessage.InnerHtml = "Your sign-in credentials permit only " + LocalDistricts.GetFullName(StateCode, CountyCode, LocalKey) + " offices to be updated."; SelectJurisdictionButton.Visible = false; break; default: throw new VoteException("Unexpected UserSecurityClass: " + UserSecurityClass); } }