Esempio 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);
        }
Esempio n. 2
0
 public void Remove(RelatedPages key)
 {
     _context.Remove(key);
     _context.SaveChanges();
 }
Esempio n. 3
0
 public void Update(RelatedPages page)
 {
     _context.Update(page);
     _context.SaveChanges();
 }
Esempio n. 4
0
 public void Add(RelatedPages page)
 {
     _context.Add(page);
     _context.SaveChanges();
 }