Ejemplo n.º 1
0
        private void TriggerSearchEvent()
        {
            if (this.searchTextbox.Text != deafultSearchText)
            {
                var s = new SearchEventArgs(this.searchTextbox.Text.Trim());
                s.Params.SortBy = this.ratingFilter.Checked ? VideoSortby.Rating : (this.uploadDateFilter.Checked ?
                                                                                    VideoSortby.Date : VideoSortby.Relevance);
                s.Params.Period = this.anytimeFilter.Checked ? VideoPeriod.Anytime : (this.todayFilter.Checked ? VideoPeriod.Today :
                                                                                      (this.weekFilter.Checked ? VideoPeriod.ThisWeek : VideoPeriod.ThisMonth));
                s.Params.Duration = this.durationAllFilter.Checked ? VideoDuration.All : (this.shortDurationFilter.Checked ? VideoDuration.Short :
                                                                                          (this.durationMediumFilter.Checked ? VideoDuration.Medium : VideoDuration.Long));

                Search(this, s);
            }
        }
Ejemplo n.º 2
0
 private void searchPanelWidget_Search(object sender, SearchEventArgs e)
 {
     this.currentView.TriggerSearch(e.Params);
 }
Ejemplo n.º 3
0
 private void searchPanelWidget_Search(object sender, SearchEventArgs e)
 {
     this.currentView.TriggerSearch(e.Params);
 }
Ejemplo n.º 4
0
        private void TriggerSearchEvent()
        {
            if (this.searchTextbox.Text != deafultSearchText)
            {
                var s = new SearchEventArgs(this.searchTextbox.Text.Trim());
                s.Params.SortBy = this.ratingFilter.Checked ? VideoSortby.Rating : (this.uploadDateFilter.Checked ?
                    VideoSortby.Date : VideoSortby.Relevance );
                s.Params.Period = this.anytimeFilter.Checked ? VideoPeriod.Anytime : (this.todayFilter.Checked ? VideoPeriod.Today :
                    (this.weekFilter.Checked ? VideoPeriod.ThisWeek : VideoPeriod.ThisMonth));
                s.Params.Duration = this.durationAllFilter.Checked ? VideoDuration.All : (this.shortDurationFilter.Checked ? VideoDuration.Short :
                    (this.durationMediumFilter.Checked ? VideoDuration.Medium : VideoDuration.Long));

                Search(this, s);
            }
        }