private void txt_TB_Name_TextChanged(object sender, EventArgs e)
        {
            string strid = txt_TB_ID.Text;

            GeneralFuntion.textBox_letters(txt_TB_ID);
            updateButtons();
            txt_TB_ID.Text = strid;
        }
        private void txt_TB_Syllabus_TextChanged(object sender, EventArgs e)
        {
            string strHours = txt_TB_HL.Text;

            GeneralFuntion.textBox_letters(txt_TB_HL);
            updateButtons();
            txt_TB_HL.Text = strHours;
        }
Ejemplo n.º 3
0
        private void txt_TB_CourseName_TextChanged(object sender, EventArgs e)
        {
            GeneralFuntion.textBox_letters(txt_TB_CourseName);

            // search course by id - from database
            if (txt_TB_CourseName.TextLength > 0)
            {
                courses = dal.courses.Where(x => x.Name.Contains(txt_TB_CourseName.Text)).ToList <Course>();
            }

            if (courses != null)
            {
                UpdateCoursesInComboBox(courses);
            }
            if (CourseSelected == null && txt_TB_CourseName.TextLength > 0)
            {
                txt_TB_CourseID.Text = "";
            }
        }
 private void txt_TB_Name_TextChanged(object sender, EventArgs e)
 {
     GeneralFuntion.textBox_letters(txt_TB_Name);
 }
 private void txt_TB_Namec_TextChanged(object sender, EventArgs e)
 {
     GeneralFuntion.textBox_letters(txt_TB_Namec);
     UpdateButtons();
     resertDetailCourse();
 }