public void SelectAndSetComponents(SimCorpMobile simCorpMobile) { ShowMenuOfAvailableComponents(); string enteredComponentTypeIndex = Input.ReadLine(); try { AvailableForSettingPhoneComponents componentType = GetComponentType(enteredComponentTypeIndex); ComponentSetting(simCorpMobile, componentType); } catch (Exception e) { Output.Write(e.Message); } ShowExitDialog(); string enteredContinueIndication = Input.ReadLine(); try { bool continueIndication = GetContinueIndication(enteredContinueIndication); if (continueIndication) { SelectAndSetComponents(simCorpMobile); } } catch (Exception e) { Output.Write(e.Message); } }
public void ComponentSetting(SimCorpMobile simCorpMobile, AvailableForSettingPhoneComponents component) { switch (component) { case AvailableForSettingPhoneComponents.PlaybackComponent: ShowMenuOfPlaybacks(); GetAndProcessUserSelectionOfPlayback(simCorpMobile); break; case AvailableForSettingPhoneComponents.ChargerComponent: ShowMenuOfChargers(); GetAndProcessUserSelectionOfCharger(simCorpMobile); break; case AvailableForSettingPhoneComponents.StorageComponent: ShowMenuOfStorages(); GetAndProcessUserSelectionOfStorage(simCorpMobile); break; case AvailableForSettingPhoneComponents.SIMCard: ShowMenuOfSimCards(); GetAndProcessUserSelectionOfSimCard(simCorpMobile); break; } }