private void programDeleteButton_Click(object sender, EventArgs e) { programs.Remove(activeProgram); activeProgram.Dispose(); activeProgram = null; refreshProgramListView(); clearProgramFields(); }