public MainWindowViewModel() { this.model = FlightGearModel.Instance(); model.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) { NotifyPropertyChanged("VM_" + e.PropertyName); }; }
IFlightModel model; // Contain instance of model FG. public FlightBoardViewModel() { this.model = FlightGearModel.Instance(); // Register as listener to notify property changes. this.model.PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) { NotifyPropertyChanged("VM_" + e.PropertyName); }; }