Exemplo n.º 1
0
        public CredentialsDialogData AskUserForCredentials(string servername)
        {
            CredentialsDialogData result = null;

            GUIActionRunner.RunGUIAction(delegate
            {
                result = CredentialsDialog.RequestCredentials(
                    servername, mParentWindow);
            });

            return(result);
        }
Exemplo n.º 2
0
        public static CredentialsDialogData RequestCredentials(
            string server,
            EditorWindow parentWindow)
        {
            CredentialsDialog dialog = Create(
                server, new ProgressControlsForDialogs());

            ResponseType dialogResult = dialog.RunModal(parentWindow);

            CredentialsDialogData result = dialog.BuildCredentialsDialogData();

            result.Result = dialogResult == ResponseType.Ok;
            return(result);
        }