예제 #1
0
        /// <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);
        }
예제 #2
0
 private SetCredentialStepViewModel(SetCredentialStepContent content, AttachDebuggerContext context)
     : base(context)
 {
     Content = content;
     ManageCredentialsCommand = new ProtectedCommand(() =>
     {
         ManageWindowsCredentialsWindow.PromptUser(context.GceInstance);
         UpdateCredentials();
         IsOKButtonEnabled = Credentials.Any();
     });
 }