public MainWindowViewModel()
        {
            this.model = FlightGearModel.Instance();

            model.PropertyChanged +=
                delegate(Object sender, PropertyChangedEventArgs e)
            {
                NotifyPropertyChanged("VM_" + e.PropertyName);
            };
        }
Exemplo n.º 2
0
        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);
            };
        }