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

            DiaryGroup.ItemsSource = DiaryPager.SetPaging(DiaryList.NeedUploaded(), 55).DefaultView;
            DiarySearch.SetRecordsToShow(55);
        }
Example #2
0
 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();
 }