public override void NavigateBackToOverview() { _emulatorProxy = null; IWorkflowManager workflowManager = ServiceRegistration.Get <IWorkflowManager>(); workflowManager.NavigatePopToState(_enteredState, _enteredState != STATE_OVERVIEW); }
public void BeginNewEmulatorConfiguration() { ListItem selectedTypeItem = _emulatorTypes.FirstOrDefault(i => i.Selected); if (selectedTypeItem == null) { return; } EmulatorType emulatorType = (EmulatorType)selectedTypeItem.AdditionalProperties[KEY_EMULATOR_TYPE]; _emulatorProxy = new EmulatorProxy(emulatorType); if (emulatorType == EmulatorType.Emulator) { NavigatePush(STATE_CHOOSE_PATH); } else if (emulatorType == EmulatorType.LibRetro) { NavigatePush(STATE_CHOOSE_CORE); } else { NavigatePush(STATE_EDIT_NAME); } }
protected void EditEmulatorConfiguration(ListItem item) { _emulatorProxy = new EmulatorProxy((EmulatorConfiguration)item.AdditionalProperties[KEY_CONFIGURATION]); if (_emulatorProxy.EmulatorType == EmulatorType.Emulator || _emulatorProxy.EmulatorType == EmulatorType.LibRetro) { NavigatePush(STATE_CHOOSE_PATH); } else { NavigatePush(STATE_EDIT_NAME); } }