示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((distributed_pathfinding.MainWindow)(target));
                return;

            case 2:
                this.numAgents = ((System.Windows.Controls.TextBox)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.numAgents.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.numAgents_TextChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.startButton = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.startButton.Click += new System.Windows.RoutedEventHandler(this.startButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.mapCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 5:
                this.ipTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.networkButton = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.networkButton.Click += new System.Windows.RoutedEventHandler(this.networkButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.modeCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.modeCheckBox.Checked += new System.Windows.RoutedEventHandler(this.modeCheckBox_Checked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.mainWindow = ((distributed_pathfinding.MainWindow)(target));
         return;
     }
     this._contentLoaded = true;
 }