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

            CertifiedPackageList.SetRecordsToShow(50);
            PackageSearch.SetRecordsToShow(50);
            DiaryGroup.ItemsSource = DiaryPager.SetPaging(CertifiedPackageList.NotUploaded(), 50).DefaultView;
        }
Example #2
0
        public void PageNumberDisplay()
        {
            int PagedNumber = RecordsDisplayed * (PackagePager.PageIndex + 1);

            if (PagedNumber > CertifiedPackageList.Uploaded().Count)
            {
                PagedNumber = CertifiedPackageList.Uploaded().Count;
            }
            NumberDisplay.Text = "Showing " + PagedNumber + " of " + CertifiedPackageList.Uploaded().Count;
        }
Example #3
0
 public CertifiedPackageView()
 {
     InitializeComponent();
     DiariesGrid.ItemsSource = PackagePager.SetPaging(CertifiedPackageList.Uploaded(), 20).DefaultView;
     PackageSearch.SetRecordsToShow(20);
     int[] RecordsToDisplay = { 20, 50, 100, 500, 1000 };
     foreach (int Record in RecordsToDisplay)
     {
         Records.Items.Add(Record);
     }
     Records.SelectedItem = 20;
     RecordsDisplayed     = Convert.ToInt32(Records.SelectedItem);
     PageNumberDisplay();
 }
Example #4
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;
        }
Example #5
0
        /// <summary>
        /// Loads the Background image and Stores the Left Menu Navigation Items
        /// </summary>
        public MainWindow()
        {
            CommandModel.SetDateContext(DateTime.Now.Year.ToString());
            UserSettings.SetUp();
            CheckUser();
            UserThemeSettings();
            InitializeComponent();

            string UserName = CommandModel.GetUserContext();

            DiaryList.PrepareList();
            CertifiedPackageList.PreparePackages();
            CheckVersion();

            //Navigates to the Welcome Page
            ContentFrame.Navigate(new Uri("Pages/WelcomePage.xaml", UriKind.Relative));
            HeaderBlock.Text = "Welcome " + UserName;
        }
Example #6
0
 private void Records_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     RecordsDisplayed        = Convert.ToInt32(Records.SelectedItem);
     DiariesGrid.ItemsSource = PackagePager.First(CertifiedPackageList.Uploaded(), RecordsDisplayed).DefaultView;
     PageNumberDisplay();
 }
Example #7
0
 private void Last_Click(object sender, RoutedEventArgs e)
 {
     DiariesGrid.ItemsSource = PackagePager.Last(CertifiedPackageList.Uploaded(), RecordsDisplayed).DefaultView;
     PageNumberDisplay();
 }