title: Update programmatically image after Event with KNX.Net
body: <p>I'm creating a webapp to control some lights in my house. I can't understand why after firing the Event void, the image is not updating; while if i fire it from a button it is actually changing.</p>
  
  <p>I have tried this so far, using KNX.Net libraries</p>
  
  <p>...</p>
  
  <pre><code>    public void Event(string address, string state)
      {
  
          if (address.Equals(CH03LightOnOffAddressStatus) || address.Equals(CH04LightOnOffAddressStatus))
          {
              System.Diagnostics.Debug.WriteLine("New Event: device " + address + " has status (" + state + ") --&gt; " + _connection.FromDataPoint("9.001", state));
          }
          else if (                
              address.Equals(CH01LightOnOffAddressStatus) ||                
              address.Equals(CH02LightOnOffAddressStatus)
              )
          {
              var data = string.Empty;
  
              if (state.Length == 1)
              {
                  data = ((byte)state[0]).ToString();                    
              }
              else
              {
                  var bytes = new byte[state.Length];
                  for (var i = 0; i &lt; state.Length; i++)
                  {
                      bytes[i] = Convert.ToByte(state[i]);
                  }
  
                  data = state.Aggregate(data, (current, t) =&gt; current + t.ToString());
              }
  
              System.Diagnostics.Debug.WriteLine("New Event: device " + address + " has status --&gt; " + data);
              condition = data;
              nowAddress = address;                               
          }
  
          if (condition == "1")
          {
              Image1.ImageUrl = @"\Res\Call.png";
          }
          else
          {
              Image1.ImageUrl = @"\Res\Bomb.png";
          }
  
      }
  </code></pre>
  
  <p>...</p>
  
  <p>While if i fire it like this, the image is changing indeed</p>
  
  <p>...</p>
  
  <pre><code>     private void CH01LightOn()
      {
          _connection.Action(CH01LightOnOffAddress, true);
  
          Thread.Sleep(500);
  
          if (condition == "1")
          {
              Image1.ImageUrl = @"\Res\Call.png";
          }
          else
          {
              Image1.ImageUrl = @"\Res\Bomb.png";
          }
  
      }
  </code></pre>
  
  <p>...</p>
  
  <p>I just need the images to be changing after the event is fired.
  Thank you in advance.</p>