Ejemplo n.º 1
0
        private bool VerifyAuthentication()
        {
            if (!PluginSettings.Completed)
            {
                var dlg = new TwitPicOauthForm(this.oauth);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    Tracing.Trace("dlg.OK, Storing tokens...");
                    dlg.StoreTokens(PluginSettings);
                }
            }

            if (!PluginSettings.Completed)
            {
                MessageBox.Show("You must approve this plugin for use with Twitter\n" +
                                "before uploading an image to TwitPic.\n\n",
                                "No Authorizaiton for TwitPic plugin",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation);
                return(false);
            }
            return(true);
        }
Ejemplo n.º 2
0
        private bool VerifyAuthentication()
        {
            if (!PluginSettings.Completed)
            {
                var dlg = new TwitPicOauthForm(this.oauth);
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK)
                {
                    Tracing.Trace("dlg.OK, Storing tokens...");
                    dlg.StoreTokens(PluginSettings);
                }
            }

            if (!PluginSettings.Completed)
            {
                MessageBox.Show("You must approve this plugin for use with Twitter\n" +
                                "before uploading an image to TwitPic.\n\n",
                                "No Authorizaiton for TwitPic plugin",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation);
                return false;
            }
            return true;
        }