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

            DiaryGroup.ItemsSource = DiaryPager.SetPaging(DiaryList.NeedUploaded(), 55).DefaultView;
            DiarySearch.SetRecordsToShow(55);
        }
Exemple #2
0
        public CertifiedPackageUpload()
        {
            InitializeComponent();

            CertifiedPackageList.SetRecordsToShow(50);
            PackageSearch.SetRecordsToShow(50);
            DiaryGroup.ItemsSource = DiaryPager.SetPaging(CertifiedPackageList.NotUploaded(), 50).DefaultView;
        }
Exemple #3
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;
        }
 public DiaryView()
 {
     InitializeComponent();
     DiariesGrid.ItemsSource = DiaryPager.SetPaging(DiaryList.Uploaded(), 20).DefaultView;
     DiarySearch.SetRecordsToShow(20);
     int[] RecordsToDisplay = { 20, 50, 100, 500, 1000 };
     foreach (int RecordGroup in RecordsToDisplay)
     {
         Records.Items.Add(RecordGroup);
     }
     Records.SelectedItem = 20;
     RecordsDisplayed     = Convert.ToInt32(Records.SelectedItem);
     PageNumberDisplay();
 }
Exemple #5
0
        private async void UploadDiary_Click(object sender, RoutedEventArgs e)
        {
            int    EDIPI     = Int32.Parse(MembersEDIPI.Text);
            string lastName  = MembersLastName.Text;
            string firstName = MembersFirstName.Text;
            string MI        = MembersMI.Text;
            await Repository.UpdateCertifiedPackageAsync(DiaryId, SelectionNumber, FilePath, EDIPI, firstName, lastName, MI);

            SnackbarThree.MessageQueue.Enqueue("Package " + SelectionNumber + " has been updated");
            FilePath = null;
            MembersEDIPI.Clear();
            MembersFirstName.Clear();
            MembersLastName.Clear();
            MembersMI.Clear();
            UploadDiary.IsEnabled  = false;
            DiaryGroup.ItemsSource = DiaryPager.SetPaging(CertifiedPackageList.NotUploaded(), 15).DefaultView;
        }