Beispiel #1
0
 private void WaveDataBaseSelection_FileSelect(object sender, OpenFileButton.FileSelectionArgs e)
 {
     if (e.isSelected)
     {
         m_WavesDataBase = new WaveLengthLoader(e.FileName);
         m_WavesDataBase.Search(" ", WavesDatabaseList);
     }
 }
Beispiel #2
0
 private void WaveDataBaseSelection_Loaded(object sender, RoutedEventArgs e)
 {
     if ((sender as OpenFileButton).SelectedFileName != null)
     {
         m_WavesDataBase = new WaveLengthLoader((sender as OpenFileButton).SelectedFileName);
         m_WavesDataBase.Search(" ", WavesDatabaseList);
     }
 }
Beispiel #3
0
 public static void Search(this WaveLengthLoader loader, string pattern, DataGrid WavesDatabaseList)
 {
     WavesDatabaseList.ItemsSource = loader.Search(pattern);
     WavesDatabaseList.Items.Refresh();
 }
Beispiel #4
0
        private void WaveSearch_TextChanged(object sender, TextChangedEventArgs e)
        {
            var searchPattern = WaveSearch.Text;

            m_WavesDataBase.Search(searchPattern, WavesDatabaseList);
        }