Ejemplo n.º 1
0
        public override Task ActivateAsync(object parameter, IDictionary <string, object> state, NavigationMode mode)
        {
            if (parameter is int itemId)
            {
                var item = _database.Get <Item>(itemId);

                Items.Add(item);
                _previousTags = item.Tags;
                Tags          = new ObservableCollection <Tag>(item.Tags);
            }
            else if (parameter is List <Item> itemList)
            {
                Items.AddRange(itemList);
            }

            UpdateSuggestions();

            return(Task.FromResult(true));
        }