Example #1
0
        private void AlterarStripMenuItem2_Click(object sender, EventArgs e)
        {
            FormProdutosAlt frm = new FormProdutosAlt();

            frm.labelIdPd2.Text       = dataGridViewProdutos1.SelectedCells[0].Value.ToString();
            frm.textBoxDescriPd2.Text = dataGridViewProdutos1.SelectedCells[1].Value.ToString();
            frm.textBoxPcPd2.Text     = dataGridViewProdutos1.SelectedCells[2].Value.ToString();
            frm.textBoxPvPd2.Text     = dataGridViewProdutos1.SelectedCells[3].Value.ToString();
            frm.comboBoxMedPd2.Text   = dataGridViewProdutos1.SelectedCells[4].Value.ToString();
            frm.textBoxEstoPd2.Text   = dataGridViewProdutos1.SelectedCells[5].Value.ToString();
            frm.textBoxEstoMPd2.Text  = dataGridViewProdutos1.SelectedCells[6].Value.ToString();

            frm.ShowDialog();
        }
Example #2
0
        private void ButtonSendPd3_Click(object sender, EventArgs e)
        {
            FormProdutosAlt frm = new FormProdutosAlt();

            frm.labelIdPd2.Text       = labelIdPd4.Text.ToString();
            frm.textBoxDescriPd2.Text = labelDescriPd4.Text.ToString();
            frm.textBoxPcPd2.Text     = labelPcPd4.Text.ToString();
            frm.textBoxPvPd2.Text     = labelPvPd4.Text.ToString();
            frm.comboBoxMedPd2.Text   = labelMedPd4.Text.ToString();
            frm.textBoxEstoPd2.Text   = labelEstoPd4.Text.ToString();
            frm.textBoxEstoMPd2.Text  = labelEstoMPd4.Text.ToString();

            this.Close();
            frm.ShowDialog();
        }