private void Btn_Edit_Click_1(object sender, EventArgs e) { try { var id = Convert.ToInt32(dgv_List.SelectedRows[0].Cells[0].Value.ToString()); Question questionToEdit = new Question(id); QuestionManageForm formToLaunch = new QuestionManageForm(this, questionToEdit); formToLaunch.Show(); } catch (Exception) { } }
private void Btn_Register_Click(object sender, EventArgs e) { QuestionManageForm frm = new QuestionManageForm(this); frm.Show(); }