public static bool EnsureGitHubTokenExists() { if (GitHubToken == null) { GitHubToken = PasswordDialog.Run(); } return(GitHubToken != null); }
public static string Run() { var dialog = new PasswordDialog(); if (dialog.ShowDialog() != true) { return(null); } return(dialog.decoded); }