Example #1
0
 private void SetInputDir(string inputDir)
 {
     //string[] files = Directory.GetFiles(inputDir, _fileFilter, SearchOption.AllDirectories);
     //if (files == null || files.Length < 1)
     //    return;
     _isvalid = false;
     IsHaveValidFile(inputDir);
     if (!_isvalid)
     {
         FillTreeView(null, inputDir);
         return;
     }
     try
     {
         string[] datasetWithID;
         if (_frmMode == "MOD06")
         {
             datasetWithID = _dbcon.QueryDatasetsWithPrdsID("MOD06");
         }
         else if (_frmMode == "MYD06")
         {
             datasetWithID = _dbcon.QueryDatasetsWithPrdsID("MYD06");
         }
         else
         {
             datasetWithID = _dbcon.QueryDatasetsWithPrdsID("AIRS");
         }
         FillTreeView(datasetWithID.ToArray(), inputDir);
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }