Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = ((Graphs.MainWindow)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden
                return;

            case 10:

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

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden
                return;

            case 12:

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

            #line default
            #line hidden
                return;

            case 13:
                this.CanvasGrid = ((System.Windows.Controls.Canvas)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.CanvasGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AddNode);

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