Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Create a Voronoi diagram 2 of 3

, 17 Jul 2012
Creation of a Voronoi diagram, description of the binary search tree
WPF_VORONOI_TEST-Part2-noexe.zip
WPF_VORONOI_TEST-Part2
WPF_VORONOI_TEST.suo
WPF_VORONOI_TEST
bin
Debug
WPF_VORONOI_TEST.vshost.exe.manifest
My Project
MyExtensions
Settings.settings
obj
x86
Debug
MainWindow.baml
WPF_VORONOI_TEST.g.resources
WPF_VORONOI_TEST.Resources.resources
WPF_VORONOI_TEST_Part2.vbproj.user
WPF_VORONOI_TEST-Part2.zip
WPF_VORONOI_TEST.suo
WPF_VORONOI_TEST.exe
WPF_VORONOI_TEST.pdb
WPF_VORONOI_TEST.vshost.exe
WPF_VORONOI_TEST.vshost.exe.manifest
Release
Settings.settings
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
MainWindow.baml
TempPE
My Project.Resources.Designer.vb.dll
WPF_VORONOI_TEST.exe
WPF_VORONOI_TEST.g.resources
WPF_VORONOI_TEST.pdb
WPF_VORONOI_TEST.Resources.resources
WPF_VORONOI_TEST.vbproj.GenerateResource.Cache
WPF_VORONOI_TEST_MarkupCompile.cache
WPF_VORONOI_TEST_MarkupCompile.i.cache
Release
WPF_VORONOI_TEST_Part2.vbproj.user
#ExternalChecksum("..\..\..\MainWindow.xaml","{406ea660-64cf-4c82-b6f0-42d48172a799}","C085916A113445BCE57BDB6CA89B60E9")
'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.17379
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.Diagnostics
Imports System.Windows
Imports System.Windows.Automation
Imports System.Windows.Controls
Imports System.Windows.Controls.Primitives
Imports System.Windows.Data
Imports System.Windows.Documents
Imports System.Windows.Ink
Imports System.Windows.Input
Imports System.Windows.Markup
Imports System.Windows.Media
Imports System.Windows.Media.Animation
Imports System.Windows.Media.Effects
Imports System.Windows.Media.Imaging
Imports System.Windows.Media.Media3D
Imports System.Windows.Media.TextFormatting
Imports System.Windows.Navigation
Imports System.Windows.Shapes
Imports System.Windows.Shell


'''<summary>
'''MainWindow
'''</summary>
<Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>  _
Partial Public Class MainWindow
    Inherits System.Windows.Window
    Implements System.Windows.Markup.IComponentConnector
    
    
    #ExternalSource("..\..\..\MainWindow.xaml",7)
    <System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")>  _
    Friend WithEvents btn_Voronoi As System.Windows.Controls.Button
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\..\MainWindow.xaml",8)
    <System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")>  _
    Friend WithEvents btn_Retangle As System.Windows.Controls.Button
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\..\MainWindow.xaml",9)
    <System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")>  _
    Friend WithEvents btnClear As System.Windows.Controls.Button
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\..\MainWindow.xaml",12)
    <System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")>  _
    Friend WithEvents Canvas1 As System.Windows.Controls.Canvas
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\..\MainWindow.xaml",16)
    <System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")>  _
    Friend WithEvents stLines As System.Windows.Controls.Primitives.StatusBarItem
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\..\MainWindow.xaml",17)
    <System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")>  _
    Friend WithEvents stPosition As System.Windows.Controls.Primitives.StatusBarItem
    
    #End ExternalSource
    
    Private _contentLoaded As Boolean
    
    '''<summary>
    '''InitializeComponent
    '''</summary>
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")>  _
    Public Sub InitializeComponent() Implements System.Windows.Markup.IComponentConnector.InitializeComponent
        If _contentLoaded Then
            Return
        End If
        _contentLoaded = true
        Dim resourceLocater As System.Uri = New System.Uri("/WPF_VORONOI_TEST;component/mainwindow.xaml", System.UriKind.Relative)
        
        #ExternalSource("..\..\..\MainWindow.xaml",1)
        System.Windows.Application.LoadComponent(Me, resourceLocater)
        
        #End ExternalSource
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0"),  _
     System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never),  _
     System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes"),  _
     System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity"),  _
     System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")>  _
    Sub System_Windows_Markup_IComponentConnector_Connect(ByVal connectionId As Integer, ByVal target As Object) Implements System.Windows.Markup.IComponentConnector.Connect
        If (connectionId = 1) Then
            Me.btn_Voronoi = CType(target,System.Windows.Controls.Button)
            Return
        End If
        If (connectionId = 2) Then
            Me.btn_Retangle = CType(target,System.Windows.Controls.Button)
            Return
        End If
        If (connectionId = 3) Then
            Me.btnClear = CType(target,System.Windows.Controls.Button)
            Return
        End If
        If (connectionId = 4) Then
            Me.Canvas1 = CType(target,System.Windows.Controls.Canvas)
            
            #ExternalSource("..\..\..\MainWindow.xaml",12)
            AddHandler Me.Canvas1.MouseDown, New System.Windows.Input.MouseButtonEventHandler(AddressOf Me.Canvas1_MouseDown)
            
            #End ExternalSource
            
            #ExternalSource("..\..\..\MainWindow.xaml",12)
            AddHandler Me.Canvas1.MouseMove, New System.Windows.Input.MouseEventHandler(AddressOf Me.Canvas1_MouseMove)
            
            #End ExternalSource
            Return
        End If
        If (connectionId = 5) Then
            Me.stLines = CType(target,System.Windows.Controls.Primitives.StatusBarItem)
            Return
        End If
        If (connectionId = 6) Then
            Me.stPosition = CType(target,System.Windows.Controls.Primitives.StatusBarItem)
            Return
        End If
        Me._contentLoaded = true
    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Kenneth Haugland
Engineer
Norway Norway
I hope that you like the stuff I have created and if you do wish to say thank you then a donation is always appreciated.
You can donate here[^].

| Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 17 Jul 2012
Article Copyright 2012 by Kenneth Haugland
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid