Пример #1
0
        public async Task LoadSqlInstanceAndDbs()
        {
            await SqlInstancesVm.RetrieveInstanceAsync();

            await SqlInstancesVm.RetrieveDbNamesAsync(SqlInstancesVm.SelectedInst);

            var pref = _userPreferencePersist.LoadPreference();

            DbRestorOptVm.TargetDbName = pref.LastUsedDbName;
        }
Пример #2
0
 private void OnRestored()
 {
     DispatcherHelper.CheckBeginInvokeOnUI(
         async() => await SqlInstancesVm.RetrieveDbNamesAsync(SqlInstancesVm.SelectedInst));
 }