Exemplo n.º 1
0
        /// <summary>
        /// Adds tab to collection by current type.
        /// </summary>
        /// <typeparam name="T">Type of tab view model.</typeparam>
        /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
        protected async Task AddRelatedPage <T>()
            where T : PageViewModel
        {
            var viewModel = await Core.GetInstanceAsync <T>();

            RelatedPages.Add(viewModel);
        }
Exemplo n.º 2
0
 public void Remove(RelatedPages key)
 {
     _context.Remove(key);
     _context.SaveChanges();
 }
Exemplo n.º 3
0
 public void Update(RelatedPages page)
 {
     _context.Update(page);
     _context.SaveChanges();
 }
Exemplo n.º 4
0
 public void Add(RelatedPages page)
 {
     _context.Add(page);
     _context.SaveChanges();
 }