private void button1_Click(object sender, EventArgs e) { frmVjezba frm = new frmVjezba(null); frm.Show(); this.Close(); }
private void dgvVjezbe_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 3) { int id = Int32.Parse(dgvVjezbe.Rows[e.RowIndex].Cells["Id"].Value.ToString()); frmVjezba frm = new frmVjezba(id); frm.Show(); this.Close(); } }