Ejemplo n.º 1
0
        public DiaryUpload()
        {
            InitializeComponent();

            DiaryGroup.ItemsSource = DiaryPager.SetPaging(DiaryList.NeedUploaded(), 55).DefaultView;
            DiarySearch.SetRecordsToShow(55);
        }
Ejemplo n.º 2
0
        private void SearchBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            bool sorter = Int32.TryParse(SearchBox.Text, out int UdNumber);

            if (!sorter)
            {
                UdNumber = 0;
            }
            DiaryGroup.ItemsSource = DiarySearch.ByNotUploaded(UdNumber).DefaultView;
        }
Ejemplo n.º 3
0
 private void UploaderNameSearch_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (DiaryNumberSearch.Text != "")
     {
         int UDNumber = Converter(DiaryNumberSearch.Text);
         DiariesGrid.ItemsSource = DiarySearch.ByUploader(UDNumber, UploaderNameSearch.Text).DefaultView;
     }
     else
     {
         DiariesGrid.ItemsSource = DiarySearch.ByUploader(UploaderNameSearch.Text).DefaultView;
     }
 }
Ejemplo n.º 4
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();
 }
Ejemplo n.º 5
0
        private void DiaryNumberSearch_TextChanged(object sender, TextChangedEventArgs e)
        {
            int UDNumber = Converter(DiaryNumberSearch.Text);

            DiariesGrid.ItemsSource = DiarySearch.ByUploaded(UDNumber).DefaultView;
        }
Ejemplo n.º 6
0
        private void CertEdipiSearch_TextChanged(object sender, TextChangedEventArgs e)
        {
            int CertEdipi = Converter(CertEdipiSearch.Text);

            DiariesGrid.ItemsSource = DiarySearch.ByUploadedCert(CertEdipi).DefaultView;
        }