示例#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);
            }
        }
示例#2
0
 private void searchPanelWidget_Search(object sender, SearchEventArgs e)
 {
     this.currentView.TriggerSearch(e.Params);
 }
示例#3
0
 private void searchPanelWidget_Search(object sender, SearchEventArgs e)
 {
     this.currentView.TriggerSearch(e.Params);
 }
        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);
            }
        }