It's always tough losing a pet that was close to you. The only real thing you can do though is accept the fact that the dog is in a better place now (As weird as it may sound, I believe everything goes to heaven after it dies.).
But then again, I'm Wiccan, so coming from a Wiccan standpoint, your dog was only midway through it's life cycle, it will be reborn again into another shape.