private void button1_Click(object sender, EventArgs e) { frmDodajClana _frmDodajClana = new frmDodajClana(null); _frmDodajClana.Show(); this.Close(); }
private void dgvClanovi_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 6) { int ClanID = Int32.Parse(dgvClanovi.Rows[e.RowIndex].Cells["Id"].Value.ToString()); frmDodajClana _frmDodajClana = new frmDodajClana(ClanID); _frmDodajClana.Show(); this.Close(); } else if (e.ColumnIndex == 7) { int ClanID = Int32.Parse(dgvClanovi.Rows[e.RowIndex].Cells["Id"].Value.ToString()); frmClanarine _frmClanarine = new frmClanarine(ClanID); _frmClanarine.Show(); } }