Accepting the poor shot, dealing with the emotions, and committing to the next shot are challenges that even the best players find difficult. If you asked any golfer if they have ever had the perfect round, there would not be many who could confidently say yes. Success comes to those golfers who can deal with poor outcomes more efficiently and turn the negative emotions and results into positive ones. You will without a doubt hit some bad shots during the course of your round. You should. The trick is to learn to dismiss them as soon as they happen and move on. If you go into a round of golf knowing that at some stage you will hit some poor shots then when they do occur you are not so taken aback that you follow the poor shot up with a dumb shot.
You cannot change the shot or the outcome so the sooner you accept the shot and move on the less likely you will worry about it, let it bring you down, affect your confidence and create tentative play within your whole game.