protected override void OnViewLoaded() { if (firstLoad) { RegisterToDatabaseChange(); } firstLoad = false; var databaseName = ApplicationModel.Current.Server.Value.SelectedDatabase.Value.Name; OnPropertyChanged(() => CurrentDatabase); Tasks.Sections.Clear(); var import = new ImportTaskSectionModel(); Tasks.Sections.Add(import); Tasks.SelectedSection.Value = import; Tasks.Sections.Add(new ExportTaskSectionModel()); Tasks.Sections.Add(new StartBackupTaskSectionModel()); if (databaseName == Constants.SystemDatabase) { Tasks.Sections.Add(new StartRestoreTaskSectionModel()); } Tasks.Sections.Add(new IndexingTaskSectionModel()); Tasks.Sections.Add(new SampleDataTaskSectionModel()); Tasks.Sections.Add(new CsvImportTaskSectionModel()); }
protected override void OnViewLoaded() { if (firstLoad) RegisterToDatabaseChange(); firstLoad = false; var databaseName = ApplicationModel.Current.Server.Value.SelectedDatabase.Value.Name; OnPropertyChanged(() => CurrentDatabase); Tasks.Sections.Clear(); var import = new ImportTaskSectionModel(); Tasks.Sections.Add(import); Tasks.SelectedSection.Value = import; Tasks.Sections.Add(new ExportTaskSectionModel()); Tasks.Sections.Add(new StartBackupTaskSectionModel()); if (databaseName == Constants.SystemDatabase) Tasks.Sections.Add(new StartRestoreTaskSectionModel()); Tasks.Sections.Add(new IndexingTaskSectionModel()); Tasks.Sections.Add(new SampleDataTaskSectionModel()); Tasks.Sections.Add(new CsvImportTaskSectionModel()); }
public ImportDatabaseCommand(ImportTaskSectionModel taskModel, Action <string> output) { this.output = output; this.taskModel = taskModel; }
public ImportDatabaseCommand(ImportTaskSectionModel taskModel, Action<string> output) { this.output = output; this.taskModel = taskModel; }