Esempio n. 1
0
 void TimerElapsed(object sender, ElapsedEventArgs e)
 {
     try
     {
         _autoCompleter = new AutoCompleter(CreateDatabase());
     }
     catch (Exception)
     {
         Trace.WriteLine("Failed to open database.");
     }
 }
Esempio n. 2
0
 void TimerElapsed(object sender, ElapsedEventArgs e)
 {
     try
     {
         _autoCompleter = new AutoCompleter(CreateDatabase());
     }
     catch (Exception)
     {
         Trace.WriteLine("Failed to open database.");
     }
 }
Esempio n. 3
0
        private void LoadSettings()
        {
            if (Properties.Settings.Default.UpgradeRequired)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.Save();
            }
            _databaseSelectorViewModel.SelectedMethod = _databaseSelectorViewModel.Methods
                                                        .FirstOrDefault(
                m =>
                m.Name.Equals(Properties.Settings.Default.OpenMethod) &&
                m.GetParameters().Length == Properties.Settings.Default.OpenMethodParameterCount);
            _databaseSelectorViewModel.Parameter1 = Properties.Settings.Default.OpenMethodParameter1;
            _databaseSelectorViewModel.Parameter2 = Properties.Settings.Default.OpenMethodParameter2;

            try
            {
                _autoCompleter = new AutoCompleter(CreateDatabase());
            }
            catch (Exception)
            {
                Trace.WriteLine("Failed to open database.");
            }
        }
Esempio n. 4
0
        private void LoadSettings()
        {
            if (Properties.Settings.Default.UpgradeRequired)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.Save();
            }
            _databaseSelectorViewModel.SelectedMethod = _databaseSelectorViewModel.Methods
                .FirstOrDefault(
                    m =>
                    m.Name.Equals(Properties.Settings.Default.OpenMethod) &&
                    m.GetParameters().Length == Properties.Settings.Default.OpenMethodParameterCount);
            _databaseSelectorViewModel.Parameter1 = Properties.Settings.Default.OpenMethodParameter1;
            _databaseSelectorViewModel.Parameter2 = Properties.Settings.Default.OpenMethodParameter2;

            try
            {
                _autoCompleter = new AutoCompleter(CreateDatabase());
            }
            catch (Exception)
            {
                Trace.WriteLine("Failed to open database.");
            }
        }