DoSpanWidgetControlsAdded() public method

public DoSpanWidgetControlsAdded ( ISpanWidget widget, IEnumerable controls ) : void
widget ISpanWidget
controls IEnumerable
return void
コード例 #1
0
        private void OnWorkspaceWindowAdded(Workspace workspace, Window window)
        {
            var workspaceId = workspace.id - 1;
            var newPanel    = CreatePanel(window);

            applicationPanels[workspaceId].AddFirst(Tuple.Create(window.hWnd, newPanel));

            if (isShown && bar.Monitor == workspace.Monitor && workspace.IsWorkspaceVisible)
            {
                ResizeApplicationPanels(left, right, workspaceId);
            }
            else
            {
                newPanel.Hide();
                mustResize[workspaceId] = true;
            }
            bar.DoSpanWidgetControlsAdded(this, new[] { newPanel });
        }