public async void Show() { IWizard wizard = (IWizard)Activator.CreateInstance(wizardType); await wizard.ShowAsync(parameter); ITemplate template = null; bool isEmpty = rootFrame.Content == null; if (!isEmpty) { template = rootFrame.Content as ITemplate; if (template != null) { isEmpty = template.ContentFrame.Content == null; } } if (isEmpty) { OutcomeCreatedGuidePost dialog = new OutcomeCreatedGuidePost(); await dialog.ShowAsync(); } else if (template != null && lastParameter != null) { template.UpdateActiveMenuItem(lastParameter); } }
public void GoBack() { bool isOutcome; ITemplate template = rootFrame.Content as ITemplate; if (template != null) { if (NavigateBack(template.ContentFrame)) { return; } isOutcome = template.ContentFrame.Content is OutcomeCreate; } else { isOutcome = rootFrame.Content is OutcomeCreate; } if (isOutcome) { OutcomeCreatedGuidePost dialog = new OutcomeCreatedGuidePost(); dialog.ShowAsync(); } }