Beispiel #1
0
 public HotKeyCreatorViewModel()
 {
     _hotKeyModel                = new HotKeyCreatorModel();
     _hotkeyrecordTimer          = new DispatcherTimer();
     _listHotKeys                = new ObservableCollection <HotKey>();
     _hotkeyrecordTimer.Interval = new TimeSpan(0, 0, 0, 10);
     _hotkeyrecordTimer.Tick    += _hotkeyrecordTimer_Tick;
     _listHotKeys                = new ObservableCollection <HotKey>(WinHueSettings.hotkeys.listHotKeys);
 }
Beispiel #2
0
 public HotKeyCreatorViewModel()
 {
     _hotKeyModel                = new HotKeyCreatorModel();
     _hotkeyrecordTimer          = new DispatcherTimer();
     _listHotKeys                = new ObservableCollection <HotKey>();
     _hotkeyrecordTimer.Interval = new TimeSpan(0, 0, 0, 10);
     _hotkeyrecordTimer.Tick    += _hotkeyrecordTimer_Tick;
     ofd = new OpenFileDialog
     {
         DefaultExt  = "exe",
         Multiselect = false,
         Filter      = "Executable files (*.exe)|*.exe|Batch files (*.bat)|*.bat|Command files(*.cmd)|*.cmd"
     };
 }