Ejemplo n.º 1
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            IUFormaPagamento tela = new IUFormaPagamento(0, this, idestabelecimento);

            tela.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void dgvDados_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int id = Convert.ToInt32(dgvDados.Rows[e.RowIndex].Cells[0].Value.ToString());
            IUFormaPagamento tela = new IUFormaPagamento(id, this, idestabelecimento);

            tela.Show();
            this.Hide();
        }
Ejemplo n.º 3
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     if (dgvDados.SelectedRows.Count == 1)
     {
         int id = Convert.ToInt32(dgvDados.CurrentRow.Cells[0].Value.ToString());
         IUFormaPagamento tela = new IUFormaPagamento(id, this, idestabelecimento);
         tela.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Selecione apenas um Registro!!!");
     }
 }