Esempio n. 1
0
 protected virtual void OnAgeChanged(AgeChangedEventArgs e)
 {
     if (AgeChanged != null)
     {
         AgeChanged(this, e);
     }
 }
Esempio n. 2
0
        private AgeChangedEventArgs OnAgeChangedForOut()
        {
            AgeChangedEventArgs args = new AgeChangedEventArgs();

            OnAgeChanged(args);

            return(args);
        }
Esempio n. 3
0
        private AgeChangedEventArgs OnAgeChanged(int oldAge, int newAge)
        {
            AgeChangedEventArgs args = new AgeChangedEventArgs(oldAge, newAge);

            OnAgeChanged(args);

            return(args);
        }
Esempio n. 4
0
 protected virtual void OnAgeChanged(AgeChangedEventArgs e)
 {
     // If AgeChange == null then do nothing
     AgeChanged?.Invoke(this, e);
 }
 private void AgeChangedHandler(object sender, AgeChangedEventArgs e)
 {
     OnPropertyChanged(nameof(Age));
 }