Beispiel #1
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            //artistViewSource = ;

            //paintingViewSource = ;
            //context.Paintings.Load(); - already done in App.xaml.cs

            artistFilterHandler   = new MultipleFilterHandler(App.Current.FindResource("artistViewSource") as CollectionViewSource, MultipleFilterLogic.And);
            paintingFilterHandler = new MultipleFilterHandler(this.FindResource("artistPaintingsViewSource") as CollectionViewSource, MultipleFilterLogic.And);

            artistFilterWindow   = new ArtistFilterWindow(artistFilterHandler);
            paintingFilterWindow = new PaintingFilterWindow(paintingFilterHandler);
        }
Beispiel #2
0
 public ExhibitFilterWindow(MultipleFilterHandler filters)
 {
     Filters   = filters;
     Delegates = new Dictionary <string, FilterEventHandler>();
     InitializeComponent();
 }
Beispiel #3
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     exhibitFilterHandler = new MultipleFilterHandler(App.Current.FindResource("exhibitViewSource") as CollectionViewSource, MultipleFilterLogic.And);
     filterWindow         = new ExhibitFilterWindow(exhibitFilterHandler);
 }