Beispiel #1
0
 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);
 }
Beispiel #2
0
 public ShareController(ISnagIt snagitHost, Settings settings)
 {
     this.snagitHost = snagitHost;
     this.settings = settings;
     asyncOutput = snagitHost as ISnagItAsyncOutput;
 }
Beispiel #3
0
        public ImgurService(Settings settings)
        {
            this.settings = settings;

            client = new RestClient(apiBaseUrl) { Authenticator = CreateAuthenticator() };
        }
Beispiel #4
0
 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);
         }
     }
 }
Beispiel #5
0
 public OptionsForm(Settings settings)
 {
     this.settings = settings;
     InitializeComponent();
 }