public GeoPostedItem PostStatus(string i_ImagePath, string i_Status)
        {
            GeoPostedItem newPostedItem = null;

            if (i_ImagePath == null)
            {
                newPostedItem = User.PostStatus(i_Status);
            }
            else
            {
                newPostedItem = User.PostPhoto(i_ImagePath, i_Status);
            }

            return(newPostedItem);
        }
 private void buttonPostStatus_Click(object sender, EventArgs e)
 {
     try
     {
         GeoPostedItem postedItem = m_UserInfo.PostStatus(m_AttachedImagePath, textBoxPostStatus.Text);
         MessageBox.Show(string.Format("Post published successfully!{1} Post ID: {0}", postedItem.Id, Environment.NewLine));
     }
     catch (FacebookOAuthException)
     {
         MessageBox.Show("Status post failed: No permissions.");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 protected abstract void addNewLocation(GeoPostedItem i_Item);
 protected abstract void count(GeoPostedItem i_Item);
 public void PostContestStatus()
 {
     m_ContestPost = m_UserInfo.PostStatus(m_ImagePath, m_Status);
 }
 protected override void count(GeoPostedItem i_Item)
 {
     LatestLocations.PlacesUserWasTaggedAt[i_Item.Place.Name].NumOfPosts++;
 }
 protected override void addNewLocation(GeoPostedItem i_Item)
 {
     LatestLocations.PlacesUserWasTaggedAt[i_Item.Place.Name] = new VisitedLocation(i_Item.Place.Name, 1, 1, 0, 0, (double)i_Item.Place.Location.Latitude, (double)i_Item.Place.Location.Longitude);
 }