Beispiel #1
0
 private void PostStatus()
 {
     if (textBoxPostStatus.Text != string.Empty)
     {
         if (LogicServices.PostStatus(textBoxPostStatus.Text))
         {
             MessageBox.Show("Status Posted!");
             textBoxPostStatus.Invoke(new Action(() => textBoxPostStatus.Text = string.Empty));
         }
         else
         {
             MessageBox.Show("Error while posting status");
         }
     }
     else
     {
         MessageBox.Show("Status is empty, write something");
     }
 }