private void btnGoogleDriveDirectLink_Click(object sender, EventArgs e) { InputMessageBox directLink = new InputMessageBox("Get GoogleDrive-directLink", "Insert your sharing-link", string.Empty, Resources.GoogleDrive128, false); directLink.ShowDialog(); if (Settings.Default.lastInputCorrect) { string link = Supporter.GetGoogleDriveDirectLink(Settings.Default.lastInputString); if (Settings.Default.lastInputCorrect) { DialogResult result = MessageBox.Show("Do you want to use this directlink as new fileURL?\r\nOtherwise it will be copied to your clipboard", "Success", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { Settings.Default.fileURL = link; } else { Clipboard.SetText(link); } } else { MessageBox.Show("There was an error with the sharinglink.\r\nYou will be redirected to a website...", "Failure", MessageBoxButtons.OK, MessageBoxIcon.Error); Supporter.OpenBrowser("https://sites.google.com/site/gdocs2direct/"); } } }
private void pictureBox1_DoubleClick(object sender, EventArgs e) { Supporter.OpenBrowser("https://pushover.net/api"); }