Exemple #1
0
        private void DeleteLibraryButton_Click(object sender, RoutedEventArgs e)
        {
            user.userLibraris.RemoveAt(UserLibrari.currentUserLibrariIndex);
            var page = new Librari();

            NavigationService.Navigate(page);
        }
        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            IndexOfSelectedFilms.Clear();
            var page = new Librari();

            NavigationService.Navigate(page);
        }
        private void AddLibrariToUser_Click(object sender, RoutedEventArgs e)
        {
            var Librari = new UserLibrari()
            {
                Name = LibrariName_button.Text,
                Link = PhotoLinkString
            };

            user.userLibraris.Add(Librari);
            var LibrariPage = new Librari();

            NavigationService.Navigate(LibrariPage);
        }