示例#1
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            IUFuncionario tela = new IUFuncionario(0, this);

            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());
            IUFuncionario tela = new IUFuncionario(id, this);

            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());
         IUFuncionario tela = new IUFuncionario(id, this);
         tela.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Selecione apenas um Registro!!!");
     }
 }