Beispiel #1
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            if (txt_ChapterID.Text != "" && txt_ChapterName.Text != "" && count != 0)
            {
                var chapterID   = this.txt_ChapterID.Text;
                var chapterName = this.txt_ChapterName.Text;
                cChapters.addChapter(sub_id, chapterID, chapterName, details);
                this.txt_ChapterID.Text   = "";
                this.txt_ChapterName.Text = "";
                MessageBox.Show("Thành Công");


                this.txt_ChapterID.Text   = "";
                this.txt_ChapterName.Text = "";

                this.Dispose();
                UCChaptersAdd uCChaptersAdd = new UCChaptersAdd(sub_id, pnl_container, isAdmin);
                cMain.loadUC(pnl_container, uCChaptersAdd);
            }
            else if (count == 0)
            {
                MessageBox.Show("Vui lòng điền chi tiết trước");
            }
            else
            {
                MessageBox.Show("Vui lòng điền đầy đủ thông tin");
            }
        }
Beispiel #2
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            UCChaptersAdd uCChaptersAdd = new UCChaptersAdd(subId, pnl_container, isAdmin);

            cMain.loadUC(pnl_container, uCChaptersAdd);
        }