Beispiel #1
0
        private void btnCEP_Click(object sender, EventArgs e)
        {
            frmCEP frmCEP = new frmCEP(new CEP());

            frmCEP.ShowDialog();
            frmCEP.Dispose();
        }
        private void btnNovo_Click(object sender, EventArgs e)
        {
            frmCEP cep = new frmCEP(new Modelo.CEP());

            cep.ShowDialog();
            cep.Dispose();
        }
 private void dgvCEP_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         CEP    cepSelecionado = dgvCEP.Rows[e.RowIndex].DataBoundItem as CEP;
         frmCEP cep            = new frmCEP(cepSelecionado);
         cep.ShowDialog();
         cep.Dispose();
     }
 }