public async Task GenerateNewItemAsync(TemplateType templateType, UserSelection userSelection) { try { await NewItemGenController.Instance.UnsafeGenerateNewItemAsync(templateType, userSelection); } catch (Exception ex) { _dialogService.ShowError(ex, userSelection.ToString()); GenContext.ToolBox.Shell.CancelWizard(false); } }
public void FinishGeneration(UserSelection userSelection) { try { NewItemGenController.Instance.UnsafeFinishGeneration(userSelection); } catch (Exception ex) { _dialogService.ShowError(ex, userSelection.ToString()); GenContext.ToolBox.Shell.CancelWizard(false); } }
public async Task GenerateProjectAsync(UserSelection userSelection) { try { await NewProjectGenController.Instance.UnsafeGenerateProjectAsync(userSelection); } catch (Exception ex) { GenContext.ToolBox.Shell.CloseSolution(); _dialogService.ShowError(ex, userSelection.ToString()); GenContext.ToolBox.Shell.CancelWizard(false); } }