Esempio n. 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            bool   isempty  = false;
            string levevlup = txtCourseLevel.Text;
            string timeup   = rtCourseTime.Text;

            if (txtCourseLevel.Text == null || txtCourseLevel.Text == "")
            {
                isempty = true;
                temp    = temp + dc.syllabusinfo("level") + "\n";
            }
            if (rtCourseTime.Text == null || rtCourseTime.Text == "")
            {
                isempty = true;
                temp    = temp + dc.syllabusinfo("time") + "\n";
            }
            if (isempty == false)
            {
                if (sys.UpdateSysInfo(idsysinfo, levevlup, timeup) == true)
                {
                    MessageBox.Show(dc.syllabusinfo("success"));
                    this.Close();
                }
                else
                {
                    MessageBox.Show(dc.syllabusinfo("else"));
                }
            }
            else
            {
                MessageBox.Show(temp + "\nVui lòng kiểm tra lại");
            }
        }
Esempio n. 2
0
        public string syllabusinfoTest([PexAssumeUnderTest] DicBLL target, string mes)
        {
            string result = target.syllabusinfo(mes);

            return(result);
            // TODO: add assertions to method DicBLLTest.syllabusinfoTest(DicBLL, String)
        }