private void Connect_Click(object sender, RoutedEventArgs e)
        {
            if (Globals.AnimationsNow.Count != 0)
            {
                return;
            }
            ConnectVertices connectVertices = new ConnectVertices();

            WaitPanel.Visibility = Visibility.Visible;
            connectVertices.ShowDialog();
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myWindow = ((Graph_Editor.ConnectVertices)(target));

            #line 7 "..\..\ConnectVertices.xaml"
                this.myWindow.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

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

            case 3:
                this.FirstVertex = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.SecondVertex = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.WeightSlider = ((System.Windows.Controls.Slider)(target));

            #line 42 "..\..\ConnectVertices.xaml"
                this.WeightSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.TextBox_Weight = ((System.Windows.Controls.TextBox)(target));

            #line 51 "..\..\ConnectVertices.xaml"
                this.TextBox_Weight.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_Weight_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 58 "..\..\ConnectVertices.xaml"
                this.Create.Click += new System.Windows.RoutedEventHandler(this.Create_Click);

            #line default
            #line hidden
                return;

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

            #line 63 "..\..\ConnectVertices.xaml"
                this.Close.Click += new System.Windows.RoutedEventHandler(this.Cancel_Click);

            #line default
            #line hidden
                return;

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

            #line 69 "..\..\ConnectVertices.xaml"
                this.Directed.Click += new System.Windows.RoutedEventHandler(this.Directed_Button_Choose);

            #line default
            #line hidden

            #line 69 "..\..\ConnectVertices.xaml"
                this.Directed.MouseMove += new System.Windows.Input.MouseEventHandler(this.DirecteMouseMove);

            #line default
            #line hidden

            #line 69 "..\..\ConnectVertices.xaml"
                this.Directed.MouseLeave += new System.Windows.Input.MouseEventHandler(this.DirecteMouseLeave);

            #line default
            #line hidden
                return;

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

            #line 75 "..\..\ConnectVertices.xaml"
                this.Undirected.Click += new System.Windows.RoutedEventHandler(this.Undirected_Button_Choose);

            #line default
            #line hidden

            #line 75 "..\..\ConnectVertices.xaml"
                this.Undirected.MouseMove += new System.Windows.Input.MouseEventHandler(this.DirecteMouseMove);

            #line default
            #line hidden

            #line 75 "..\..\ConnectVertices.xaml"
                this.Undirected.MouseLeave += new System.Windows.Input.MouseEventHandler(this.DirecteMouseLeave);

            #line default
            #line hidden
                return;

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