public ConfigurationPageInfo(IPlugin plugin, PluginPageInfo page) { Name = page.Name; // Don't use "N" because it needs to match Plugin.Id PluginId = plugin.Id.ToString(); }
/// <summary> /// Initializes a new instance of the <see cref="ConfigurationPageInfo"/> class. /// </summary> /// <param name="plugin">Instance of <see cref="IPlugin"/> interface.</param> /// <param name="page">Instance of <see cref="PluginPageInfo"/> interface.</param> public ConfigurationPageInfo(IPlugin?plugin, PluginPageInfo page) { Name = page.Name; EnableInMainMenu = page.EnableInMainMenu; MenuSection = page.MenuSection; MenuIcon = page.MenuIcon; DisplayName = string.IsNullOrWhiteSpace(page.DisplayName) ? plugin?.Name : page.DisplayName; PluginId = plugin?.Id; }
public ConfigurationPageInfo(IPlugin plugin, PluginPageInfo page) { Name = page.Name; EnableInMainMenu = page.EnableInMainMenu; DisplayName = string.IsNullOrWhiteSpace(page.DisplayName) ? plugin.Name : page.DisplayName; // Don't use "N" because it needs to match Plugin.Id PluginId = plugin.Id.ToString(); }