////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>   Constructor de la clase.\n
        ///             Constructor. </summary>
        ///
        /// <remarks>   Javier Fernández Fernández, 13/05/2020. </remarks>
        ///
        /// <param name="typeOfExamParam">  Tipo de examen.\n
        ///                                 Type of the exam parameter. </param>
        /// <param name="subjectParam">     Tema seleccionado.\n
        ///                                 The subject parameter. </param>
        /// <param name="dataPanelParam">   Panel donde el programa muestra los datos.\n
        ///                                 Panel where program show all data. </param>
        /// <param name="rightPanelParam">  Panel derecho.\n
        ///                                 Right panel. </param>
        /// <param name="beforeFormParam">  Panel anterior.\n
        ///                                 Before panel. </param>
        ////////////////////////////////////////////////////////////////////////////////////////////////////

        public SelectNormalModel(string typeOfExamParam, string subjectParam, Panel dataPanelParam, Panel rightPanelParam, Form beforeFormParam)
        {
            InitializeComponent();
            dataPanel  = dataPanelParam;
            rightPanel = rightPanelParam;
            subject    = subjectParam;
            typeOfExam = typeOfExamParam;
            beforeForm = beforeFormParam;
            ConnectionWithServer.setNewSelectNormalModel(this);
            showHideElements(false);

            if (typeOfExam == "normal")
            {
                string jsonMessageAddNewNormalModification = Utilities.generateSingleDataRequest("getAllNormalModels", subject);
                byte[] jSonObjectBytes = System.Text.Encoding.ASCII.GetBytes(Utilities.Encrypt(jsonMessageAddNewNormalModification, ConnectionWithServer.EncryptKey, ConnectionWithServer.IvString));
                ConnectionWithServer.ServerStream.Write(jSonObjectBytes, 0, jSonObjectBytes.Length);
                // Envio de datos mediante flush
                ConnectionWithServer.ServerStream.Flush();
            }
            else
            {
                string jsonMessageAddNewNormalModification = Utilities.generateSingleDataRequest("getAllTestModels", subject);
                byte[] jSonObjectBytes = System.Text.Encoding.ASCII.GetBytes(Utilities.Encrypt(jsonMessageAddNewNormalModification, ConnectionWithServer.EncryptKey, ConnectionWithServer.IvString));
                ConnectionWithServer.ServerStream.Write(jSonObjectBytes, 0, jSonObjectBytes.Length);
                // Envio de datos mediante flush
                ConnectionWithServer.ServerStream.Flush();
            }


            typeOfDataPanel.Focus();
        }