Inheritance: INotifyPropertyChanged
Esempio n. 1
0
        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)));
        }
Esempio n. 2
0
        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)));
        }