예제 #1
0
        private void BtNovo_Click(object sender, EventArgs e)
        {
            Location = new Point(300, 300);



            frmCadCompra frm = new frmCadCompra();

            frm.ShowDialog();
        }
예제 #2
0
        private void btAlterar_Click(object sender, EventArgs e)
        {
            if (dgListaCompra.Rows.Count == 0)
            {
                Geral.Erro("Não há Compra Selecionada para Alterar!");
                return;
            }

            frmCadCompra frm = new frmCadCompra();

            frm.txtIdCompra.Text = dgListaCompra.CurrentRow.Cells["COMPRA_ID"].Value.ToString();
            frm.ShowDialog();

            BuscarCompra();
        }