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

            NavigationService.Navigate(page);
        }
コード例 #2
0
        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            IndexOfSelectedFilms.Clear();
            var page = new Librari();

            NavigationService.Navigate(page);
        }
コード例 #3
0
        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);
        }