Example #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);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UI = ((CourseDB.PaintingFilterWindow)(target));

            #line 8 "..\..\PaintingFilterWindow.xaml"
                this.UI.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 8 "..\..\PaintingFilterWindow.xaml"
                this.UI.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.ChosenMovement = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.ListOfFilters = ((System.Windows.Controls.ListBox)(target));
                return;

            case 4:

            #line 16 "..\..\PaintingFilterWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 24 "..\..\PaintingFilterWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Delete_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.FromYear = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.ToYear = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.FilterName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.MovementChoiceCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 10:
                this.YearChoiceCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 11:

            #line 44 "..\..\PaintingFilterWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 12:

            #line 45 "..\..\PaintingFilterWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked_1);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }