protected override void InitUIMainWindow(Framework.Interfaces.IPluginUIMainWindow mainWindowPlugin) { //add menu items foreach (LanguageInfo li in _supportedLanguages) { mainWindowPlugin.AddAction(this, li.Action); } }
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]); } } }