示例#1
0
 private void PluginActionKeyword_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;
             ActionKeyword changeKeywordWindow = new ActionKeyword(id);
             changeKeywordWindow.ShowDialog();
             PluginPair plugin = PluginManager.GetPlugin(id);
             if (plugin != null)
             {
                 pluginActionKeyword.Text = plugin.Metadata.ActionKeyword;
             }
         }
     }
 }
示例#2
0
 private void PluginActionKeyword_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;
             ActionKeyword changeKeywordWindow = new ActionKeyword(id);
             changeKeywordWindow.ShowDialog();
             PluginPair plugin = PluginManager.GetPlugin(id);
             if (plugin != null) pluginActionKeyword.Text = plugin.Metadata.ActionKeyword;
         }
     }
 }