Exemple #1
0
 public void DeletePet(string codBusca)
 {
     try
     {
         string         comando        = "delete from tb_pet where id_pet = ? ;";
         string         apontar        = "@id_pet";
         Cl_MysqlConect cl_MysqlConect = new Cl_MysqlConect();
         cl_MysqlConect.DeleteRegMysql(int.Parse(codBusca), comando, apontar);
     }
     catch (Exception erro)
     {
         System.Windows.Forms.MessageBox.Show("Erro!" + erro);
     }
 }
Exemple #2
0
        public void DeleteRastreador(int codRastreador)
        {
            string comDeleteTutor = "delete from tb_rastreador where cod_Rastreador = ?";
            string apontar        = "@cod_ratreador";

            try
            {
                Cl_MysqlConect objcon = new Cl_MysqlConect();
                objcon.DeleteRegMysql(codRastreador, comDeleteTutor, apontar);
            }
            catch (Exception error)
            {
                System.Windows.Forms.MessageBox.Show("Erro!" + error);
            }
        }
Exemple #3
0
        public void DeleteTutor(string codBusca)
        {
            string comDeleteTutor = "delete from tb_loginTutor where id_tutor = ?";
            string apontar        = "@id_tutor";

            try
            {
                CodigoTutor = codBusca;
                Cl_MysqlConect objcon = new Cl_MysqlConect();
                objcon.DeleteRegMysql(int.Parse(CodigoTutor), comDeleteTutor, apontar);
            }catch (Exception error)
            {
                System.Windows.Forms.MessageBox.Show("Erro!" + error);
            }
        }
Exemple #4
0
        public void DeleteLocalizacao()
        {
            string comDelete = "delete from tb_localizacao where id_localizacao = ?";
            string apontar   = "@id_localizacao";

            try
            {
                Cl_MysqlConect objcon = new Cl_MysqlConect();
                objcon.DeleteRegMysql(int.Parse(Id_localizacao), comDelete, apontar);
            }
            catch (Exception error)
            {
                System.Windows.Forms.MessageBox.Show("Erro!" + error);
            }
        }