void client_ProcessRequestCompleted(object sender, ProcessRequestCompletedEventArgs e)
 {
     client.ProcessRequestCompleted -= new EventHandler<ProcessRequestCompletedEventArgs>(client_ProcessRequestCompleted);
     string[] values = e.Result.ToString().Split('%');
     
     if (e.Result.ToString() == "roomInserted")
     {
         if(e.Error == null)
             status = "roomInserted%OK";
         else status = "roomInserted%FAIL";
     }
     else if (e.Result.ToString() == "roomNotInserted")
     {
         if (e.Error == null)
             status = "roomNotInserted%OK";
         else status = "roomNotInserted%FAIL";
     }
     else if (e.Result.ToString() == "userInserted")
     {
         if (e.Error == null)
             status = "userInserted%OK";
         else status = "userInserted%FAIL";
     }
      else if (e.Result.ToString() == "userNotInserted")
     {
         if (e.Error == null)
             status = "userNotInserted%OK";
         else status = "userNotInserted%FAIL";
     }
     else if (e.Result.ToString() == "roomDeleted")
     {
         if (e.Error == null)
             status = "roomDeleted%OK";
         else status = "roomDeleted%FAIL";
     }
     else if (e.Result.ToString() == "roomNotDeleted")
     {
         if (e.Error == null)
             status = "roomNotDeleted%OK";
         else status = "roomNotDeleted%FAIL";
     }
     else if (e.Result.ToString() == "userNotDeleted")
     {
         if (e.Error == null)
             status = "userNotDeleted%OK";
         else status = "userNotDeleted%FAIL";
     }
     else if (e.Result.ToString() == "userDeleted")
     {
         if (e.Error == null)
             status = "userDeleted%OK";
         else status = "userDeleted%FAIL";
     }
     else if (e.Result.ToString() == "ret_pw")
     {
         if (e.Error == null)
             status = "ret_pw%OK";
         else status = "ret_pw%FAIL";
     }
     else if (e.Result.ToString() == "not_ret_pw")
     {
         if (e.Error == null)
             status = "not_ret_pw%OK";
         else status = "not_ret_pw%FAIL";
     }
     else if (values[0] == "booked")
     {
         if (e.Error == null)
             status = "booked%OK"+"%"+values[1];
         else status = "booked%FAIL";
     }
     else if (e.Result.ToString() == "not_booked")
     {
         if (e.Error == null)
             status = "not_booked%OK";
         else status = "not_booked%FAIL";
     }
     this.observer.call(status);
 }
 private void client_BuildingsCompleted(object sender, ProcessRequestCompletedEventArgs ev)
 {
     this.buildings = ev.Result.ToString();
     this.client.ProcessRequestCompleted -= new EventHandler<ProcessRequestCompletedEventArgs>(client_BuildingsCompleted);
     this.observer.call("BuildingsCompleted");
 }
 private void client_BuchungenCompleted(object sender, ProcessRequestCompletedEventArgs e)
 {
     this.buchungen = e.Result.ToString();
     this.client.ProcessRequestCompleted -= new EventHandler<ProcessRequestCompletedEventArgs>(client_BuchungenCompleted);
     this.observer.call("buchungenCompleted");
 }