private void dgwQuestions_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmQuestion fc = new frmQuestion(
                frmQuestion.QuestionFormType.EditOneQuestion, currentQuestion, null, null, null);

            fc.Show();
            RefreshUi();
        }
        private void dgwAnswers_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > -1)
            {
                dgwAnswers.Rows[e.RowIndex].Selected = true;

                List <Answer> ls = (List <Answer>)(dgwAnswers.DataSource);
                Answer        a  = ls[e.RowIndex];

                Question    q  = db.GetQuestionById(a.IdQuestion);
                frmQuestion fq = new frmQuestion(frmQuestion.QuestionFormType.EditOneQuestion,
                                                 q, null, null, null);
                fq.Show();
            }
        }
        private void dgwQuestions_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > -1)
            {
                /////////////dgwTests.Rows[e.RowIndex].Selected = true;
                List <Question> lq             = (List <Question>)(dgwQuestions.DataSource);
                Question        chosenQuestion = lq[e.RowIndex];

                //// begin temporary !!!
                //List<Question> lq = (List<Question>)(dgwQuestions.DataSource);
                ////Question chosenQuestion = lq[e.RowIndex];
                //Question chosenQuestion = db.
                //// end temporary !!!

                frmQuestion fq = new frmQuestion(frmQuestion.QuestionFormType.EditOneQuestion, chosenQuestion, null, null, null);
                fq.Show();
            }
        }