示例#1
0
        private void toolStripButtonItensAdd_Click(object sender, EventArgs e)
        {
            ListaSave();
            var frm = new frmProdutosPicklist {
                ListaID = _listas[DataGridViewListas.CurrentCell.RowIndex].ID
            };

            frm.ShowDialog();
            ItensLoad();
        }
示例#2
0
        private void toolStripButtonReplace_Click(object sender, EventArgs e)
        {
            if (DataGridViewItens.SelectedRows.Count != 1)
            {
                MessageBox.Show(@"Selecione o item a ser substituído.", @"Substituir item", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
            ListaSave();
            var frm =
                new frmProdutosPicklist {
                ListaID = _listas[DataGridViewListas.CurrentCell.RowIndex].ID,
                Mode    = PicklistMode.Replace,
                Target  = _itens[DataGridViewItens.CurrentCell.RowIndex]
            };

            frm.ShowDialog();
            ItensLoad();
        }