private void TriggerSearchEvent()
        {
            var s = new SearchEventArgs(this.searchTextbox.Text != deafultSearchText ? this.searchTextbox.Text.Trim() : null);
            if (!String.IsNullOrEmpty(s.Params.Query))
                this.kryptonComboBoxYear.SelectedIndex = 0;

            if (this.kryptonComboBoxYear.SelectedItem.ToString() == "(New)")
                s.Params.Year = -1;
            else if (this.kryptonComboBoxYear.SelectedItem.ToString() != "(Year)")
                s.Params.Year = Convert.ToInt32(this.kryptonComboBoxYear.SelectedItem);

            s.Params.Language = ((Language)this.kryptonComboBoxLanguage.SelectedItem).Id;
            //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);

            var settings = ClientDataService.Single.Settings;
            settings.DefaultLanguage = s.Params.Language;
            ClientDataService.Single.SaveGlobalSettings(settings);
        }
Example #2
0
 private void searchPanelWidget_Search(object sender, SearchEventArgs e)
 {
     this.currentView.TriggerSearch(e.Params);
 }
Example #3
0
 private void searchPanelWidget_Search(object sender, SearchEventArgs e)
 {
     this.currentView.TriggerSearch(e.Params);
 }