public static void NavigateNextPage(GoogleProductModel googleProductModel, Dashboard page) { //TODO Maybe check is as an instance of // rather than strings string productName = googleProductModel.ProductName; switch (productName) { case ADCS: { Page_Android_Device_Configuration_Service nextPage = new Page_Android_Device_Configuration_Service(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case ANL: { Page_Assistant_Notes_and_Lists nextPage = new Page_Assistant_Notes_and_Lists(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case Blogger: { Page_Blogger nextPage = new Page_Blogger(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case Bookmarks: { Page_Bookmarks nextPage = new Page_Bookmarks(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case Calendar: { Page_Calendar nextPage = new Page_Calendar(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case Chrome: { Page_Chrome nextPage = new Page_Chrome(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case GPC: { } break; case Contacts: { Page_Contacts nextPage = new Page_Contacts(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case CP: { Page_Cloud_Print nextPage = new Page_Cloud_Print(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case CS: { Page_Classic_Sites nextPage = new Page_Classic_Sites(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case Drive: { Page_Drive nextPage = new Page_Drive(googleProductModel); page.NavigationService.Navigate(nextPage); } break; case Fit: productObject = new Android_Device_Configuration_Service(); break; case GC: productObject = new Android_Device_Configuration_Service(); break; case GMB: productObject = new Android_Device_Configuration_Service(); break; case GPay: productObject = new Android_Device_Configuration_Service(); break; case GPB: productObject = new Android_Device_Configuration_Service(); break; case GPGS: productObject = new Android_Device_Configuration_Service(); break; case GPhotos: productObject = new Android_Device_Configuration_Service(); break; case GPlusS: productObject = new Android_Device_Configuration_Service(); break; case GPM: productObject = new Android_Device_Configuration_Service(); break; case GPMTV: productObject = new Android_Device_Configuration_Service(); break; case GPS: productObject = new Android_Device_Configuration_Service(); break; case GS: productObject = new Android_Device_Configuration_Service(); break; case GSM: productObject = new Android_Device_Configuration_Service(); break; case GW: productObject = new Android_Device_Configuration_Service(); break; case HA: productObject = new Android_Device_Configuration_Service(); break; case Hangouts: productObject = new Android_Device_Configuration_Service(); break; case Keep: productObject = new Android_Device_Configuration_Service(); break; case LH: productObject = new Android_Device_Configuration_Service(); break; case MA: productObject = new Android_Device_Configuration_Service(); break; case Mail: productObject = new Android_Device_Configuration_Service(); break; case Maps: productObject = new Android_Device_Configuration_Service(); break; case MapsYP: productObject = new Android_Device_Configuration_Service(); break; case News: productObject = new Android_Device_Configuration_Service(); break; case PR: productObject = new Android_Device_Configuration_Service(); break; case Profile: productObject = new Android_Device_Configuration_Service(); break; case Reminders: productObject = new Android_Device_Configuration_Service(); break; case Saved: productObject = new Android_Device_Configuration_Service(); break; case SL: productObject = new Android_Device_Configuration_Service(); break; case Tasks: productObject = new Android_Device_Configuration_Service(); break; case Voice: productObject = new Android_Device_Configuration_Service(); break; case YouTube: productObject = new Android_Device_Configuration_Service(); break; default: productObject = new Android_Device_Configuration_Service(); break; } }
public static void StartWork(GoogleProductModel googleProductModel, IntroPage_5 page) { //TODO Maybe check is as an instance of // rather than strings string productName = googleProductModel.ProductName; switch (productName) { case ADCS: productObject = new Android_Device_Configuration_Service(); ((Android_Device_Configuration_Service)productObject).GoogleProduct = googleProductModel; ((Android_Device_Configuration_Service)productObject).startWork(page); break; case ANL: productObject = new Assistant_Notes_and_Lists(); ((Assistant_Notes_and_Lists)productObject).GoogleProduct = googleProductModel; ((Assistant_Notes_and_Lists)productObject).startWork(page); break; case Blogger: productObject = new Blogger(); ((Blogger)productObject).GoogleProduct = googleProductModel; ((Blogger)productObject).startWork(page); break; case Bookmarks: productObject = new Bookmarks(); ((Bookmarks)productObject).GoogleProduct = googleProductModel; ((Bookmarks)productObject).startWork(page); break; case Calendar: productObject = new Calendar(); ((Calendar)productObject).GoogleProduct = googleProductModel; ((Calendar)productObject).startWork(page); break; case Chrome: productObject = new Chrome(); ((Chrome)productObject).GoogleProduct = googleProductModel; ((Chrome)productObject).startWork(page); break; case GPC: productObject = new Android_Device_Configuration_Service(); break; case Contacts: productObject = new Contacts(); ((Contacts)productObject).GoogleProduct = googleProductModel; ((Contacts)productObject).startWork(page); break; case CP: productObject = new Cloud_Print(); ((Cloud_Print)productObject).GoogleProduct = googleProductModel; ((Cloud_Print)productObject).startWork(page); break; case CS: productObject = new Classic_Sites(); ((Classic_Sites)productObject).GoogleProduct = googleProductModel; ((Classic_Sites)productObject).startWork(page); break; case Drive: productObject = new Drive(); ((Drive)productObject).GoogleProduct = googleProductModel; ((Drive)productObject).startWork(page); break; case Fit: productObject = new Android_Device_Configuration_Service(); break; case GC: productObject = new Android_Device_Configuration_Service(); break; case GMB: productObject = new Android_Device_Configuration_Service(); break; case GPay: productObject = new Android_Device_Configuration_Service(); break; case GPB: productObject = new Android_Device_Configuration_Service(); break; case GPGS: productObject = new Android_Device_Configuration_Service(); break; case GPhotos: productObject = new Android_Device_Configuration_Service(); break; case GPlusS: productObject = new Android_Device_Configuration_Service(); break; case GPM: productObject = new Android_Device_Configuration_Service(); break; case GPMTV: productObject = new Android_Device_Configuration_Service(); break; case GPS: productObject = new Android_Device_Configuration_Service(); break; case GS: productObject = new Android_Device_Configuration_Service(); break; case GSM: productObject = new Android_Device_Configuration_Service(); break; case GW: productObject = new Android_Device_Configuration_Service(); break; case HA: productObject = new Android_Device_Configuration_Service(); break; case Hangouts: productObject = new Android_Device_Configuration_Service(); break; case Keep: productObject = new Android_Device_Configuration_Service(); break; case LH: productObject = new Android_Device_Configuration_Service(); break; case MA: productObject = new Android_Device_Configuration_Service(); break; case Mail: productObject = new Android_Device_Configuration_Service(); break; case Maps: productObject = new Android_Device_Configuration_Service(); break; case MapsYP: productObject = new Android_Device_Configuration_Service(); break; case News: productObject = new Android_Device_Configuration_Service(); break; case PR: productObject = new Android_Device_Configuration_Service(); break; case Profile: productObject = new Android_Device_Configuration_Service(); break; case Reminders: productObject = new Android_Device_Configuration_Service(); break; case Saved: productObject = new Android_Device_Configuration_Service(); break; case SL: productObject = new Android_Device_Configuration_Service(); break; case Tasks: productObject = new Android_Device_Configuration_Service(); break; case Voice: productObject = new Android_Device_Configuration_Service(); break; case YouTube: productObject = new Android_Device_Configuration_Service(); break; default: productObject = new Android_Device_Configuration_Service(); break; } googleProductModel.ProductObject = productObject; }