public static void SendDataFromStudentTextBox(Control parent, string filePath, int RowIndex)
        {
            int i = 0;

            foreach (Control c in parent.Controls)
            {
                if (c.GetType() == typeof(TextBox))
                {
                    i++;
                }
            }
            string[] mass = new string[i + 1];

            foreach (Control c in parent.Controls)
            {
                if (c.GetType() == typeof(TextBox))
                {
                    TextBox textBox = new TextBox();
                    textBox = (TextBox)c;
                    mass[textBox.TabIndex - 1] = textBox.Text;
                }
            }
            mass[mass.Length - 1] = filePath;
            BusinessClass.DataInForStudent(mass, RowIndex);
        }
        public static void SendDataFromStudentTextBox(Control parent, string filePath)
        {
            int i = 0;

            foreach (Control c in parent.Controls)
            {
                if (c.GetType() == typeof(TextBox))
                {
                    i++;
                }
            }
            string[] mass = new string[i + 1];

            foreach (Control c in parent.Controls)
            {
                if (c.GetType() == typeof(TextBox))
                {
                    TextBox textBox = new TextBox();
                    textBox = (TextBox)c;
                    mass[textBox.TabIndex - 1] = textBox.Text;
                }
            }
            mass[mass.Length - 1] = filePath;
            //foreach (var item in mass) MessageBox.Show(Convert.ToString(item));
            //BusinessClass.DataInForStudent(textBoxGroupe.Text, textBoxRoom.Text, textBoxName1.Text, textBoxName2.Text, textBoxName3.Text, textBoxTicet.Text, textBoxFormStudy.Text, textBoxCB.Text, textBoxDescription.Text, FilePath);
            BusinessClass.DataInForStudent(mass);
        }