Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     UserSingleton.Instance.LoggedInUser.PostPhoto(RageImageHelper.GetJpegByteStream(pictureBoxCat.Image), richTextBox1.Text);
     MessageBox.Show(
         "The post was published to your friend's facebook wall successfuly!",
         "Confirmation",
         MessageBoxButtons.OK);
 }
Пример #2
0
 private void buttonPostToWallCat_Click(object sender, EventArgs e)
 {
     if (listBox2Friends.SelectedIndex > 0)
     {
         User friend = listBox2Friends.SelectedItem as User;
         friend.PostPhoto(RageImageHelper.GetJpegByteStream(pictureBoxCat.Image), richTextBox1.Text);
         MessageBox.Show(
             "The post was published to your friend's facebook wall successfuly!",
             "Confirmation",
             MessageBoxButtons.OK);
     }
 }
 private void buttonSaveImage_Click(object sender, EventArgs e)
 {
     RageImageHelper.ShowSaveImageDialog(pictureBoxRageFace.Image);
 }
 private void buttonOpenInPaint_Click(object sender, EventArgs e)
 {
     RageImageHelper.ShowImageInPaint(pictureBoxRageFace.Image);
 }