Exemple #1
0
        private void bntInMau_Click(object sender, EventArgs e)
        {
            if (RowSelectIndex == -1 || RowSelectIndex >= dtMauThongBao.Rows.Count)
            {
                MessageBox.Show("Bạn chưa chọn mẫu, Vui lòng chọn!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            GUI_InThongBao fInThongBao = new GUI_InThongBao(Convert.ToInt32(dtMauThongBao.Rows[RowSelectIndex][0]));

            fInThongBao.MdiParent       = this.MdiParent;
            fInThongBao.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            fInThongBao.Dock            = DockStyle.Fill;
            fInThongBao.Show();
        }
Exemple #2
0
 private void bntThem_Click(object sender, EventArgs e)
 {
     fIn = ShowOrActiveForm(fIn, typeof(GUI_InThongBao)) as GUI_InThongBao;
 }