コード例 #1
0
 private void LoadData()
 {
     Globals.ChronoLoadData.Start();
     try
     {
         DBApp.Open();
         LettersBindingSource.DataSource = DBApp.LettersAsBindingList;
         if (Globals.IsDebugExecutable) // TODO remove when ready
         {
             DBHebrew.TakeLettriqs();
             TermsBindingSource.DataSource    = DBHebrew.TermsHebrewAsBindingList;
             LettriqsBindingSource.DataSource = DBHebrew.TermLettriqsAsBindingList;
         }
     }
     catch (Exception ex)
     {
         DisplayManager.ShowError(SysTranslations.ApplicationMustExit.GetLang() + Globals.NL2 +
                                  SysTranslations.ContactSupport.GetLang());
         ex.Manage();
         Environment.Exit(-1);
     }
     finally
     {
         Globals.ChronoLoadData.Stop();
         Settings.BenchmarkLoadData = Globals.ChronoLoadData.ElapsedMilliseconds;
     }
 }