private void addNoteCallback(StatusReasonOutput output)
        {
            this.Dispatcher.BeginInvoke(delegate()
            {

                setControlEnabled(true);
                if (output == null)
                {
                    MessageBox.Show("Couldn't connect to server");
                }
                else if (output.status == "ok")
                {
                    MessageBox.Show("Note added.");
                    NavigationService.GoBack();
                }
                else
                {
                    MessageBox.Show(output.reason);
                }
            });
        }
 private void editCallback(StatusReasonOutput output)
 {
     this.Dispatcher.BeginInvoke(delegate()
     {
         buttonProgressBar.Visibility = System.Windows.Visibility.Collapsed;
         button.IsEnabled = true;
         if (output == null)
         {
             MessageBox.Show("Couldn't connect to server");
         }
         else if (output.status == "ok")
         {
             MessageBox.Show("Meeting stopped.");
             NavigationService.GoBack();
         }
         else
         {
             MessageBox.Show(output.reason);
         }
     });
 }
 private void addPhotoCallback(StatusReasonOutput output)
 {
     this.Dispatcher.BeginInvoke(delegate()
     {
         ShutterButton.IsEnabled = true;
         if (output == null)
         {
             MessageBox.Show("Couldn't connect to server");
         }
         else if (output.status == "ok")
         {
             MessageBox.Show("Photo added.");
             NavigationService.GoBack();
         }
         else
         {
             MessageBox.Show(output.reason);
         }
     });
 }