Beispiel #1
0
        private void OptionsSaved(object sender, EventArgs e)
        {
            ImgurOptionsForm form = sender as ImgurOptionsForm;

            if (form == null)
            {
                return;
            }
            form.ApplySettings();
        }
Beispiel #2
0
        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);
        }