コード例 #1
0
 private void HandleAuthenticationRequiredMessage(AuthenticationRequiredMessage msg)
 {
     var model = new CredentialsModel {PromptMessage = msg.Message};
     var credentialsDialog = new CredentialsDialog (model);
     var dialogResult = credentialsDialog.ShowDialog();
     msg.Callback(dialogResult, model.UserName, model.Password);
 }
コード例 #2
0
        private void HandleAuthenticationRequiredMessage(AuthenticationRequiredMessage msg)
        {
            var model = new CredentialsModel {
                PromptMessage = msg.Message
            };
            var credentialsDialog = new CredentialsDialog(model);
            var dialogResult      = credentialsDialog.ShowDialog();

            msg.Callback(dialogResult, model.UserName, model.Password);
        }