Пример #1
0
        private void AlterarStripMenuItem3_Click(object sender, EventArgs e)
        {
            FormVendasAlt frm = new FormVendasAlt();

            frm.labelIdVd2.Text          = dataGridViewVendas1.SelectedCells[0].Value.ToString();
            frm.dateTimePickerDvVd2.Text = dataGridViewVendas1.SelectedCells[1].Value.ToString();
            frm.textBoxClienteVd2.Text   = dataGridViewVendas1.SelectedCells[2].Value.ToString();
            frm.textBoxVendedorVd2.Text  = dataGridViewVendas1.SelectedCells[3].Value.ToString();
            frm.textBoxProdVd2.Text      = dataGridViewVendas1.SelectedCells[4].Value.ToString();
            frm.textBoxQuantVd2.Text     = dataGridViewVendas1.SelectedCells[5].Value.ToString();
            frm.textBoxValorVd2.Text     = dataGridViewVendas1.SelectedCells[6].Value.ToString();

            frm.ShowDialog();
        }
Пример #2
0
        private void ButtonSendVd3_Click(object sender, EventArgs e)
        {
            FormVendasAlt frm = new FormVendasAlt();

            frm.labelIdVd2.Text          = labelIdVd4.Text.ToString();
            frm.dateTimePickerDvVd2.Text = labelDvVd4.Text.ToString();
            frm.textBoxClienteVd2.Text   = labelClienteVd4.Text.ToString();
            frm.textBoxVendedorVd2.Text  = labelVendedorVd4.Text.ToString();
            frm.textBoxProdVd2.Text      = labelProdVd4.Text.ToString();
            frm.textBoxQuantVd2.Text     = labelQuantVd4.Text.ToString();
            frm.textBoxValorVd2.Text     = labelValorVd4.Text.ToString();

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