Exemplo n.º 1
0
        private void dgv_phieunhap_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int              index       = this.dgv_phieunhap.CurrentCell.RowIndex;
            string           maphieunhap = this.dgv_phieunhap.Rows[index].Cells["maphieunhap"].Value.ToString();
            Form_ctphieunhap frm         = new Form_ctphieunhap(maphieunhap);

            frm.ShowDialog(this);
        }
Exemplo n.º 2
0
        private void btn_insert_Click(object sender, EventArgs e)
        {
            Form_ctphieunhap frm = new Form_ctphieunhap();

            if (!Form1.is_existstab(tabcontrol, frm))
            {
                TabPage tpage = new TabPage(Text = frm.Text);
                this.tabcontrol.TabPages.Add(tpage);
                frm.TopLevel = false;
                frm.Parent   = tpage;

                frm.Show();
                frm.Dock = DockStyle.Fill;
            }
        }