void lnkSelectAllMediaTypes_Click(object sender, RoutedEventArgs e) { EnumWrapperList <MediaType> source = lstMediaTypes.ItemsSource as EnumWrapperList <MediaType>; bool selectAll = (sender as Hyperlink) == lnkSelectAllMediaTypes; source.SelectAll(selectAll); SetListDataSource(lstMediaTypes, source); }
void lnkSelectAllVideoFormats_Click(object sender, RoutedEventArgs e) { EnumWrapperList <VideoFormat> source = lstVideoFormats.ItemsSource as EnumWrapperList <VideoFormat>; bool selectAll = (sender as Hyperlink) == lnkSelectAllVideoFormats; source.SelectAll(selectAll); SetListDataSource(lstVideoFormats, source); }