Пример #1
0
        private void AlgoritmButton_Click(object sender, RoutedEventArgs e)
        {
            if (Globals.AnimationsNow.Count != 0)
            {
                return;
            }
            AlgoritmsWindow algoritms = new AlgoritmsWindow();

            WaitPanel.Visibility       = Visibility.Visible;
            Algorimts_Window.IsEnabled = false;
            algoritms.ShowDialog();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myWindow = ((Graph_Editor.AlgoritmsWindow)(target));

            #line 8 "..\..\AlgoritmsWindow.xaml"
                this.myWindow.Closing += new System.ComponentModel.CancelEventHandler(this.DataWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.MainWindow = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 37 "..\..\AlgoritmsWindow.xaml"
                this.BFSButton.Click += new System.Windows.RoutedEventHandler(this.Button_Alg_Click);

            #line default
            #line hidden

            #line 38 "..\..\AlgoritmsWindow.xaml"
                this.BFSButton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave);

            #line default
            #line hidden

            #line 38 "..\..\AlgoritmsWindow.xaml"
                this.BFSButton.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove);

            #line default
            #line hidden
                return;

            case 4:
                this.DFSButton = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\AlgoritmsWindow.xaml"
                this.DFSButton.Click += new System.Windows.RoutedEventHandler(this.Button_Alg_Click);

            #line default
            #line hidden

            #line 43 "..\..\AlgoritmsWindow.xaml"
                this.DFSButton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave);

            #line default
            #line hidden

            #line 43 "..\..\AlgoritmsWindow.xaml"
                this.DFSButton.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove);

            #line default
            #line hidden
                return;

            case 5:
                this.DijkstraButton = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\AlgoritmsWindow.xaml"
                this.DijkstraButton.Click += new System.Windows.RoutedEventHandler(this.Button_Alg_Click);

            #line default
            #line hidden

            #line 48 "..\..\AlgoritmsWindow.xaml"
                this.DijkstraButton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave);

            #line default
            #line hidden

            #line 48 "..\..\AlgoritmsWindow.xaml"
                this.DijkstraButton.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove);

            #line default
            #line hidden
                return;

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

            #line 52 "..\..\AlgoritmsWindow.xaml"
                this.EulerButton.Click += new System.Windows.RoutedEventHandler(this.Button_Alg_Click);

            #line default
            #line hidden

            #line 53 "..\..\AlgoritmsWindow.xaml"
                this.EulerButton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave);

            #line default
            #line hidden

            #line 53 "..\..\AlgoritmsWindow.xaml"
                this.EulerButton.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove);

            #line default
            #line hidden
                return;

            case 7:
                this.HamiltonianButton = ((System.Windows.Controls.Button)(target));
                return;

            case 8:
                this.ColorButton = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.KruskalButton = ((System.Windows.Controls.Button)(target));

            #line 67 "..\..\AlgoritmsWindow.xaml"
                this.KruskalButton.Click += new System.Windows.RoutedEventHandler(this.Button_Alg_Click);

            #line default
            #line hidden

            #line 68 "..\..\AlgoritmsWindow.xaml"
                this.KruskalButton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave);

            #line default
            #line hidden

            #line 68 "..\..\AlgoritmsWindow.xaml"
                this.KruskalButton.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove);

            #line default
            #line hidden
                return;

            case 10:
                this.MaximumButton = ((System.Windows.Controls.Button)(target));

            #line 72 "..\..\AlgoritmsWindow.xaml"
                this.MaximumButton.Click += new System.Windows.RoutedEventHandler(this.Button_Alg_Click);

            #line default
            #line hidden

            #line 73 "..\..\AlgoritmsWindow.xaml"
                this.MaximumButton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave);

            #line default
            #line hidden

            #line 73 "..\..\AlgoritmsWindow.xaml"
                this.MaximumButton.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove);

            #line default
            #line hidden
                return;

            case 11:
                this.FloydButton = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\AlgoritmsWindow.xaml"
                this.FloydButton.Click += new System.Windows.RoutedEventHandler(this.Button_Alg_Click);

            #line default
            #line hidden

            #line 78 "..\..\AlgoritmsWindow.xaml"
                this.FloydButton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave);

            #line default
            #line hidden

            #line 78 "..\..\AlgoritmsWindow.xaml"
                this.FloydButton.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove);

            #line default
            #line hidden
                return;

            case 12:
                this.CancelButton = ((System.Windows.Controls.Button)(target));

            #line 84 "..\..\AlgoritmsWindow.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.main_Cancel_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.LockPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.BFS_DFS = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.BFS_DFS_label = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.FS_Ready = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\AlgoritmsWindow.xaml"
                this.FS_Ready.Click += new System.Windows.RoutedEventHandler(this.Button_ReadyExitAlgoritm_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.FS_Cancel = ((System.Windows.Controls.Button)(target));

            #line 110 "..\..\AlgoritmsWindow.xaml"
                this.FS_Cancel.Click += new System.Windows.RoutedEventHandler(this.Button_ExitAlgoritm_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.FSstartVertex = ((System.Windows.Controls.TextBox)(target));

            #line 120 "..\..\AlgoritmsWindow.xaml"
                this.FSstartVertex.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.FSstartVertex_TextChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.Dijkstra = ((System.Windows.Controls.Grid)(target));
                return;

            case 20:
                this.Dijkstra_Label = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.Dijkstra_Ready = ((System.Windows.Controls.Button)(target));

            #line 135 "..\..\AlgoritmsWindow.xaml"
                this.Dijkstra_Ready.Click += new System.Windows.RoutedEventHandler(this.DijkstraReadyExitAlgoritm_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.Dijkstra_Cancel = ((System.Windows.Controls.Button)(target));

            #line 141 "..\..\AlgoritmsWindow.xaml"
                this.Dijkstra_Cancel.Click += new System.Windows.RoutedEventHandler(this.Button_ExitAlgoritm_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.DijkstrastartVertex = ((System.Windows.Controls.TextBox)(target));

            #line 151 "..\..\AlgoritmsWindow.xaml"
                this.DijkstrastartVertex.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.DijkstrastartVertex_TextChanged);

            #line default
            #line hidden
                return;

            case 24:
                this.DijkstrafinalVertex = ((System.Windows.Controls.TextBox)(target));

            #line 161 "..\..\AlgoritmsWindow.xaml"
                this.DijkstrafinalVertex.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.DijkstrafinalVertex_TextChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.logo = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }