예제 #1
0
        private void registrarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCompra frm = new FrmCompra();

            frm.MdiParent = this;
            frm.Show();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            if (Grilla.CurrentRow == null)
            {
                Mensaje("Dee seleccionar un registro");
                return;
            }
            Principal.CodPrincipalCompra = Convert.ToInt32(Grilla.CurrentRow.Cells[0].Value.ToString());
            FrmCompra frm = new FrmCompra();

            frm.ShowDialog();
        }