Пример #1
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            IUContrato tela = new IUContrato(0, this, null);

            tela.Show();
            this.Hide();
        }
Пример #2
0
        private void dgvDados_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int        id   = Convert.ToInt32(dgvDados.Rows[e.RowIndex].Cells[0].Value.ToString());
            IUContrato tela = new IUContrato(id, this, null);

            tela.Show();
            this.Hide();
        }
Пример #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());
         IUContrato tela = new IUContrato(id, this, null);
         tela.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Selecione apenas um Registro!!!");
     }
 }