private void btnFindByDuration_Click(object sender, EventArgs e) { string search = searchStringTextBox.Text.ToLower(); allItemsListBox.DataSource = MediaLibraryQueries.FindByDuration(myMediaLibrary, search, chkUseQueryExpression.Checked); }
private void btnFindByDuration_Click(object sender, EventArgs e) { try { string search = searchStringTextBox.Text.ToLower(); allItemsListBox.DataSource = MediaLibraryQueries.FindByDuration(myMediaLibrary, search, chkUseQueryExpression.Checked); } catch (BenignException ex) { MessageBox.Show(ex.Message, "Search Error"); } }