public ApplicationContext (Form mainForm) { MainForm = mainForm; // Use property to get event handling setup }