CapDemo.GUI.ViewQuestionInCatalogue.dgv_Question_CellDoubleClick C# (CSharp) Method

dgv_Question_CellDoubleClick() private method

private dgv_Question_CellDoubleClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
sender object
e System.Windows.Forms.DataGridViewCellEventArgs
return void
        private void dgv_Question_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                int IDQuestion = Convert.ToInt32(dgv_Question1.CurrentRow.Cells["IDQuestion"].Value);
                //int IDCatalogue = Convert.ToInt32(dgv_Question.CurrentRow.Cells["IDCatalogue"].Value);
                string TypeQuestion = dgv_Question1.CurrentRow.Cells["TypeQuestion"].Value.ToString();
                string OneSelect = "onechoice";
                string MultiSelect = "multichoice";
                string ShortAnswer = "shortanswer";
                if (TypeQuestion.ToLower() == OneSelect)
                {
                    ViewQuestion eqms = new ViewQuestion(IDQuestion, iDCat);
                    eqms.ShowDialog();
                    LoadQuestion();
                }
                if (TypeQuestion.ToLower() == MultiSelect)
                {
                    ViewQuestionMultiple eqms = new ViewQuestionMultiple(IDQuestion, iDCat);
                    eqms.ShowDialog();
                    LoadQuestion();
                }
                if (TypeQuestion.ToLower() == ShortAnswer)
                {
                    ViewQuestionShortAnswer eqms = new ViewQuestionShortAnswer(IDQuestion, iDCat);
                    eqms.ShowDialog();
                    LoadQuestion();
                }
            }
            catch (Exception)
            {
            }
        }