very good points raised so far.
I agree that you should tell your wife about the affair if you wish to restart your marriage. Trust and communication is key, and confessing would be a start. Once you decide to try to patch things up with the wife, go all out.
Bored? Start behaving like a new couple. Do new things together, both in and out of bed. take a second honeymoon.