Exemple #1
0
        public void SetupDockBar(Plugin plugin)
        {
            DockBarPlugin dockPlugin = plugin.PluginBase as DockBarPlugin;

            if (dockPlugin == null)
            {
                throw new NullReferenceException();
            }
            if (dockPlugin.AssemblyName != string.Empty && dockPlugin.AssemblyName != null &&
                dockPlugin.DockWindowClass != string.Empty && dockPlugin.DockWindowClass != null)
            {
                DockState  state        = GetDockState(dockPlugin.DockType);
                string     assemblyPath = AssemblyToolkit.GetDll(plugin.PluginBase.AssemblyName);
                ToolWindow window       = AssemblyToolkit.ActivateObject <ToolWindow>(assemblyPath, dockPlugin.DockWindowClass);
                window.Text = dockPlugin.Label;
                window.Show(DockPanelSingleton.MainDockPanel, state);
            }
        }
 public static void Add(ToolWindow dockWindow)
 {
     _dockWindows.Add(dockWindow);
 }