Esempio n. 1
0
        private void btnAddCliente_Click(object sender, EventArgs e)
        {
            IUCliente tela = new IUCliente(0, null);

            tela.ShowDialog();
            CarregaClientes();
        }
Esempio n. 2
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            IUCliente tela = new IUCliente(0, this);

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

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