private void button1_Click(object sender, EventArgs e) { frmTipoviClanarine frmTipoviClanarine = new frmTipoviClanarine(null); frmTipoviClanarine.Show(); this.Close(); }
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 4) { int _id = Int32.Parse(dataGridView1.Rows[e.RowIndex].Cells["Id"].Value.ToString()); frmTipoviClanarine frmTipoviClanarine = new frmTipoviClanarine(_id); frmTipoviClanarine.Show(); this.Close(); } }