예제 #1
0
        public KeyboardNode()
        {
            DataContext = _vm = new KeyboardNodeViewModel {
                Key = Keys.None.ToString(),
            };

            InitializeComponent();
        }
예제 #2
0
        public KeyboardNode(KeyboardNodeViewModel vm)
        {
            DataContext = _vm = new KeyboardNodeViewModel {
                DelayAfter  = vm.DelayAfter,
                DelayBefore = vm.DelayBefore,
                Keys        = vm.Keys,
                InputType   = vm.InputType,
            };

            _vm.SetKeys();

            InitializeComponent();
        }