Esempio n. 1
0
        private void btnFindByDuration_Click(object sender, EventArgs e)
        {
            string search = searchStringTextBox.Text.ToLower();

            allItemsListBox.DataSource =
                MediaLibraryQueries.FindByDuration(myMediaLibrary, search, chkUseQueryExpression.Checked);
        }
Esempio n. 2
0
 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");
     }
 }