예제 #1
0
        private void Apply(ListView listView)
        {
            var renderer = listView.Controls.OfType <ListViewDecorator>().FirstOrDefault();

            if (renderer == null)
            {
                renderer = new ListViewDecorator(listView, _theme);
            }

            renderer.EnableTheme(_enabled, _theme);
        }
예제 #2
0
        private void Apply(ListView listView)
        {
            if (ObjectListViewDecorator.CanDecorate(listView))
            {
                ObjectListViewDecorator.Apply(listView, _theme);
                return;
            }

            var decorator = listView.Controls.OfType <ListViewDecorator>().FirstOrDefault();

            if (decorator == null)
            {
                decorator = new ListViewDecorator(listView, _theme);
            }

            decorator.EnableTheme(_enabled, _theme);
        }
예제 #3
0
 protected override ListViewDecorator GetListView()
 {
     return(ListViewDecorator.Create(OrgEventsTableView));
 }
예제 #4
0
 protected override ListViewDecorator GetListView()
 {
     return(ListViewDecorator.Create(VenueShowsTableView));
 }
예제 #5
0
 protected override ListViewDecorator GetListView()
 {
     return(ListViewDecorator.Create(OrgCollectionView));
 }