private void AlterarStripMenuItem1_Click(object sender, EventArgs e) { FormClientesAlt frm = new FormClientesAlt(); frm.labelIdCl2.Text = dataGridViewClientes1.SelectedCells[0].Value.ToString(); frm.textBoxNomeCl2.Text = dataGridViewClientes1.SelectedCells[1].Value.ToString(); frm.textBoxBiCl2.Text = dataGridViewClientes1.SelectedCells[2].Value.ToString(); frm.textBoxTelCl2.Text = dataGridViewClientes1.SelectedCells[3].Value.ToString(); frm.textBoxTeleCl2.Text = dataGridViewClientes1.SelectedCells[4].Value.ToString(); frm.textBoxEmailCl2.Text = dataGridViewClientes1.SelectedCells[5].Value.ToString(); frm.textBoxCepCl2.Text = dataGridViewClientes1.SelectedCells[6].Value.ToString(); frm.textBoxNumCl2.Text = dataGridViewClientes1.SelectedCells[7].Value.ToString(); frm.textBoxMoradaCl2.Text = dataGridViewClientes1.SelectedCells[8].Value.ToString(); frm.textBoxRefCl2.Text = dataGridViewClientes1.SelectedCells[9].Value.ToString(); frm.textBoxCidadeCl2.Text = dataGridViewClientes1.SelectedCells[10].Value.ToString(); frm.textBoxDistritoCl2.Text = dataGridViewClientes1.SelectedCells[11].Value.ToString(); frm.ShowDialog(); }
private void ButtonSendCl3_Click(object sender, EventArgs e) { FormClientesAlt frm = new FormClientesAlt(); frm.labelIdCl2.Text = labelIdCl4.Text.ToString(); frm.textBoxNomeCl2.Text = labelNomeCl4.Text.ToString(); frm.textBoxBiCl2.Text = labelBiCl4.Text.ToString(); frm.textBoxTelCl2.Text = labelTelCl4.Text.ToString(); frm.textBoxTeleCl2.Text = labelTeleCl4.Text.ToString(); frm.textBoxEmailCl2.Text = labelEmailCl4.Text.ToString(); frm.textBoxCepCl2.Text = labelCepCl4.Text.ToString(); frm.textBoxNumCl2.Text = labelNumCl4.Text.ToString(); frm.textBoxMoradaCl2.Text = labelMoradaCl4.Text.ToString(); frm.textBoxRefCl2.Text = labelRef2.Text.ToString(); frm.textBoxCidadeCl2.Text = labelCidadeCl4.Text.ToString(); frm.textBoxDistritoCl2.Text = labelDistritoCl4.Text.ToString(); this.Close(); frm.ShowDialog(); }