Пример #1
0
        private void btnDocbai_Click(object sender, EventArgs e)
        {
            frmDocbai f = new frmDocbai();

            string strNoidung = "";

            if (phan == 1)
            {
                BaiHoc bh = lstXepTu.FirstOrDefault(s => s.Id == bai);
                foreach (Noidung nd in bh.baihoc)
                {
                    strNoidung += MyFunction.ConvertUNI2TCV(nd.noidung) + Environment.NewLine;
                }
            }

            if (phan == 2)
            {
                BaiHoc bh = lstNoiOChu.FirstOrDefault(s => s.Id == bai);
                foreach (Noidung nd in bh.baihoc)
                {
                    strNoidung += MyFunction.ConvertUNI2TCV(nd.noidung.Replace("//", " ")) + Environment.NewLine;
                }
            }

            f.lblNoidung.Text = strNoidung;
            f.ShowDialog();
            f.Dispose();
        }
Пример #2
0
        private void btnDocbai_Click(object sender, EventArgs e)
        {
            frmDocbai f = new frmDocbai();

            f.lblNoidung.Text = txtBai.Text;
            f.ShowDialog();
            f.Dispose();
        }