public InputSettingsViewModel(IntPtr windowHandle) { InputProviders = Modules.Input; Bindings = new BindingListViewModel (windowHandle, new RelayCommand<CommandBindingViewModel> (Record, CanRecord)); Bindings.InputProvider = InputProviders.FirstOrDefault (p => p.GetType().GetSimpleName() == Settings.InputProvider); NewBinding = new RelayCommand (() => Bindings.Bindings.Add (new CommandBindingViewModel (Bindings.InputProvider))); }
public InputSettingsViewModel(IntPtr windowHandle) { InputProviders = Modules.Input; Bindings = new BindingListViewModel(windowHandle, new RelayCommand <CommandBindingViewModel> (Record, CanRecord)); Bindings.InputProvider = InputProviders.FirstOrDefault(p => p.GetType().GetSimpleName() == Settings.InputProvider); NewBinding = new RelayCommand(() => Bindings.Bindings.Add(new CommandBindingViewModel(Bindings.InputProvider))); }