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

            CertifiedPackageList.SetRecordsToShow(50);
            PackageSearch.SetRecordsToShow(50);
            DiaryGroup.ItemsSource = DiaryPager.SetPaging(CertifiedPackageList.NotUploaded(), 50).DefaultView;
        }
Beispiel #2
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;
        }