📄 form1.vb
字号:
Option Strict On
Imports System.IO
Imports System.Runtime.Serialization.Formatters.Soap
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents bttnListCities As System.Windows.Forms.Button
Friend WithEvents ListBox1 As System.Windows.Forms.ListBox
Friend WithEvents bttnListContinents As System.Windows.Forms.Button
Friend WithEvents bttnListCountries As System.Windows.Forms.Button
Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
Friend WithEvents txtContinent As System.Windows.Forms.TextBox
Friend WithEvents bttnAddNode As System.Windows.Forms.Button
Friend WithEvents txtCountry As System.Windows.Forms.TextBox
Friend WithEvents txtCity As System.Windows.Forms.TextBox
Friend WithEvents bttnExpandNode As System.Windows.Forms.Button
Friend WithEvents bttnDelNode As System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
Friend WithEvents FileMenu As System.Windows.Forms.MenuItem
Friend WithEvents FileLoad As System.Windows.Forms.MenuItem
Friend WithEvents FileSave As System.Windows.Forms.MenuItem
Friend WithEvents SaveFileDialog1 As System.Windows.Forms.SaveFileDialog
Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
Friend WithEvents GlobeTree As System.Windows.Forms.TreeView
Private components As System.ComponentModel.IContainer
'Required by the Windows Form Designer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.bttnListCities = New System.Windows.Forms.Button()
Me.txtContinent = New System.Windows.Forms.TextBox()
Me.FileSave = New System.Windows.Forms.MenuItem()
Me.bttnDelNode = New System.Windows.Forms.Button()
Me.bttnExpandNode = New System.Windows.Forms.Button()
Me.bttnAddNode = New System.Windows.Forms.Button()
Me.txtCity = New System.Windows.Forms.TextBox()
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
Me.ListBox1 = New System.Windows.Forms.ListBox()
Me.bttnListContinents = New System.Windows.Forms.Button()
Me.bttnListCountries = New System.Windows.Forms.Button()
Me.MainMenu1 = New System.Windows.Forms.MainMenu()
Me.FileMenu = New System.Windows.Forms.MenuItem()
Me.FileLoad = New System.Windows.Forms.MenuItem()
Me.GroupBox3 = New System.Windows.Forms.GroupBox()
Me.txtCountry = New System.Windows.Forms.TextBox()
Me.Button1 = New System.Windows.Forms.Button()
Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog()
Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
Me.GlobeTree = New System.Windows.Forms.TreeView()
Me.GroupBox1.SuspendLayout()
Me.GroupBox3.SuspendLayout()
Me.SuspendLayout()
'
'bttnListCities
'
Me.bttnListCities.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.bttnListCities.Location = New System.Drawing.Point(106, 382)
Me.bttnListCities.Name = "bttnListCities"
Me.bttnListCities.Size = New System.Drawing.Size(152, 32)
Me.bttnListCities.TabIndex = 6
Me.bttnListCities.Text = "ListCities"
'
'txtContinent
'
Me.txtContinent.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtContinent.Location = New System.Drawing.Point(8, 16)
Me.txtContinent.Name = "txtContinent"
Me.txtContinent.Size = New System.Drawing.Size(152, 22)
Me.txtContinent.TabIndex = 2
Me.txtContinent.Text = ""
'
'FileSave
'
Me.FileSave.Index = 1
Me.FileSave.Text = "Save Nodes"
'
'bttnDelNode
'
Me.bttnDelNode.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.bttnDelNode.Location = New System.Drawing.Point(8, 288)
Me.bttnDelNode.Name = "bttnDelNode"
Me.bttnDelNode.Size = New System.Drawing.Size(152, 32)
Me.bttnDelNode.TabIndex = 6
Me.bttnDelNode.Text = "Delete Current Node"
'
'bttnExpandNode
'
Me.bttnExpandNode.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.bttnExpandNode.Location = New System.Drawing.Point(168, 288)
Me.bttnExpandNode.Name = "bttnExpandNode"
Me.bttnExpandNode.Size = New System.Drawing.Size(152, 32)
Me.bttnExpandNode.TabIndex = 6
Me.bttnExpandNode.Text = "Expand Current Node"
'
'bttnAddNode
'
Me.bttnAddNode.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.bttnAddNode.Location = New System.Drawing.Point(152, 112)
Me.bttnAddNode.Name = "bttnAddNode"
Me.bttnAddNode.Size = New System.Drawing.Size(152, 32)
Me.bttnAddNode.TabIndex = 5
Me.bttnAddNode.Text = "Add This Node"
'
'txtCity
'
Me.txtCity.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtCity.Location = New System.Drawing.Point(152, 80)
Me.txtCity.Name = "txtCity"
Me.txtCity.Size = New System.Drawing.Size(152, 22)
Me.txtCity.TabIndex = 4
Me.txtCity.Text = ""
'
'GroupBox1
'
Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.bttnListCities, Me.ListBox1, Me.bttnListContinents, Me.bttnListCountries})
Me.GroupBox1.Location = New System.Drawing.Point(336, 8)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(362, 424)
Me.GroupBox1.TabIndex = 7
Me.GroupBox1.TabStop = False
'
'ListBox1
'
Me.ListBox1.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.ListBox1.ItemHeight = 14
Me.ListBox1.Location = New System.Drawing.Point(16, 24)
Me.ListBox1.Name = "ListBox1"
Me.ListBox1.Size = New System.Drawing.Size(334, 256)
Me.ListBox1.TabIndex = 1
'
'bttnListContinents
'
Me.bttnListContinents.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.bttnListContinents.Location = New System.Drawing.Point(106, 286)
Me.bttnListContinents.Name = "bttnListContinents"
Me.bttnListContinents.Size = New System.Drawing.Size(152, 32)
Me.bttnListContinents.TabIndex = 6
Me.bttnListContinents.Text = "ListContinents"
'
'bttnListCountries
'
Me.bttnListCountries.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.bttnListCountries.Location = New System.Drawing.Point(106, 334)
Me.bttnListCountries.Name = "bttnListCountries"
Me.bttnListCountries.Size = New System.Drawing.Size(152, 32)
Me.bttnListCountries.TabIndex = 6
Me.bttnListCountries.Text = "ListCountries"
'
'MainMenu1
'
Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.FileMenu})
'
'FileMenu
'
Me.FileMenu.Index = 0
Me.FileMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.FileLoad, Me.FileSave})
Me.FileMenu.Text = "File"
'
'FileLoad
'
Me.FileLoad.Index = 0
Me.FileLoad.Text = "Load Nodes"
'
'GroupBox3
'
Me.GroupBox3.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtContinent, Me.bttnAddNode, Me.txtCountry, Me.txtCity})
Me.GroupBox3.Location = New System.Drawing.Point(8, 328)
Me.GroupBox3.Name = "GroupBox3"
Me.GroupBox3.Size = New System.Drawing.Size(312, 152)
Me.GroupBox3.TabIndex = 9
Me.GroupBox3.TabStop = False
'
'txtCountry
'
Me.txtCountry.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.txtCountry.Location = New System.Drawing.Point(80, 48)
Me.txtCountry.Name = "txtCountry"
Me.txtCountry.Size = New System.Drawing.Size(152, 22)
Me.txtCountry.TabIndex = 3
Me.txtCountry.Text = ""
'
'Button1
'
Me.Button1.Font = New System.Drawing.Font("Verdana", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
Me.Button1.Location = New System.Drawing.Point(444, 440)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(152, 40)
Me.Button1.TabIndex = 10
Me.Button1.Text = "Process Selected Nodes"
'
'SaveFileDialog1
'
Me.SaveFileDialog1.FileName = "doc1"
'
'GlobeTree
'
Me.GlobeTree.CheckBoxes = True
Me.GlobeTree.Font = New System.Drawing.Font("Verdana", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.GlobeTree.ImageIndex = -1
Me.GlobeTree.Location = New System.Drawing.Point(8, 16)
Me.GlobeTree.Name = "GlobeTree"
Me.GlobeTree.Nodes.AddRange(New System.Windows.Forms.TreeNode() {New System.Windows.Forms.TreeNode("Globe", New System.Windows.Forms.TreeNode() {New System.Windows.Forms.TreeNode("Africa"), New System.Windows.Forms.TreeNode("Asia"), New System.Windows.Forms.TreeNode("Europe"), New System.Windows.Forms.TreeNode("N. America"), New System.Windows.Forms.TreeNode("Oceania"), New System.Windows.Forms.TreeNode("S. America")})})
Me.GlobeTree.SelectedImageIndex = -1
Me.GlobeTree.Size = New System.Drawing.Size(312, 264)
Me.GlobeTree.TabIndex = 0
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -