Пример #1
0
        private void OnSearch()
        {
            if (!Id.HasValue)
            {
                return;
            }

            if (_history.Any())
            {
                if (_history.Peek() != Id.Value)
                {
                    _history.Push(Id.Value);
                }
            }
            else
            {
                _history.Push(Id.Value);
            }

            Tables.Clear();
            foreach (var table in DbManager.Search(ConnectionString, Id.Value).OrderBy(x => x.Name))
            {
                Tables.Add(table);
            }

            BackCommand.OnCanExecuteChanged();
        }
Пример #2
0
 protected override void OnNewTemplatesAvailable()
 {
     UpdateCanFinish(false);
     _canGoBack = false;
     BackCommand.OnCanExecuteChanged();
     ShowFinishButton = false;
     EnableGoForward();
     NavigationService.Navigate(new NewItemSetupView());
     NewItemSetup.Initialize(true);
 }
 private void UpdateCanGoBack(bool canGoBack)
 {
     _canGoBack = canGoBack;
     BackCommand.OnCanExecuteChanged();
 }