Example #1
0
//------------------------------------------------------------------
        private void btnCorrigir_Click(object sender, EventArgs e)
        {
            try
            {
                clnUrna ObjUrnaNull = new clnUrna();
                ObjUrnaNull.Rm = clnUrna.Temp;
                ObjUrnaNull.FuncãoTemporariaCorrigir();
            }
            catch (Exception error)
            { error.ToString(); }

            try
            {
                clnUrna objUrna = new clnUrna();
                objUrna.Rm = clnUrna.Temp;
                objUrna.Corrigir();

                txtNumero.Clear();
                txtChapa.Clear();
                txtViceP.Clear();
                txtPresidente.Clear();
                txtDescricao.Clear();
                btnConfirmar.Enabled = false;
                btnNulo.Enabled      = true;
                btnC1.Enabled        = true;
                btnC2.Enabled        = true;
                btnC3.Enabled        = true;
                btnC4.Enabled        = true;
                btnC5.Enabled        = true;
                pb1.Image            = null;
                btnCorrigir.Enabled  = false;
            }
            catch (Exception error)
            { error.ToString(); }
        }