protected virtual void OnAgeChanged(AgeChangedEventArgs e) { if (AgeChanged != null) { AgeChanged(this, e); } }
private AgeChangedEventArgs OnAgeChangedForOut() { AgeChangedEventArgs args = new AgeChangedEventArgs(); OnAgeChanged(args); return(args); }
private AgeChangedEventArgs OnAgeChanged(int oldAge, int newAge) { AgeChangedEventArgs args = new AgeChangedEventArgs(oldAge, newAge); OnAgeChanged(args); return(args); }
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)); }