コード例 #1
0
ファイル: SettingWindow.xaml.cs プロジェクト: jysrfeng/Wox
        private void OnnEditCustomHotkeyClick(object sender, RoutedEventArgs e)
        {
            var item = _viewModel.SelectedCustomPluginHotkey;

            if (item != null)
            {
                CustomQueryHotkeySetting window = new CustomQueryHotkeySetting(this, _settings);
                window.UpdateItem(item);
                window.ShowDialog();
            }
            else
            {
                MessageBox.Show(InternationalizationManager.Instance.GetTranslation("pleaseSelectAnItem"));
            }
        }
コード例 #2
0
ファイル: SettingWindow.xaml.cs プロジェクト: renzhn/Wox
 private void BtnEditCustomHotkey_OnClick(object sender, RoutedEventArgs e)
 {
     CustomPluginHotkey item = lvCustomHotkey.SelectedItem as CustomPluginHotkey;
     if (item != null)
     {
         CustomQueryHotkeySetting window = new CustomQueryHotkeySetting(this);
         window.UpdateItem(item);
         window.ShowDialog();
     }
     else
     {
         MessageBox.Show(InternationalizationManager.Instance.GetTranslation("pleaseSelectAnItem"));
     }
 }