예제 #1
0
        public Collection GetCollectionById(string id)
        {
            try
            {
                var collection = _dbOperator.GetCollectionById(id);
                if (collection is null)
                {
                    Notification.Push(I18NUtil.GetString("err-collectionNotInDb"), I18NUtil.GetString("text-error"));
                }

                return(collection);
            }
            catch (Exception ex)
            {
                Notification.Push($"Error while getting collection by id: {ex.Message}");
                return(null);
            }
        }
예제 #2
0
        public CollectionPage(string colId) : this()
        {
            var collectionInfo = _appDbOperator.GetCollectionById(colId);

            NavigateNewCollection(collectionInfo);
        }
예제 #3
0
 public void UpdateView(string colId)
 {
     var collectionInfo = _appDbOperator.GetCollectionById(colId);
     ViewModel.CollectionInfo = collectionInfo;
     UpdateList();
 }