I have two container controls I use as buttons. Each contains just a canvas. As the buttons look and behave similarly, the Paint event for each canvas has the same code. I’d like to put the code in a method, in particular since I will be making one of the buttons draggable, and will want to call this method to create the button outline during the drag.
Where is the best place to store such a method? The easy way I suppose would be a folder labelled “Button Bits” or similar but I wonder if there is more appropriate approach.