private void buttonAdicionar_Click(object sender, EventArgs e) { bool Verifica = true; FormCadastrarAmigo frm = new FormCadastrarAmigo(Verifica); frm.ShowDialog(); }
private void btAlterar_Click(object sender, EventArgs e) { string[] dadosDGV = new string[10]; for (int I = 0; I < dGridViewListaNomes.ColumnCount; I++) { dadosDGV[I] = dGridViewListaNomes.CurrentRow.Cells[I].Value.ToString(); } FormCadastrarAmigo frm = new FormCadastrarAmigo(dadosDGV); frm.Show(); }
private void amigoToolStripMenuItem_Click(object sender, EventArgs e) { FormCadastrarAmigo abrir = new FormCadastrarAmigo(); abrir.Show(); }