Exemplo n.º 1
0
 // apply checked flags from UI to prefab
 protected void SetValue(int value)
 {
     if (GetHandler() != value)
     {
         SetHandler(value);
         EventPropertyChanged?.Invoke();
     }
 }
Exemplo n.º 2
0
 public void OnPropertyChanged()
 {
     try {
         LogCalled();
         EventPropertyChanged?.Invoke();
     } catch (Exception ex) {
         ex.Log();
     }
 }
Exemplo n.º 3
0
 private void TextSubmitted(UIComponent component, string value)
 {
     if (LowerField.TryGetValue(out float lower) && UpperField.TryGetValue(out float upper))
     {
         if (upper == 0)
         {
             Range = null;
         }
         else
         {
             Range = new NetInfoExtionsion.Range {
                 Lower = lower,
                 Upper = upper,
             };
         }
     }
     EventPropertyChanged?.Invoke();
 }