private void GetValue() { _originalModels = _storedProcedureAccessService.GetStoredProcedureInfoList(_database); Models.Clear(); _originalModels.ToList().ForEach(Models.Add); SearchValue.Text = string.Empty; }
public StoredProceduresListPage(IStoredProcedureAccessService storedProcedureAccessService, IDatabaseAccessService dataBaseAccessService, string database) { _storedProcedureAccessService = storedProcedureAccessService; _dataBaseAccessService = dataBaseAccessService; _database = database; _originalModels = storedProcedureAccessService.GetStoredProcedureInfoList(database); Models = new ObservableCollection <StoredProcedureViewModel>(_originalModels); InitializeComponent(); }