public void fillContextMenu(List <object> records)
        {
            if (this.menuBound)
            {
                return;
            }
            int pos = 0;

            foreach (var record in records)
            {
                var props = (record as IEnumerable <object>).ToArray();

                ToolStripItem item = new ToolStripMenuItem(props[0].ToString());

                item.Tag = props[1].ToString();
                if (props[3].ToString() == "cbw")
                {
                    item.Click += (sender, e) => BoundObject.openCBW(props[4].ToString() + props[1].ToString(), props[0].ToString());
                }
                else
                {
                    item.Click += (sender, e) => onOpenWindowClick(props[1].ToString());
                }

                item.Enabled = !Convert.ToBoolean(props[2]);
                item.Name    = "navMenu_" + props[1].ToString().Replace("#", "");

                this.contextMenuStrip1.Items.Insert(pos++, item);
            }

            //ToolStripMenuItem sbItemCBW = new ToolStripMenuItem("Merit CBW");
            //sbItemCBW.Name = "navMenu_CBW";
            //fillMeritItems(sbItemCBW);
            //this.contextMenuStrip1.Items.Insert(0, sbItemCBW);


            // adding a Status Bar option
            ToolStripItem sbItemSB = new ToolStripMenuItem("Status Bar");

            sbItemSB.Name   = "navMenu_StatusBar";
            sbItemSB.Click += (sender, e) => Program.resetStatusBar();
            this.contextMenuStrip1.Items.Insert(0, sbItemSB);

            this.contextMenuStrip1.Items["wndMenu_Root"].Visible         = true;
            this.contextMenuStrip1.Items["contextMenuSeparator"].Visible = true;
            this.menuBound = true;
        }
        public void fillMeritItems(ToolStripMenuItem root)
        {
            root.DropDownItems.Add("Bid Monitor (All)", null, (sender, e) => BoundObject.openCBW("bidMonitorAll", "Bid Monitor (All)"));
            root.DropDownItems.Add("Retail Bids", null, (sender, e) => BoundObject.openCBW("bidMonitorRet", "Retail Bids"));
            root.DropDownItems.Add("Institutional Bids", null, (sender, e) => BoundObject.openCBW("bidMonitorInst", "Institutional Bids"));
            root.DropDownItems.Add("Street Bids", null, (sender, e) => BoundObject.openCBW("bidMonitorStreet", "Street Bids"));
            root.DropDownItems.Add("History", null, (sender, e) => BoundObject.openCBW("history", "History"));
            root.DropDownItems.Add("Audit", null, (sender, e) => BoundObject.openCBW("audit", "Audit"));
            root.DropDownItems.Add("Re-Offerings", null, (sender, e) => BoundObject.openCBW("roBlotter", "Re-Offerings"));
            root.DropDownItems.Add("Aggregate View", null, (sender, e) => BoundObject.openCBW("aggregateView", "Aggregate View"));
            root.DropDownItems.Add("Bid List", null, (sender, e) => BoundObject.openCBW("bidList", "Bid List"));
            root.DropDownItems.Add("Itemized View", null, (sender, e) => BoundObject.openCBW("itemizedView", "Itemized View"));

            root.DropDownItems.Add(new ToolStripSeparator());

            root.DropDownItems.Add("Close All", null, (sender, e) => Program.CloseAllCBW());
        }