private void ValidaInsert_Update()
 {
     var BL = new tb_pt_articuloBL();
     var BE = new tb_pt_articulo();
     var dt = new DataTable();
     BE.articidold = articidold.Text.Trim();
     dt = BL.GetAll_CODdbf(EmpresaID, BE).Tables[0];
     if (dt.Rows.Count > 0)
     {
         var n = Convert.ToInt32(dt.Rows[0]["cant"].ToString());
         if (n > 0)
         {
             Update_DBF();
         }
         else
         {
             Insert_DBF();
         }
     }
 }