private void filterBox_SelectedIndexChanged(object sender, EventArgs e) { if (dontFilterMark == true) { dontFilterMark = false; return; } BookView bw = (BookView)ActiveMdiChild; if (bw == null) { return; } bw.filterItems((FilterType)filterBox.SelectedIndex); }