private void OptionsSaved(object sender, EventArgs e) { ImgurOptionsForm form = sender as ImgurOptionsForm; if (form == null) { return; } form.ApplySettings(); }
private bool VerifyBasicSettings() { if (!PluginSettings.Completed) { var dlg = new ImgurOptionsForm(PluginSettings); dlg.MakeButtonsVisible(); dlg.ShowDialog(); } if (!PluginSettings.Completed) { MessageBox.Show("You must configure Imgur settings before " + "uploading an image to the service.\n\n", "Missing Settings for Imgur plugin", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return(false); } return(true); }