Beispiel #1
0
        public DiaryUpload()
        {
            InitializeComponent();

            DiaryGroup.ItemsSource = DiaryPager.SetPaging(DiaryList.NeedUploaded(), 55).DefaultView;
            DiarySearch.SetRecordsToShow(55);
        }
Beispiel #2
0
        private async void UploadDiary_Click(object sender, RoutedEventArgs e)
        {
            await Repository.UpdateRegularDiaryAsync(DiaryId, SelectionNumber, FilePath);

            SnackbarThree.MessageQueue.Enqueue("Diary " + SelectionNumber + " has been updated");
            SelectedDiary.Clear();
            SearchBox.Clear();
            ChosenDiary.Clear();
            FilePath = null;
            UploadDiary.IsEnabled  = false;
            DiaryGroup.ItemsSource = DiaryPager.SetPaging(DiaryList.NeedUploaded(), 15).DefaultView;
        }