Exemple #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>   Constructor de la clase.\n
        ///             Constructor of the class </summary>
        ///
        /// <remarks>   Javier Fernández Fernández, 29/04/2020. </remarks>
        ///
        /// <param name="typeOfExamParam">      Tipo de examen.\n
        ///                                     Type of exam. </param>
        /// <param name="subjectSelectedParam"> tema seleccionado.\n
        ///                                     Selected theme. </param>
        /// <param name="dataPanelParam">       Panel donde se muestran los datos.\n
        ///                                     Panel where program show all data. </param>
        /// <param name="rightPanelParam">      Panel de la derecha del programa.\n
        ///                                     Right panel. </param>
        /// <param name="beforeFormParam">      Panel anterior.\n
        ///                                     Before panel. </param>
        ////////////////////////////////////////////////////////////////////////////////////////////////////

        public AddNewQuestionTypeTest(string typeOfExamParam, string subjectSelectedParam, Panel dataPanelParam, Panel rightPanelParam, Form beforeFormParam)
        {
            InitializeComponent();
            dataPanel            = dataPanelParam;
            rightPanel           = rightPanelParam;
            subjectSelectedParam = subjectSelectedParam.Replace("Asignatura: ", "");
            subject = subjectSelectedParam;
            subjectSelected.Text            += subjectSelectedParam;
            labelRequestTypeOfQuestion.Text += typeOfExamParam;
            beforeForm = beforeFormParam;
            comboBoxOfThemes.Items.Add(bannerComboBox);
            comboBoxOfThemes.Visible = false;
            ConnectionWithServer.setNewQuestionFormTestType(this);
            comboBoxCorrectAnswer.SelectedIndex = comboBoxCorrectAnswer.FindStringExact("A");
            typeOfDataPanel.Focus();
        }