コード例 #1
0
 public void ChangeDatabase()
 {
     if (mappingPageViewModel.TableMappingViewModels != null && connectionPageViewModel.SelectedDatabase != null)
     {
         mappingPageViewModel.tableMappingSwitchDatabase(mappingPageViewModel.TableMappings.ToArray(),
                                                         connectionPageViewModel.SelectedDatabase);
     }
     NotifyPropertyChanged("TableMappings");
     NotifyPropertyChanged("MappingTableReferences");
     NotifyPropertyChanged("TableMappingViewModels");
 }