Пример #1
0
 protected override void InitUIMainWindow(Framework.Interfaces.IPluginUIMainWindow mainWindowPlugin)
 {
     //add menu items
     foreach (LanguageInfo li in _supportedLanguages)
     {
         mainWindowPlugin.AddAction(this, li.Action);
     }
 }
Пример #2
0
 protected virtual void InitUIMainWindow(Framework.Interfaces.IPluginUIMainWindow mainWindowPlugin)
 {
     //add menu items
     foreach (string s in _actions)
     {
         string[] parts = s.Split(new char[] { SubActionSep });
         if (parts.Length == 1)
         {
             mainWindowPlugin.AddAction(this, parts[0]);
         }
         else
         {
             mainWindowPlugin.AddAction(this, parts[0], parts[1]);
         }
     }
 }