public MainWindow() { WindowStartupLocation = WindowStartupLocation.CenterScreen; InitializeComponent(); mListHotkey = TbHotkey.GetAll(); mListHideWin = TbHideWin.GetAll(); }
private void OnHotkeyUpdateEvent() { mListHotkey = TbHotkey.GetAll(); // 把key更新 foreach (var win in mWins.Windows) { SetHotkey(win); } }
private void RefreshData() { dataGrid1.ItemsSource = TbHotkey.GetAll(); }