예제 #1
0
        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);
        }
예제 #2
0
        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);
        }