public OAuthHelper(Settings settings) { this.settings = settings; OAuthUrl = string.Format("https://api.imgur.com/oauth2/authorize?client_id={0}&response_type=pin&state=", settings.ClientID); }
public ShareController(ISnagIt snagitHost, Settings settings) { this.snagitHost = snagitHost; this.settings = settings; asyncOutput = snagitHost as ISnagItAsyncOutput; }
public ImgurService(Settings settings) { this.settings = settings; client = new RestClient(apiBaseUrl) { Authenticator = CreateAuthenticator() }; }
private void ShowAccount(Settings settings) { using (var accountForm = new AccountForm(new OAuthHelper(settings))) { var dialogResult = DialogResult.Retry; while (dialogResult != DialogResult.Cancel) { dialogResult = accountForm.ShowDialog(snagitWindow); } } }
public OptionsForm(Settings settings) { this.settings = settings; InitializeComponent(); }