So I'm creating a programme right now and I'm only needing to create one object of a specific class/subclass. However I want to be able to edit this object within several different button 'events'. I'm looking to probably create the object within the main function as soon as the program starts, but then be able to use the object out of the scope of 'main', such as when a button is pressed. I've looked around and I can't seem to find any particular way that this would work. I'm writing it in c# with Windows Forms.
So any suggestions would be helpful, thanks!