private void SwitchPageNavigator(HorizontalNavID ID) { switch(ID) { case HorizontalNavID.Home: NavHome.Attributes.Add("class","Ms-phnavmidc0Sel"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc1"); NavInventory.Attributes.Add("class","Ms-phnavmidc1"); NavReports.Attributes.Add("class","Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc1"); break; case HorizontalNavID.MasterFiles: NavHome.Attributes.Add("class","Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc0Sel"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc1"); NavInventory.Attributes.Add("class","Ms-phnavmidc1"); NavReports.Attributes.Add("class","Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc1"); break; case HorizontalNavID.Rewards: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.Credits: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.GeneralLedger: NavHome.Attributes.Add("class","Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc0Sel"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc1"); NavInventory.Attributes.Add("class","Ms-phnavmidc1"); NavReports.Attributes.Add("class","Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc1"); break; case HorizontalNavID.PurchasesAndPayables: NavHome.Attributes.Add("class","Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc0Sel"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc1"); NavInventory.Attributes.Add("class","Ms-phnavmidc1"); NavReports.Attributes.Add("class","Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc1"); break; case HorizontalNavID.SalesAndReceivables: NavHome.Attributes.Add("class","Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc0Sel"); NavInventory.Attributes.Add("class","Ms-phnavmidc1"); NavReports.Attributes.Add("class","Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc1"); break; case HorizontalNavID.Inventory: NavHome.Attributes.Add("class","Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc1"); NavInventory.Attributes.Add("class","Ms-phnavmidc0Sel"); NavReports.Attributes.Add("class","Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc1"); break; case HorizontalNavID.AdministrationFiles: NavHome.Attributes.Add("class","Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc1"); NavInventory.Attributes.Add("class","Ms-phnavmidc1"); NavReports.Attributes.Add("class","Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc0Sel"); break; case HorizontalNavID.Reports: NavHome.Attributes.Add("class","Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc1"); NavInventory.Attributes.Add("class","Ms-phnavmidc1"); NavReports.Attributes.Add("class","Ms-phnavmidc0Sel"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc1"); break; default: NavHome.Attributes.Add("class","Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class","Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class","Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class","Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class","Ms-phnavmidc1"); NavInventory.Attributes.Add("class","Ms-phnavmidc1"); NavReports.Attributes.Add("class","Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class","Ms-phnavmidc1"); break; } }
private void SwitchPageNavigator(HorizontalNavID ID) { switch (ID) { case HorizontalNavID.Home: NavHome.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.MasterFiles: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.Rewards: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.Credits: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.GeneralLedger: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.PurchasesAndPayables: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.SalesAndReceivables: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.Inventory: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; case HorizontalNavID.AdministrationFiles: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc0Sel"); break; case HorizontalNavID.Reports: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc0Sel"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; default: NavHome.Attributes.Add("class", "Ms-phnavmidc1"); NavMasterFiles.Attributes.Add("class", "Ms-phnavmidc1"); NavRewards.Attributes.Add("class", "Ms-phnavmidc1"); NavCredits.Attributes.Add("class", "Ms-phnavmidc1"); NavGeneralLedger.Attributes.Add("class", "Ms-phnavmidc1"); NavPurchasesAndPayables.Attributes.Add("class", "Ms-phnavmidc1"); NavSalesAndReceivables.Attributes.Add("class", "Ms-phnavmidc1"); NavInventory.Attributes.Add("class", "Ms-phnavmidc1"); NavReports.Attributes.Add("class", "Ms-phnavmidc1"); NavAdministrationFiles.Attributes.Add("class", "Ms-phnavmidc1"); break; } }