Exemplo n.º 1
0
 private void WaveDataBaseSelection_FileSelect(object sender, OpenFileButton.FileSelectionArgs e)
 {
     if (e.isSelected)
     {
         m_WavesDataBase = new WaveLengthLoader(e.FileName);
         m_WavesDataBase.Search(" ", WavesDatabaseList);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 public static void Search(this WaveLengthLoader loader, string pattern, DataGrid WavesDatabaseList)
 {
     WavesDatabaseList.ItemsSource = loader.Search(pattern);
     WavesDatabaseList.Items.Refresh();
 }
Exemplo n.º 4
0
        private void WaveSearch_TextChanged(object sender, TextChangedEventArgs e)
        {
            var searchPattern = WaveSearch.Text;

            m_WavesDataBase.Search(searchPattern, WavesDatabaseList);
        }