Inheritance: System.Windows.Controls.ContentControl
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AccelerationSlider = ((System.Windows.Controls.Slider)(target));

            #line 210 "..\..\..\..\..\..\Samples\Zoombox\Views\ZoomboxView.xaml"
                this.AccelerationSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.CoerceAnimationRatios);

            #line default
            #line hidden
                return;

            case 2:
                this.DecelerationSlider = ((System.Windows.Controls.Slider)(target));

            #line 222 "..\..\..\..\..\..\Samples\Zoombox\Views\ZoomboxView.xaml"
                this.DecelerationSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.CoerceAnimationRatios);

            #line default
            #line hidden
                return;

            case 3:

            #line 235 "..\..\..\..\..\..\Samples\Zoombox\Views\ZoomboxView.xaml"
                ((System.Windows.Controls.Slider)(target)).ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.AdjustAnimationDuration);

            #line default
            #line hidden
                return;

            case 4:
                this.zoombox = ((Xceed.Wpf.Toolkit.Zoombox.Zoombox)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
 public ViewFinderSelectionConverter( Zoombox zoombox )
 {
   _zoombox = zoombox;
 }
        protected override void SetThisContent()
        {
            Grid grid_main = new Grid();
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });

            Grid grid_sub = new Grid();
            grid_sub.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });
            grid_sub.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(100.0, GridUnitType.Star) });
            grid_main.SetRowColumn(grid_sub, 3, 0);

            Grid grid_left = new Grid();
            grid_left.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_left.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_left.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_left.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_left.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_left.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_left.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_left.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_sub.SetRowColumn(grid_left, 0, 0);

            ////////
            // Id
            m_textBlock_id = new TextBlock() { VerticalAlignment = VerticalAlignment.Center };
            Label label_id = new Label() { Content = "Id: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_id = new Grid();
            grid_id.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });
            grid_id.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });
            grid_id.SetRowColumn(m_textBlock_id, 0, 1);
            grid_id.SetRowColumn(label_id, 0, 0);
            grid_main.SetRowColumn(grid_id, 0, 0);

            ////////
            // Name
            m_textBox_name = new TextBox() { VerticalAlignment = VerticalAlignment.Center };
            ValidatorPanel validator_name = new ValidatorPanel(m_textBox_name, TextBox.TextProperty, new Validate_StringIsNotNullOrEmpty());
            Label label_name = new Label() { Content = "Name: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_name = new Grid();
            grid_name.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_name.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_name.SetRowColumn(validator_name, 1, 0);
            grid_name.SetRowColumn(label_name, 0, 0);
            grid_main.SetRowColumn(grid_name, 1, 0);

            ////////
            // Texture
            Button button_texture = new Button() { Content = " ... " };
            button_texture.Click += (x, y) => { SelectTextureFile(); };
            m_textBox_texture = new TextBox() { VerticalAlignment = VerticalAlignment.Center };
            ValidatorPanel validator_texture = new ValidatorPanel(m_textBox_texture, TextBox.TextProperty, new Validate_StringIsNotNullOrEmpty());
            Label label_texture = new Label() { Content = "Texture File: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_texture = new Grid();
            grid_texture.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texture.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texture.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(100.0, GridUnitType.Star) });
            grid_texture.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });
            grid_texture.SetRowColumn(button_texture, 1, 1);
            grid_texture.SetRowColumn(validator_texture, 1, 0);
            Grid.SetColumnSpan(label_texture, 2);
            grid_texture.SetRowColumn(label_texture, 0, 0);
            grid_main.SetRowColumn(grid_texture, 2, 0);

            ////////
            // Duration
            m_doubleUpDown_duration = new DoubleUpDown() { VerticalAlignment = VerticalAlignment.Center };
            Label label_duration = new Label() { Content = "Duration: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_duration = new Grid();
            grid_duration.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_duration.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_duration.SetRowColumn(m_doubleUpDown_duration, 1, 0);
            grid_duration.SetRowColumn(label_duration, 0, 0);
            grid_left.SetRowColumn(grid_duration, 0, 0);

            ////////
            // Width
            m_doubleUpDown_width = new DoubleUpDown() { VerticalAlignment = VerticalAlignment.Center };
            ValidatorPanel validator_width = new ValidatorPanel(m_doubleUpDown_width, IntegerUpDown.ValueProperty, new Validate_NotNull());
            Label label_width = new Label() { Content = "Width: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_width = new Grid();
            grid_width.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_width.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_width.SetRowColumn(validator_width, 1, 0);
            grid_width.SetRowColumn(label_width, 0, 0);
            grid_left.SetRowColumn(grid_width, 1, 0);

            ////////
            // Height
            m_doubleUpDown_height = new DoubleUpDown() { VerticalAlignment = VerticalAlignment.Center };
            ValidatorPanel validator_height = new ValidatorPanel(m_doubleUpDown_height, IntegerUpDown.ValueProperty, new Validate_NotNull());
            Label label_height = new Label() { Content = "Height: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_height = new Grid();
            grid_height.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_height.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_height.SetRowColumn(validator_height, 1, 0);
            grid_height.SetRowColumn(label_height, 0, 0);
            grid_left.SetRowColumn(grid_height, 2, 0);

            ////////
            // Get/Set Width/Height
            Button button_getLengths = new Button() { Content = "Get Lengths" };
            button_getLengths.Click += (x, y) =>
                {
                    if (m_canvasWithRectangle != null && m_canvasWithRectangle.SizableRectangle != null)
                    {
                        m_doubleUpDown_width.Value = m_canvasWithRectangle.SizableRectangle.Width;
                        m_doubleUpDown_height.Value = m_canvasWithRectangle.SizableRectangle.Height;
                    }
                };
            Button button_setLengths = new Button() { Content = "Set Lengths" };
            button_setLengths.Click += (x, y) =>
            {
                if (m_canvasWithRectangle != null && m_canvasWithRectangle.SizableRectangle != null && m_doubleUpDown_width.Value.HasValue && m_doubleUpDown_height.Value.HasValue)
                {
                    m_canvasWithRectangle.SizableRectangle.Width = m_doubleUpDown_width.Value.Value;
                    m_canvasWithRectangle.SizableRectangle.Height = m_doubleUpDown_height.Value.Value;
                }
            };
            Grid grid_getSetLengths = new Grid() { Margin = new Thickness(1.0, 2.5, 1.0, 0.0) };
            grid_getSetLengths.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(50.0, GridUnitType.Star) });
            grid_getSetLengths.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(50.0, GridUnitType.Star) });
            grid_getSetLengths.SetRowColumn(button_getLengths, 0, 0);
            grid_getSetLengths.SetRowColumn(button_setLengths, 0, 1);
            grid_left.SetRowColumn(grid_getSetLengths, 3, 0);

            ////////
            // TexCoordTop
            m_doubleUpDown_texCoordTop = new DoubleUpDown() { Increment = .005, VerticalAlignment = VerticalAlignment.Center };
            ValidatorPanel validator_texCoordTop = new ValidatorPanel(m_doubleUpDown_texCoordTop, IntegerUpDown.ValueProperty, new Validate_NotNull());
            Label label_texCoordTop = new Label() { Content = "TexCoordTop: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_texCoordTop = new Grid();
            grid_texCoordTop.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texCoordTop.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texCoordTop.SetRowColumn(validator_texCoordTop, 1, 0);
            grid_texCoordTop.SetRowColumn(label_texCoordTop, 0, 0);
            grid_left.SetRowColumn(grid_texCoordTop, 4, 0);

            ////////
            // TexCoordRight
            m_doubleUpDown_texCoordRight = new DoubleUpDown() { Increment = .005, VerticalAlignment = VerticalAlignment.Center };
            ValidatorPanel validator_texCoordRight = new ValidatorPanel(m_doubleUpDown_texCoordRight, IntegerUpDown.ValueProperty, new Validate_NotNull());
            Label label_texCoordRight = new Label() { Content = "TexCoordRight: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_texCoordRight = new Grid();
            grid_texCoordRight.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texCoordRight.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texCoordRight.SetRowColumn(validator_texCoordRight, 1, 0);
            grid_texCoordRight.SetRowColumn(label_texCoordRight, 0, 0);
            grid_left.SetRowColumn(grid_texCoordRight, 5, 0);

            ////////
            // TexCoordBottom
            m_doubleUpDown_texCoordBottom = new DoubleUpDown() { Increment = .005, VerticalAlignment = VerticalAlignment.Center };
            ValidatorPanel validator_texCoordBottom = new ValidatorPanel(m_doubleUpDown_texCoordBottom, IntegerUpDown.ValueProperty, new Validate_NotNull());
            Label label_texCoordBottom = new Label() { Content = "TexCoordBottom: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_texCoordBottom = new Grid();
            grid_texCoordBottom.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texCoordBottom.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texCoordBottom.SetRowColumn(validator_texCoordBottom, 1, 0);
            grid_texCoordBottom.SetRowColumn(label_texCoordBottom, 0, 0);
            grid_left.SetRowColumn(grid_texCoordBottom, 6, 0);

            ////////
            // TexCoordLeft
            m_doubleUpDown_texCoordLeft = new DoubleUpDown() { Increment = .005, VerticalAlignment = VerticalAlignment.Center };
            ValidatorPanel validator_texCoordLeft = new ValidatorPanel(m_doubleUpDown_texCoordLeft, IntegerUpDown.ValueProperty, new Validate_NotNull());
            Label label_texCoordLeft = new Label() { Content = "TexCoordLeft: ", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            Grid grid_texCoordLeft = new Grid();
            grid_texCoordLeft.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texCoordLeft.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_texCoordLeft.SetRowColumn(validator_texCoordLeft, 1, 0);
            grid_texCoordLeft.SetRowColumn(label_texCoordLeft, 0, 0);
            grid_left.SetRowColumn(grid_texCoordLeft, 7, 0);

            ////////
            // Canvas
            m_image = new Image() { Stretch = System.Windows.Media.Stretch.None };
            Binding binding_image_imageSource =
                new Binding("Text")
                {
                    Source = m_textBox_texture,
                    Mode = BindingMode.OneWay,
                    UpdateSourceTrigger = System.Windows.Data.UpdateSourceTrigger.PropertyChanged,
                    Converter = new BitmapSourceConverter()
                };
            m_image.SetBinding(Image.SourceProperty, binding_image_imageSource);
            m_canvasWithRectangle = new UserControl_CanvasWithRectangle(new[] { m_image }) { Width = 500, Height = 500 };
            m_zoomBox =
                new Zoombox()
                {
                    Content = m_canvasWithRectangle,
                    Background = Brushes.Black,
                    Width = m_canvasWithRectangle.Width,
                    Height = m_canvasWithRectangle.Height,
                    Margin = new Thickness(5.0),
                    HorizontalAlignment = System.Windows.HorizontalAlignment.Center,
                    VerticalAlignment = System.Windows.VerticalAlignment.Center,
                    MinScale = 1.0,
                    MaxScale = 100
                };
            grid_sub.SetRowColumn(m_zoomBox, 0, 1);

            ////////
            // FIN
            ThisContent = new ActivatableContent() { Content = grid_main, FirstFocus = m_textBox_name, Validators = new ValidatorBase[] {
                validator_name,
                validator_texture,
                validator_width,
                validator_height,
                validator_texCoordTop,
                validator_texCoordRight,
                validator_texCoordBottom,
                validator_texCoordLeft
            }};
        }
示例#4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 17 "..\..\MainWindow.xaml"
                ((GraphEditor.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.GraphCanvas_Key);

            #line default
            #line hidden

            #line 18 "..\..\MainWindow.xaml"
                ((GraphEditor.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.GraphCanvas_Key);

            #line default
            #line hidden
                return;

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

            case 3:
                this.LeftPanelGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 54 "..\..\MainWindow.xaml"
                this.PointTool.Click += new System.Windows.RoutedEventHandler(this.Tool_Click);

            #line default
            #line hidden
                return;

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

            #line 66 "..\..\MainWindow.xaml"
                this.VertexTool.Click += new System.Windows.RoutedEventHandler(this.Tool_Click);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\MainWindow.xaml"
                this.EdgeTool.Click += new System.Windows.RoutedEventHandler(this.Tool_Click);

            #line default
            #line hidden
                return;

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

            #line 90 "..\..\MainWindow.xaml"
                this.HandTool.Click += new System.Windows.RoutedEventHandler(this.Tool_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.RightPanelVertex = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 9:
                this.VertexName = ((System.Windows.Controls.TextBox)(target));

            #line 108 "..\..\MainWindow.xaml"
                this.VertexName.KeyUp += new System.Windows.Input.KeyEventHandler(this.VertexName_KeyUp);

            #line default
            #line hidden
                return;

            case 10:
                this.VertexAdjecent = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.RightPanelEdge = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.EdgeWeight = ((System.Windows.Controls.TextBox)(target));

            #line 121 "..\..\MainWindow.xaml"
                this.EdgeWeight.KeyUp += new System.Windows.Input.KeyEventHandler(this.EdgeWeight_KeyUp);

            #line default
            #line hidden
                return;

            case 13:
                this.rbOrientNone = ((System.Windows.Controls.RadioButton)(target));

            #line 128 "..\..\MainWindow.xaml"
                this.rbOrientNone.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 14:
                this.rbOrintDirect = ((System.Windows.Controls.RadioButton)(target));

            #line 133 "..\..\MainWindow.xaml"
                this.rbOrintDirect.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 15:
                this.rbOrientInv = ((System.Windows.Controls.RadioButton)(target));

            #line 137 "..\..\MainWindow.xaml"
                this.rbOrientInv.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 16:
                this.EdgeFirstVertexName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.EdgeSecondVertexName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.RightPanelAlg = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 19:
                this.AlgTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.AlgRes = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.Menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 22:

            #line 164 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuOpen_Click);

            #line default
            #line hidden
                return;

            case 23:

            #line 169 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuNew_Click);

            #line default
            #line hidden
                return;

            case 24:

            #line 174 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuSave_Click);

            #line default
            #line hidden
                return;

            case 25:

            #line 179 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuSaveAs_Click);

            #line default
            #line hidden
                return;

            case 26:

            #line 188 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuDijkstra_Click);

            #line default
            #line hidden
                return;

            case 27:

            #line 189 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuKruskal_Click);

            #line default
            #line hidden
                return;

            case 28:

            #line 190 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuHamilton_Click);

            #line default
            #line hidden
                return;

            case 29:

            #line 192 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuClear_Click);

            #line default
            #line hidden
                return;

            case 30:

            #line 193 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuOrient_Click);

            #line default
            #line hidden
                return;

            case 31:

            #line 194 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuDisor_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.ZoomBox = ((Xceed.Wpf.Toolkit.Zoombox.Zoombox)(target));
                return;

            case 33:
                this.GraphCanvas = ((System.Windows.Controls.Canvas)(target));

            #line 207 "..\..\MainWindow.xaml"
                this.GraphCanvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.GraphCanvas_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 208 "..\..\MainWindow.xaml"
                this.GraphCanvas.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.GraphCanvas_MouseRightButtonDown);

            #line default
            #line hidden

            #line 209 "..\..\MainWindow.xaml"
                this.GraphCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.GraphCanvas_MouseMove);

            #line default
            #line hidden
                return;

            case 34:
                this.Scale = ((System.Windows.Media.ScaleTransform)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.WND = ((GraphMaker_test_.MainWindow)(target));

            #line 5 "..\..\MainWindow.xaml"
                this.WND.Closing += new System.ComponentModel.CancelEventHandler(this.WND_Closing);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                this.WND.Loaded += new System.Windows.RoutedEventHandler(this.WND_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.Zoom = ((Xceed.Wpf.Toolkit.Zoombox.Zoombox)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.Zoom.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Zoom_MouseWheel);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.Zoom.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Zoom_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.Zoom.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Zoom_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 3:
                this.WorkSpace = ((System.Windows.Controls.Canvas)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.WorkSpace.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.WorkSpace_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\MainWindow.xaml"
                this.GraphWork.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ProgramSpace_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\MainWindow.xaml"
                this.AddVertex.Click += new System.Windows.RoutedEventHandler(this.AddVertex_Click);

            #line default
            #line hidden
                return;

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

            #line 42 "..\..\MainWindow.xaml"
                this.AddEdge.Click += new System.Windows.RoutedEventHandler(this.AddEdge_Click);

            #line default
            #line hidden
                return;

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

            #line 64 "..\..\MainWindow.xaml"
                this.DeleteVertex.Click += new System.Windows.RoutedEventHandler(this.DeleteVertex_Click);

            #line default
            #line hidden
                return;

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

            #line 86 "..\..\MainWindow.xaml"
                this.DeleteEdge.Click += new System.Windows.RoutedEventHandler(this.DeleteEdge_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 111 "..\..\MainWindow.xaml"
                this.DFS.Click += new System.Windows.RoutedEventHandler(this.ASTAR_Click);

            #line default
            #line hidden

            #line 111 "..\..\MainWindow.xaml"
                this.DFS.MouseEnter += new System.Windows.Input.MouseEventHandler(this.ASTAR_MouseEnter);

            #line default
            #line hidden

            #line 111 "..\..\MainWindow.xaml"
                this.DFS.MouseLeave += new System.Windows.Input.MouseEventHandler(this.AddVertex_MouseLeave);

            #line default
            #line hidden
                return;

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

            #line 130 "..\..\MainWindow.xaml"
                this.Dijkstra.Click += new System.Windows.RoutedEventHandler(this.Dijkstra_Click);

            #line default
            #line hidden

            #line 130 "..\..\MainWindow.xaml"
                this.Dijkstra.MouseEnter += new System.Windows.Input.MouseEventHandler(this.ASTAR_MouseEnter);

            #line default
            #line hidden

            #line 130 "..\..\MainWindow.xaml"
                this.Dijkstra.MouseLeave += new System.Windows.Input.MouseEventHandler(this.AddVertex_MouseLeave);

            #line default
            #line hidden
                return;

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

            #line 149 "..\..\MainWindow.xaml"
                this.Prima.Click += new System.Windows.RoutedEventHandler(this.Prima_Click);

            #line default
            #line hidden

            #line 149 "..\..\MainWindow.xaml"
                this.Prima.MouseEnter += new System.Windows.Input.MouseEventHandler(this.ASTAR_MouseEnter);

            #line default
            #line hidden

            #line 149 "..\..\MainWindow.xaml"
                this.Prima.MouseLeave += new System.Windows.Input.MouseEventHandler(this.AddVertex_MouseLeave);

            #line default
            #line hidden
                return;

            case 13:
                this.Algorithms = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.ProgramSpace = ((System.Windows.Controls.Canvas)(target));

            #line 170 "..\..\MainWindow.xaml"
                this.ProgramSpace.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ProgramSpace_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 15:
                this.SaveButton = ((System.Windows.Controls.Button)(target));

            #line 174 "..\..\MainWindow.xaml"
                this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

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

            #line 196 "..\..\MainWindow.xaml"
                this.Undo.Click += new System.Windows.RoutedEventHandler(this.Undo_Click);

            #line default
            #line hidden
                return;

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

            #line 218 "..\..\MainWindow.xaml"
                this.Redo.Click += new System.Windows.RoutedEventHandler(this.Redo_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.MakeOriented = ((System.Windows.Controls.Button)(target));

            #line 240 "..\..\MainWindow.xaml"
                this.MakeOriented.Click += new System.Windows.RoutedEventHandler(this.MakeOriented_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.NewGraph = ((System.Windows.Controls.Button)(target));

            #line 241 "..\..\MainWindow.xaml"
                this.NewGraph.Click += new System.Windows.RoutedEventHandler(this.NewGraph_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.SaveAs = ((System.Windows.Controls.Button)(target));

            #line 263 "..\..\MainWindow.xaml"
                this.SaveAs.Click += new System.Windows.RoutedEventHandler(this.SaveAs_Click);

            #line default
            #line hidden
                return;

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

            #line 285 "..\..\MainWindow.xaml"
                this.OpenFile.Click += new System.Windows.RoutedEventHandler(this.OpenFile_Click);

            #line default
            #line hidden
                return;

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

            #line 307 "..\..\MainWindow.xaml"
                this.Help.Click += new System.Windows.RoutedEventHandler(this.Help_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.InfoCurr = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }