示例#1
0
 private void btnAtivar1_Click(object sender, EventArgs e)
 {
     if (mer_id == 0)
     {
     }
     else
     {
         MercadoModel mer = new MercadoModel();
         if (active == 0)
         {
             mer.ativarMercado(mer_id);
         }
         else
         {
             mer.desativarMercado(mer_id);
         }
         preencherDataGrid();
     }
 }