void buttonHastebin_Click(object sender, EventArgs e) { string url = Util.HastebinHelper.QuickUpload(textboxDisplayLoaderErrors.Text); if (url != null) using (var dlg = new HastebinResultDialogForm(url)) { Clipboard.SetText(url); dlg.ShowDialog(); } else MessageBox.ShowError("Unable to match Hastebin request regex. They may have changed the way uploading to the site works..."); }
void buttonHastebin_Click(object sender, EventArgs e) { string url = Util.HastebinHelper.QuickUpload(textboxDisplayLoaderErrors.Text); if (url != null) { using (var dlg = new HastebinResultDialogForm(url)) { Clipboard.SetText(url); dlg.ShowDialog(); } } else { MessageBox.ShowError("Unable to match Hastebin request regex. They may have changed the way uploading to the site works..."); } }