Exemple #1
0
        private void btnValidate_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            btnValidate.Enabled = false;
            tumblr.Account account = new tumblr.Account();
            tum = new tumblr();

            account.Email = txtEmail.Text;
            account.Password = txtPassword.Text;
            if ((account.Email.Length > 0) && (account.Password.Length > 0))
            {
                tumblr.aAuthenticate aA = new tumblr.aAuthenticate(tum.Authenticate);

                IAsyncResult result = aA.BeginInvoke(account, new AsyncCallback(CallbackMethod), aA);
            }
            else
            {
                btnValidate.Enabled = true;
                this.Cursor = Cursors.Default;
                MessageBox.Show(this, "Something went wrong setting all of the parameters for posting. Please check the account details and fields.", "Error - WinTumblr", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemple #2
0
 public frmMore(tumblr.Account pAcc)
 {
     mAcc = pAcc;
     InitializeComponent();
 }