Beispiel #1
0
 private void LoadImageInfo()
 {
     try
     {
         _iv = new ImageSearch();
         var cwd = AppDomain.CurrentDomain.BaseDirectory;
         _iv.LoadFromDb(Path.Combine(cwd, "index.db"));
     }
     catch
     {
         MessageBox.Show("index.db is corrupted.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Environment.Exit(1);
     }
 }
Beispiel #2
0
 private void LoadImageInfo()
 {
     try
     {
         _iv = new ImageSearch();
         var cwd = AppDomain.CurrentDomain.BaseDirectory;
         _iv.LoadFromDb(Path.Combine(cwd, "index.db"));
     }
     catch
     {
         MessageBox.Show("index.db is corrupted.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Environment.Exit(1);
     }
 }