public static ACD.AmazonDrive GetApi() { var api = new ACD.AmazonDrive(AmazonDriveClientId, AmazonDriveClientSecret) { Proxy = ProxyTools.GetProxy() }; return(api); }
private void OnFormLoad(object sender, EventArgs e) { GlobalWindowManager.AddWindow(this); this.Icon = PluginResources.Icon_OneDrive_16x16; if (_isUpgraded) { this.Text = "KeeAnywhere upgraded"; BannerFactory.CreateBannerEx(this, m_bannerImage, PluginResources.KeeAnywhere_48x48, "KeeAnywhere has been upgraded", "Please check changelog and adjust your settings if needed."); } else { this.Text = "KeeAnywhere Changelog"; BannerFactory.CreateBannerEx(this, m_bannerImage, PluginResources.KeeAnywhere_48x48, "KeeAnywhere Changelog", "See detailed changes for each version."); } var wc = new WebClient { Proxy = ProxyTools.GetProxy() }; var version = this.GetVersionTag(); var url = string.Format("https://raw.githubusercontent.com/Kyrodan/KeeAnywhere/{0}/CHANGELOG.md", version); try { var markdown = wc.DownloadString(url); var html = CommonMark.CommonMarkConverter.Convert(markdown); m_browser.DocumentText = html; } catch { //Ignore } m_btnOpenSettings.Visible = _isUpgraded; }