/// <summary>
 /// Sets the view model instance
 /// </summary>
 /// <param name="vm">View model instance to set</param>
 public void SetVm(KeyboardToolWindowViewModel vm)
 {
     DataContext = Vm = vm;
     Spectrum48Keyboard.SetVm(vm);
     Spectrum128Keyboard.SetVm(vm);
     Spectrum48Keyboard2.SetVm(vm);
     Spectrum128Keyboard2.SetVm(vm);
 }
Example #2
0
 /// <summary>
 /// Sets the view model instance
 /// </summary>
 /// <param name="vm">View model instance to set</param>
 void ISupportsMvvm <KeyboardToolViewModel> .SetVm(KeyboardToolViewModel vm)
 {
     DataContext = Vm = vm;
     Spectrum48Keyboard.SetVm(vm);
     Spectrum128Keyboard.SetVm(vm);
     Spectrum48Keyboard2.SetVm(vm);
     Spectrum128Keyboard2.SetVm(vm);
 }