Пример #1
0
        private void ShowSetting(string file = null, string key = null)
        {
            if (SettingWindow == null)
            {
                SettingWindow = new SettingWindow(this);
            }

            SettingWindow.ShowShortcutAddition(file: file, key: key);

            SettingWindow.Visibility = Visibility.Visible;
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            SettingWindow = new SettingWindow(this)
            {
                Visibility = Visibility.Hidden
            };

            Hotkey = new LauncherHotkey(this);

            RegisterHotkey();

            Keyword.Focus();

            ReservedKey = new ReservedKey(this);
        }