Exemplo n.º 1
0
 /// <summary>
 /// Update functional settings fom SV values
 /// </summary>
 private void UpdateFunctionalSettings()
 {
     if (!updating)
     {
         try
         {
             updating  = true;
             this.mode = PinMode.Find(config.Value, value1.Value, value2.Value);
             if (this.mode != null)
             {
                 this.address = mode.GetAddress(config.Value, value1.Value, value2.Value);
             }
             else
             {
                 this.address = 0;
             }
             ModeChanged.Fire(this);
             AddressChanged.Fire(this);
         }
         finally
         {
             updating = false;
         }
     }
 }