Exemple #1
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            IUServico tela = new IUServico(0, this, null, null);

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

            tela.Show();
            this.Hide();
        }
Exemple #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());
         IUServico tela = new IUServico(id, this, null, null);
         tela.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Selecione apenas um Registro!!!");
     }
 }
        private void btnAddServico_Click(object sender, EventArgs e)
        {
            IUServico tela = new IUServico(0, null, null, this);

            tela.ShowDialog();
        }