public ExceptionVM(AbstractFlightSimulatorModel modelCreated) : base(modelCreated) { // Notify to view from model. model.GetMessageOfException().PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) { NotifyPropertyChanged("VM_" + e.PropertyName); }; }
public GameMapVM(AbstractFlightSimulatorModel modelCreated) : base(modelCreated) { // Notify to view from model. model.GetVariablesFromSimulator().PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e) { NotifyPropertyChanged("VM_" + e.PropertyName); }; }
public WheelVM(AbstractFlightSimulatorModel modelCreated) : base(modelCreated) { }
// Constructor for all ViewModel that inherit this abstract class. public AbstractViewModel(AbstractFlightSimulatorModel modelCreated) { model = modelCreated; }