ARCed.UI.VS2005DockPaneStrip.WindowListClick C# (CSharp) Method

WindowListClick() private method

private WindowListClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void WindowListClick(object sender, EventArgs e)
        {
            const int x = 0;
            int y = this.ButtonWindowList.Location.Y + this.ButtonWindowList.Height;

            this.SelectMenu.Items.Clear();
            foreach (TabVS2005 tab in Tabs)
            {
                IDockContent content = tab.Content;
                ToolStripItem item = this.SelectMenu.Items.Add(content.DockHandler.TabText, content.DockHandler.Icon.ToBitmap());
                item.Tag = tab.Content;
                item.Click += this.ContextMenuItemClick;
            }
            this.SelectMenu.Show(this.ButtonWindowList, x, y);
        }