Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MW = ((Test.MainWindow)(target));
                return;

            case 2:
                this.Buttons = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:

            #line 43 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSellClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 52 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnBuyClick);

            #line default
            #line hidden
                return;

            case 5:

            #line 62 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnFilterClicked);

            #line default
            #line hidden
                return;

            case 6:

            #line 70 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit);

            #line default
            #line hidden
                return;

            case 7:
                this.WorkStack = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.bkgImg = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.Buy = ((Test.Buy)(target));
                return;

            case 10:
                this.Sell = ((Test.Sell)(target));
                return;

            case 11:
                this.Filter = ((Test.Filter)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MW = ((Test.MainWindow)(target));
     return;
     case 2:
     this.Buttons = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 3:
     
     #line 43 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSellClick);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 52 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnBuyClick);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 62 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnFilterClicked);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 70 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit);
     
     #line default
     #line hidden
     return;
     case 7:
     this.WorkStack = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 8:
     this.bkgImg = ((System.Windows.Controls.Image)(target));
     return;
     case 9:
     this.Buy = ((Test.Buy)(target));
     return;
     case 10:
     this.Sell = ((Test.Sell)(target));
     return;
     case 11:
     this.Filter = ((Test.Filter)(target));
     return;
     }
     this._contentLoaded = true;
 }