Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.W_MyAds1 = ((Wpf_DeClutter_1.W_MyAds)(target));

            #line 8 "..\..\W_MyAds.xaml"
                this.W_MyAds1.Loaded += new System.Windows.RoutedEventHandler(this.W_MyAds1_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.Grd_items = ((System.Windows.Controls.ListBox)(target));

            #line 14 "..\..\W_MyAds.xaml"
                this.Grd_items.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.gotoAd);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void myAds(object sender, RoutedEventArgs e)
        {
            W_MyAds myAd = new W_MyAds(items)
            {
                DataContext = this
            };

            myAd.Show();
        }