Exemplo n.º 1
0
        public MyTr_Cl_AnswerQuestion recreateMyTr_Cl_AnswerQuestion(JObject jObject)
        {
            MyTr_Cl_AnswerQuestion transaction_question = new MyTr_Cl_AnswerQuestion(jObject);

            transaction_question.MyTransactioncode = Transaction_Code.sv_question;
            return(transaction_question);
        }
Exemplo n.º 2
0
 public MyTr_Cl_AnswerQuestion recreateMyTr_Cl_AnswerQuestion(JObject jObject)
 {
     MyTr_Cl_AnswerQuestion transaction_question = new MyTr_Cl_AnswerQuestion(jObject);
     transaction_question.MyTransactioncode = Transaction_Code.sv_question;
     return transaction_question;
 }
Exemplo n.º 3
0
 private void sendAnswer_Click(object sender, EventArgs e)
 {
     if (_currentQuestion != null)
     {
         _answer = createAnswer();
         if (_answer != "")
         {
             MyTr_Cl_AnswerQuestion transaction = new MyTr_Cl_AnswerQuestion();
             transaction.Answer = _answer;
             transaction.MyTransactioncode = Transaction_Code.cl_answer_question;
             _mysendFactory.sendJsonObject(transaction);
         }
         else
         {
             MessageBox.Show("Bạn chưa chọn đáp án!");
         }
     }
     else
     {
         MessageBox.Show("Chưa có câu hỏi hoặc thời gian đã hết!");
     }
 }