//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> Constructor de la clase.\n /// Constructor. </summary> /// /// <remarks> Javier Fernández Fernández, 12/05/2020. </remarks> /// /// <param name="typeOfExamParam"> Tipo de examen.\n /// Type of the exam parameter. </param> /// <param name="themeSelectedParam"> Tema seleccionado para hacer el examen.\n /// The theme selected parameter. </param> /// <param name="dataPanelParam"> Panel donde el programa muestra los datos.\n /// The data panel parameter that the program show all data. </param> /// <param name="rightPanelParam"> Panel derecho del programa.\n /// The right panel parameter. </param> /// <param name="beforeFormParam"> Panel anterior.\n /// The before form parameter. </param> /// <param name="saveAsModelParam"> True si se va a guardar el modelo de examen, false en caso contrario.\n /// True if the program will save the model of the exam, false in the opposite case.</param> //////////////////////////////////////////////////////////////////////////////////////////////////// public CreateTestExam(string typeOfExamParam, string themeSelectedParam, Panel dataPanelParam, Panel rightPanelParam, Form beforeFormParam, bool saveAsModelParam) { InitializeComponent(); dataPanel = dataPanelParam; rightPanel = rightPanelParam; themeSelected = themeSelectedParam; typeOfExam = typeOfExamParam; beforeForm = beforeFormParam; ConnectionWithServer.setCreateTestExam(this); showHideElements(false); showHideBackButton(false); showHideLabelWait(true); showHideErrorMessage(false); saveAsModel = saveAsModelParam; getAllTestQuestionsSpecificTheme(); typeOfDataPanel.Focus(); }