public MainForm() { InitializeComponent(); this.activeDataSources = new List<IDataSource>(); this.FormClosing += new FormClosingEventHandler(MainForm_FormClosing); }