/// <summary> /// Create the step that set credential /// </summary> public static SetCredentialStepViewModel CreateStep(AttachDebuggerContext context) { var content = new SetCredentialStepContent(); var step = new SetCredentialStepViewModel(content, context); content.DataContext = step; return(step); }
public AttachDebuggerWindowViewModel(Instance gceInstance, AttachDebuggerWindow dialogWindow) { OKCommand = new ProtectedAsyncCommand(() => ExceuteAsync(OnOKCommand), canExecuteCommand: false); CancelCommand = new ProtectedCommand(OnCancelCommand, canExecuteCommand: false); var context = new AttachDebuggerContext(gceInstance, dialogWindow); var firstStep = SetCredentialStepViewModel.CreateStep(context); ErrorHandlerUtils.HandleExceptionsAsync(() => ExceuteAsync(() => GotoStep(firstStep))); }