Пример #1
0
 private void TrackDescription_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     if (OnPropertyChanged != null)
     {
         OnPropertyChanged.Invoke(sender, EventArgs.Empty);
     }
 }
Пример #2
0
 private void UpdateBorder()
 {
     propertyMap[ImageVisualProperty.Border] = PropertyValue.CreateWithGuard(border);
     OnPropertyChanged?.Invoke(this);
 }
Пример #3
0
 private void UpdateUrl()
 {
     propertyMap[ImageVisualProperty.URL] = PropertyValue.CreateWithGuard(url);
     OnPropertyChanged?.Invoke(this);
 }
Пример #4
0
 public static void InvokeOnPropertyChanged(Mobile mob, PropertyInfo property, object instance, object oldValue, object newValue)
 {
     OnPropertyChanged?.Invoke(mob, property, instance, oldValue, newValue);
 }
Пример #5
0
 public void Trigger(object value)
 {
     OnPropertyChanged?.Invoke(this, value);
 }
Пример #6
0
 public void GameSetup(string userName, List <Player> playerNames, List <Player> playerOrder)
 {
     RemainingAuctionCards.CollectionChanged += (object sender, NotifyCollectionChangedEventArgs e) => OnPropertyChanged?.Invoke(RemainingAuctionCards);
     SetupPlayers(playerOrder);
     CurrentPlayer = Players.First(player => player.Name == playerOrder.First().Name);
     User          = Players.First(player => player.Name == userName);
     peerConnection.StartConnections(Players.Where(player => player.Name != user.Name).ToList());
     SetupAuctionCards();
     CurrentState = States.ChooseAction;
     StartConnectionChecker();
 }
Пример #7
0
 private void OnPropertyValueChanged(object obj)
 {
     OnPropertyChanged?.Invoke();
 }
Пример #8
0
 protected void RaisePropertyChanged([CallerMemberName] string propertyName = "")
 {
     OnPropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
 }
Пример #9
0
 public void ChangeValue(CardProperty property, int value)
 {
     OnPropertyChanged?.Invoke(property, value);
     StartCoroutine(CountValue(property, value));
 }
 public NodeViewModel(IHealthChecker healthChecker, INetworkResolver networkResolver)
 {
     _healthChecker   = healthChecker;
     _networkResolver = networkResolver;
     _healthChecker.OnPropertyChanged += (s, e) => OnPropertyChanged?.Invoke(s, e);
 }
 public void Dispose()
 {
     _healthChecker.OnPropertyChanged -= (s, e) => OnPropertyChanged?.Invoke(s, e);
 }
Пример #12
0
        private void trackBarValues_ValueChanged(object sender, EventArgs e)
        {
            var flag = checkBoxAuto.Checked ? 1 : 2;

            OnPropertyChanged?.Invoke(this, new PropertyBarEventArgs(this.Tag, trackBarValues.Value, flag));
        }
 private void Ctl_OnPropertyChanged(object sender, PropertyBarEventArgs e) => OnPropertyChanged?.Invoke(this, e);
Пример #14
0
 public void NotifyElementPropertyChange(UIElement element)
 {
     OnPropertyChanged?.Invoke(new UIActionEvent(element, Main._drawInterfaceGameTime.TotalGameTime), this);
 }
Пример #15
0
 private void UpdateBlurRadius()
 {
     // TODO update blur radius value in the property map
     OnPropertyChanged?.Invoke(this);
 }
Пример #16
0
 private void UpdateColor()
 {
     propertyMap[ColorVisualProperty.MixColor] = PropertyValue.CreateWithGuard(color);
     OnPropertyChanged?.Invoke(this);
 }