public FilterItem(String text, String imageSource, HistoryEvent.StatusType status, MediaType media) { this.text = text; this.imageSource = imageSource; this.status = status; this.media = media; }
// OnSelctionChangedEvent will apply filter public void Select(HistoryEvent.StatusType statusToDisplay, MediaType mediaTypeToDisplay) { int index = this.filterItems.FindIndex(x => x.Media == mediaTypeToDisplay && x.Status == statusToDisplay); if (index != -1) { this.comboBoxFilterCriteria.SelectedIndex = index; } }
private void Filter(HistoryEvent.StatusType statusToDisplay, MediaType mediaTypeToDisplay) { this.statusToDisplay = statusToDisplay; this.mediaTypeToDisplay = mediaTypeToDisplay; this.historyView.Refresh(); }