private void btnOpenLocal_Click(object sender, EventArgs e) { if (urTask != null && !string.IsNullOrEmpty(urTask.Info.LocalFilePath)) { ZAppHelper.LoadBrowserAsync(urTask.Info.LocalFilePath); } }
public void OpenFile() { if (HistoryItem != null && IsFileExist) { ZAppHelper.LoadBrowserAsync(HistoryItem.Filepath); } }
public void OpenThumbnailURL() { if (HistoryItem != null && IsThumbnailURLExist) { ZAppHelper.LoadBrowserAsync(HistoryItem.ThumbnailURL); } }
public void OpenDeletionURL() { if (HistoryItem != null && IsDeletionURLExist) { ZAppHelper.LoadBrowserAsync(HistoryItem.DeletionURL); } }
public void OpenShortenedURL() { if (HistoryItem != null && IsShortenedURLExist) { ZAppHelper.LoadBrowserAsync(HistoryItem.ShortenedURL); } }
private void tvLinks_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (FileSystem.IsValidLink(e.Node.Text)) { ZAppHelper.LoadBrowserAsync(e.Node.Text); } btnCopyLink_Click(sender, e); }
private void niTray_BalloonTipClicked(object sender, EventArgs e) { string url = niTray.Tag as string; if (!string.IsNullOrEmpty(url)) { ZAppHelper.LoadBrowserAsync(url); } }
private void OpenURL() { UploadResult result = GetCurrentUploadResult(); if (result != null && !string.IsNullOrEmpty(result.URL)) { ZAppHelper.LoadBrowserAsync(result.URL); } }
public RichTextBoxMenu(RichTextBox richTextBox, bool makeURLClickable) : this(richTextBox) { if (makeURLClickable) { rtb.DetectUrls = true; rtb.LinkClicked += (v1, v2) => ZAppHelper.LoadBrowserAsync(v2.LinkText); } }
private void btnImageShackOpenPublicProfile_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Config.ImageShackUsername)) { ZAppHelper.LoadBrowserAsync("http://profile.imageshack.us/user/" + Config.ImageShackUsername); } else { txtImageShackUsername.Focus(); } }
public void FlickrOpenImages() { if (Config.FlickrAuthInfo != null) { string userID = Config.FlickrAuthInfo.UserID; if (!string.IsNullOrEmpty(userID)) { FlickrUploader flickr = new FlickrUploader(APIKeys.FlickrKey, APIKeys.FlickrSecret); string url = flickr.GetPhotosLink(userID); if (!string.IsNullOrEmpty(url)) { ZAppHelper.LoadBrowserAsync(url); } } } }
private void TwitterAccountAuthButton_Click(object sender, EventArgs e) { if (CheckTwitterAccounts()) { OAuthInfo acc = TwitterGetActiveAccount(); Twitter twitter = new Twitter(acc); string url = twitter.GetAuthorizationURL(); if (!string.IsNullOrEmpty(url)) { Config.TwitterOAuthInfoList[Config.TwitterSelectedAccount] = acc; ZAppHelper.LoadBrowserAsync(url); ucTwitterAccounts.SettingsGrid.SelectedObject = acc; } } }
public void FlickrAuthOpen() { try { FlickrUploader flickr = new FlickrUploader(APIKeys.FlickrKey, APIKeys.FlickrSecret); btnFlickrOpenAuthorize.Tag = flickr.GetFrob(); string url = flickr.GetAuthLink(FlickrPermission.Write); if (!string.IsNullOrEmpty(url)) { ZAppHelper.LoadBrowserAsync(url); btnFlickrCompleteAuth.Enabled = true; } } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void ImgurAuthOpen() { try { OAuthInfo oauth = new OAuthInfo(APIKeys.ImgurConsumerKey, APIKeys.ImgurConsumerSecret); string url = new Imgur(oauth).GetAuthorizationURL(); if (!string.IsNullOrEmpty(url)) { Config.ImgurOAuthInfo = oauth; ZAppHelper.LoadBrowserAsync(url); } } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void GooglAuthOpen() { try { OAuthInfo oauth = new OAuthInfo(APIKeys.GoogleConsumerKey, APIKeys.GoogleConsumerSecret); string url = new GoogleURLShortener(oauth).GetAuthorizationURL(); if (!string.IsNullOrEmpty(url)) { Config.GoogleURLShortenerOAuthInfo = oauth; ZAppHelper.LoadBrowserAsync(url); btnGoogleURLShortenerAuthComplete.Enabled = true; } } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void BoxAuthOpen() { try { Box box = new Box(APIKeys.BoxKey); string url = box.GetAuthorizationURL(); if (!string.IsNullOrEmpty(url)) { Config.BoxTicket = box.Ticket; ZAppHelper.LoadBrowserAsync(url); btnBoxCompleteAuth.Enabled = true; } } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public GoogleTranslateGUI GetGTGUI() { if (Loader.MyGTGUI == null || Loader.MyGTGUI.IsDisposed) { Loader.MyGTGUI = new GoogleTranslateGUI(Engine.ConfigGT) { Icon = this.Icon }; } if (string.IsNullOrEmpty(Engine.ConfigGT.APIKey)) { ZAppHelper.LoadBrowserAsync("http://code.google.com/apis/language/translate/overview.html"); } if (Engine.ConfigGT.GoogleLanguages == null || Engine.ConfigGT.GoogleLanguages.Count < 1) { Engine.ConfigGT.GoogleLanguages = new GoogleTranslate(ZKeys.GoogleApiKey).GetLanguages(); } return(Loader.MyGTGUI); }
private bool OpenSource(UploadResult ifm, UploadResult.SourceType sType) { if (ifm != null) { string path = ifm.GetSource(Engine.TempDir, sType); if (!string.IsNullOrEmpty(path)) { if (sType == UploadResult.SourceType.TEXT || sType == UploadResult.SourceType.HTML) { ZAppHelper.LoadBrowserAsync(path); return(true); } if (sType == UploadResult.SourceType.STRING) { Clipboard.SetText(path); // ok return(true); } } } return(false); }
private void tsbLinkIssues_Click(object sender, EventArgs e) { ZAppHelper.LoadBrowserAsync(ZLinks.URL_ISSUES); }
private void llProjectPage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ZAppHelper.LoadBrowserAsync(ZLinks.URL_WIKIPAGES); }
private void tsbLinkHelp_Click(object sender, EventArgs e) { ZAppHelper.LoadBrowserAsync(ZLinks.URL_WIKIPAGES); }
private void llblBugReports_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ZAppHelper.LoadBrowserAsync(ZLinks.URL_ISSUES); }
private void btnRegCodeImageShack_Click(object sender, EventArgs e) { ZAppHelper.LoadBrowserAsync("http://profile.imageshack.us/prefs"); }
private void btnGalleryTinyPic_Click(object sender, EventArgs e) { ZAppHelper.LoadBrowserAsync("http://tinypic.com/yourstuff.php"); }
private void btnGalleryImageShack_Click(object sender, EventArgs e) { ZAppHelper.LoadBrowserAsync("http://my.imageshack.us/v_images.php"); }
private void TxtVerLinkClicked(object sender, LinkClickedEventArgs e) { ZAppHelper.LoadBrowserAsync(e.LinkText); }
private void tsbDonate_Click(object sender, EventArgs e) { ZAppHelper.LoadBrowserAsync(ZLinks.URL_DONATE_ZS); }
private void txtDebugLog_LinkClicked(object sender, LinkClickedEventArgs e) { ZAppHelper.LoadBrowserAsync(e.LinkText); }
private void tsbLinkHome_Click(object sender, EventArgs e) { ZAppHelper.LoadBrowserAsync(ZLinks.URL_WEBSITE); }
private void btnFtpHelp_Click(object sender, EventArgs e) { ZAppHelper.LoadBrowserAsync("http://code.google.com/p/zscreen/wiki/FTPAccounts"); }