public ExceptionVM(AbstractFlightSimulatorModel modelCreated) : base(modelCreated)
 {
     // Notify to view from model.
     model.GetMessageOfException().PropertyChanged += delegate(Object sender, PropertyChangedEventArgs e)
     {
         NotifyPropertyChanged("VM_" + e.PropertyName);
     };
 }
示例#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);
     };
 }
示例#3
0
 public WheelVM(AbstractFlightSimulatorModel modelCreated) : base(modelCreated)
 {
 }
 // Constructor for all ViewModel that inherit this abstract class.
 public AbstractViewModel(AbstractFlightSimulatorModel modelCreated)
 {
     model = modelCreated;
 }