Example #1
0
        private void DeleteButton_Click(object sender, RoutedEventArgs e)
        {
            user.films.RemoveAt(index);
            var allFilmsPage = new AllFilmsPage();

            NavigationService.Navigate(allFilmsPage);
        }
Example #2
0
        private void SaveAdvancedSett_Click(object sender, RoutedEventArgs e)
        {
            var programStyle = new ProgramStyle()
            {
                IconBrushes     = IconColorPicker.SelectedColorText,
                UpGridBrushes   = UpGridColorPicker.SelectedColorText,
                GridMenyBrushes = GridMenyColorPicker.SelectedColorText,
                ChangePhoto     = GridMenyColorPicker.SelectedColorText
            };

            user.ProgramStyle = programStyle;
            var page = new AllFilmsPage();

            NavigationService.Navigate(page);
        }
Example #3
0
        private void AddFilmToUser_Click(object sender, RoutedEventArgs e)
        {
            if (MarkButton.Text == "Your mark" || MarkButton.Text == "")
            {
                MarkButton.Text = "0,0";
            }
            var Film = new Film()
            {
                Name    = Text_button.Text,
                Mark    = Convert.ToDouble(MarkButton.Text),
                Link    = PhotoLinkString,
                Comment = CommentButton.Text
            };

            user.films.Add(Film);
            var allFilmsPage = new AllFilmsPage();

            NavigationService.Navigate(allFilmsPage);
        }