コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Canvas)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.map15 = ((System.Windows.Shapes.Path)(target));
                return;

            case 3:
                this.map16 = ((System.Windows.Shapes.Path)(target));
                return;

            case 4:
                this.map17 = ((System.Windows.Shapes.Path)(target));
                return;

            case 5:
                this.map18 = ((System.Windows.Shapes.Path)(target));
                return;

            case 6:
                this.map8 = ((System.Windows.Shapes.Path)(target));
                return;

            case 7:
                this.map14 = ((System.Windows.Shapes.Path)(target));
                return;

            case 8:
                this.map9 = ((System.Windows.Shapes.Path)(target));
                return;

            case 9:
                this.map4 = ((System.Windows.Shapes.Path)(target));
                return;

            case 10:
                this.map10 = ((System.Windows.Shapes.Path)(target));
                return;

            case 11:
                this.map6 = ((System.Windows.Shapes.Path)(target));
                return;

            case 12:
                this.map0 = ((System.Windows.Shapes.Path)(target));
                return;

            case 13:
                this.map1 = ((System.Windows.Shapes.Path)(target));
                return;

            case 14:
                this.map3 = ((System.Windows.Shapes.Path)(target));
                return;

            case 15:
                this.map13 = ((System.Windows.Shapes.Path)(target));
                return;

            case 16:
                this.country15 = ((AI_PROJECT.country)(target));
                return;

            case 17:
                this.country16 = ((AI_PROJECT.country)(target));
                return;

            case 18:
                this.country17 = ((AI_PROJECT.country)(target));
                return;

            case 19:
                this.country18 = ((AI_PROJECT.country)(target));
                return;

            case 20:
                this.country13 = ((AI_PROJECT.country)(target));
                return;

            case 21:
                this.country14 = ((AI_PROJECT.country)(target));
                return;

            case 22:
                this.country7 = ((AI_PROJECT.country)(target));
                return;

            case 23:
                this.country9 = ((AI_PROJECT.country)(target));
                return;

            case 24:
                this.country10 = ((AI_PROJECT.country)(target));
                return;

            case 25:
                this.country4 = ((AI_PROJECT.country)(target));
                return;

            case 26:
                this.country6 = ((AI_PROJECT.country)(target));
                return;

            case 27:
                this.country0 = ((AI_PROJECT.country)(target));
                return;

            case 28:
                this.country1 = ((AI_PROJECT.country)(target));
                return;

            case 29:
                this.country3 = ((AI_PROJECT.country)(target));
                return;

            case 30:
                this.country21 = ((AI_PROJECT.country)(target));
                return;

            case 31:
                this.map2 = ((System.Windows.Shapes.Path)(target));
                return;

            case 32:
                this.map7 = ((System.Windows.Shapes.Path)(target));
                return;

            case 33:
                this.map11 = ((System.Windows.Shapes.Path)(target));
                return;

            case 34:
                this.map12 = ((System.Windows.Shapes.Path)(target));
                return;

            case 35:
                this.map5 = ((System.Windows.Shapes.Path)(target));
                return;

            case 36:
                this.country12 = ((AI_PROJECT.country)(target));
                return;

            case 37:
                this.country8 = ((AI_PROJECT.country)(target));
                return;

            case 38:
                this.country5 = ((AI_PROJECT.country)(target));
                return;

            case 39:
                this.country2 = ((AI_PROJECT.country)(target));
                return;

            case 40:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));

            #line 202 "..\..\MainWindow.xaml"
                this.textBlock.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.textBlock_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 41:

            #line 264 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Ellipse)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Ellipse_MouseLeftButtonDown_1);

            #line default
            #line hidden
                return;

            case 42:
                this.country11 = ((AI_PROJECT.country)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
 public country(int index, country next)
 {
     this.index = index;
     this.next  = next;
 }