Exemplo n.º 1
0
        private void Item_Click(object sender, EventArgs e)
        {
            GridView           gridView = FormWrapper.GetPipeline();
            ReassignmentDialog r        = new ReassignmentDialog(gridView.SelectedItems.Select(x => x.Tag as PipelineInfo).ToList <PipelineInfo>());

            r.ShowDialog();
        }
Exemplo n.º 2
0
        public override void PipelineTabChanged(object sender, EventArgs e)
        {
            GridView gridView = FormWrapper.GetPipeline();

            ToolStripItem readOnly = (ToolStripItem)NewItem("Loan Reassignment");

            if (!gridView.ContextMenuStrip.Items.Contains(readOnly))
            {
                gridView.ContextMenuStrip.Items.Insert(0, readOnly);
            }
            else
            {
                gridView.ContextMenuStrip.Items.Remove(readOnly);
            }
        }
Exemplo n.º 3
0
        private void AddOrRemoveContextItem()
        {
            PipelineGrid = FormWrapper.GetPipeline();
            ToolStripItem toolStripItem = (ToolStripItem) new ToolStripMenuItem("Open Read Only");

            toolStripItem.Click += new EventHandler(Item_Click1);
            if (!Added)
            {
                PipelineGrid.ContextMenuStrip.Items.Insert(0, toolStripItem);
                Added = true;
            }
            else
            {
                PipelineGrid.ContextMenuStrip.Items.Remove(toolStripItem);
            }
        }