Пример #1
0
        public void callForm()
        {
            // MessageBox.Show(myQuestionNo[Form_track].ToString());


            if (myForm[Form_track] == "Picture Question")
            {
                PictureQuestion pq = new PictureQuestion();
                pq.ShowDialog();
            }
            else if (myForm[Form_track] == "Picture Question Objective Type")
            {
                ObjectiveImageQuestion oiq = new ObjectiveImageQuestion();
                oiq.ShowDialog();
            }
            else if (myForm[Form_track] == "Normal Question")
            {
                NormalQuestion nq = new NormalQuestion();
                nq.ShowDialog();
            }
            else if (myForm[Form_track] == "Normal Question Objective Type")
            {
                NormalObjectiveQuestion noq = new NormalObjectiveQuestion();
                noq.ShowDialog();
            }
            else if (myForm[Form_track] == "Descriptive Question (No Image)")
            {
                MathNormalQuestion mnq = new MathNormalQuestion();
                mnq.ShowDialog();
            }
            else if (myForm[Form_track] == "Descriptive Question Objective Type (No Image)")
            {
                MathObjectiveQuestion moq = new MathObjectiveQuestion();
                moq.ShowDialog();
            }

            else if (myForm[Form_track] == "Flash Question")
            {
                try
                {
                    int result = myQuestionNoTemp.Find(item => item == myQuestionNo[Form_track]);

                    //  MessageBox.Show(result.ToString()+" Qn: "+myQuestionNo[Form_track].ToString());

                    if (result == myQuestionNo[Form_track])
                    {
                        FlashImageQuestion fiq = new FlashImageQuestion();
                        fiq.ShowDialog();
                    }
                    else
                    {
                        myQuestionNoTemp.Add(myQuestionNo[Form_track]);
                        FlashImageQuestionInstruction fiqi = new FlashImageQuestionInstruction();
                        fiqi.ShowDialog();
                    }
                }

                catch (Exception)
                {
                    myQuestionNoTemp.Add(myQuestionNo[Form_track]);

                    FlashImageQuestionInstruction fiqi = new FlashImageQuestionInstruction();
                    fiqi.ShowDialog();
                }
            }
        }
        public void callForm()
        {
            // MessageBox.Show(myQuestionNo[Form_track].ToString());

             if (myForm[Form_track] == "Picture Question")
             {

                 PictureQuestion pq = new PictureQuestion();
                pq.ShowDialog();

             }
             else if (myForm[Form_track] == "Picture Question Objective Type")
             {

                 ObjectiveImageQuestion oiq = new ObjectiveImageQuestion();
                 oiq.ShowDialog();
             }
             else if (myForm[Form_track] == "Normal Question")
             {

                 NormalQuestion nq = new NormalQuestion();
                 nq.ShowDialog();
             }
             else if (myForm[Form_track] == "Normal Question Objective Type")
             {

                 NormalObjectiveQuestion noq = new NormalObjectiveQuestion();
                 noq.ShowDialog();
             }
             else if (myForm[Form_track] == "Descriptive Question (No Image)")
             {

                 MathNormalQuestion mnq = new MathNormalQuestion();
                 mnq.ShowDialog();
             }
             else if (myForm[Form_track] == "Descriptive Question Objective Type (No Image)")
             {

                 MathObjectiveQuestion moq = new MathObjectiveQuestion();
                 moq.ShowDialog();
             }

             else if (myForm[Form_track] == "Flash Question")
             {
                 try
                 {
                     int result = myQuestionNoTemp.Find(item => item == myQuestionNo[Form_track]);

                   //  MessageBox.Show(result.ToString()+" Qn: "+myQuestionNo[Form_track].ToString());

                     if (result == myQuestionNo[Form_track])
                     {

                         FlashImageQuestion fiq = new FlashImageQuestion();
                         fiq.ShowDialog();
                     }
                     else
                     {

                         myQuestionNoTemp.Add(myQuestionNo[Form_track]);
                         FlashImageQuestionInstruction fiqi = new FlashImageQuestionInstruction();
                         fiqi.ShowDialog();

                     }

                 }

                 catch (Exception)
                 {
                     myQuestionNoTemp.Add(myQuestionNo[Form_track]);

                     FlashImageQuestionInstruction fiqi = new FlashImageQuestionInstruction();
                     fiqi.ShowDialog();

                }
             }
        }