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