protected void OnCountryChanged(Country oldValue) { System.Delegate[] events; EventHandler<PropertyChangedEventArgs<Person, Country>> eventHandler; if ((object)(events = this._events) != null && (object)(eventHandler = (EventHandler<PropertyChangedEventArgs<Person, Country>>)events[7]) != null) { EventHandlerUtility.InvokeEventHandlerAsync<PropertyChangedEventArgs<Person, Country>>(eventHandler, this, new PropertyChangedEventArgs<Person, Country>(this, "Country", oldValue, this.Country), this._propertyChangedEventHandler); } else { this.OnPropertyChanged("Country"); } }
protected bool OnCountryChanging(Country newValue) { System.Delegate[] events; EventHandler<PropertyChangingEventArgs<Person, Country>> eventHandler; if ((object)(events = this._events) != null && (object)(eventHandler = (EventHandler<PropertyChangingEventArgs<Person, Country>>)events[6]) != null) { return EventHandlerUtility.InvokeCancelableEventHandler<PropertyChangingEventArgs<Person, Country>>(eventHandler, this, new PropertyChangingEventArgs<Person, Country>(this, "Country", this.Country, newValue)); } return true; }
private void OnCountryPersonViaCountryCollectionAdded(Country instance, Person item) { item.Country = instance; }
public bool TryGetCountryByCountryName(string countryName, out Country country) { return(this._CountryCountryNameDictionary.TryGetValue(countryName, out country)); }
private bool OnCountryRegionCodeChanging(Country instance, string newValue) { return(true); }