Ejemplo n.º 1
0
 private void OnPluginActionKeywordsClick(object sender, MouseButtonEventArgs e)
 {
     if (e.ChangedButton == MouseButton.Left)
     {
         var            id = _viewModel.SelectedPlugin.PluginPair.Metadata.ID;
         ActionKeywords changeKeywordsWindow = new ActionKeywords(id, _settings);
         changeKeywordsWindow.ShowDialog();
     }
 }
Ejemplo n.º 2
0
 private void PluginActionKeywords_OnMouseUp(object sender, MouseButtonEventArgs e)
 {
     if (e.ChangedButton == MouseButton.Left)
     {
         var pair = lbPlugins.SelectedItem as PluginPair;
         if (pair != null)
         {
             //third-party plugin
             string         id = pair.Metadata.ID;
             ActionKeywords changeKeywordsWindow = new ActionKeywords(id);
             changeKeywordsWindow.ShowDialog();
             PluginPair plugin = PluginManager.GetPluginForId(id);
             if (plugin != null)
             {
                 pluginActionKeywords.Text = string.Join(Query.ActionKeywordSeperater, pair.Metadata.ActionKeywords.ToArray());
             }
         }
     }
 }
Ejemplo n.º 3
0
 private void OnPluginActionKeywordsClick(object sender, MouseButtonEventArgs e)
 {
     if (e.ChangedButton == MouseButton.Left)
     {
         var id = _viewModel.SelectedPlugin.PluginPair.Metadata.ID;
         ActionKeywords changeKeywordsWindow = new ActionKeywords(id, _settings);
         changeKeywordsWindow.ShowDialog();
     }
 }
Ejemplo n.º 4
0
 private void PluginActionKeywords_OnMouseUp(object sender, MouseButtonEventArgs e)
 {
     if (e.ChangedButton == MouseButton.Left)
     {
         var pair = lbPlugins.SelectedItem as PluginPair;
         if (pair != null)
         {
             //third-party plugin
             string id = pair.Metadata.ID;
             ActionKeywords changeKeywordsWindow = new ActionKeywords(id);
             changeKeywordsWindow.ShowDialog();
             PluginPair plugin = PluginManager.GetPluginForId(id);
             if (plugin != null) pluginActionKeywords.Text = string.Join(Query.ActionKeywordSeperater, pair.Metadata.ActionKeywords.ToArray());
         }
     }
 }