public void SendTweet(string tweet)
{
//if (tweet.Count() <= 140) // lolno, this is handled in the mainwindow class with url shortening
try
{
Twitterizer.TwitterResponse <Twitterizer.TwitterStatus> response = Twitterizer.TwitterStatus.Update(privOAuth.GetOAuthToken(), tweet);
if (!(response.Result == RequestResult.Success))
{
System.Windows.Forms.MessageBox.Show("error: " + response.Result, "error", System.Windows.Forms.MessageBoxButtons.OK);
}
}
catch (WebException e)
{
System.Windows.Forms.MessageBox.Show("error: " + e.Message, "error", System.Windows.Forms.MessageBoxButtons.OK);
//TwitterStatus notification = new TwitterStatus(); CED GO FIX THIS
//notification.Text = "error: "+e.Message; Error An object reference is required for the non-static field, method, or property 'o3o.TweetStack.NewTweet'
//notification.User = new TwitterUser();
//notification.User.ScreenName = "Internal message system";
//TweetStack.NewTweet(notification, privOAuth);
}
// else
// throw new Exception("Status update too long! Make sure it's less than 140 characters!"); // also replace this with system message
}