diff --git a/App.config b/App.config index b61c19c..5ea4fd3 100644 --- a/App.config +++ b/App.config @@ -19,11 +19,11 @@ Da - - GSI_user.ini + + - - GSI_data.ini + + 0 diff --git a/ApplicationEvents.vb b/ApplicationEvents.vb new file mode 100644 index 0000000..287704e --- /dev/null +++ b/ApplicationEvents.vb @@ -0,0 +1,12 @@ +Namespace My + ' The following events are available for MyApplication: + ' Startup: Raised when the application starts, before the startup form is created. + ' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally. + ' UnhandledException: Raised if the application encounters an unhandled exception. + ' StartupNextInstance: Raised when launching a single-instance application and the application is already active. + ' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected. + + Partial Friend Class MyApplication + + End Class +End Namespace diff --git a/Form1.Designer.vb b/Form1.Designer.vb index 60b63c2..f76edb2 100644 --- a/Form1.Designer.vb +++ b/Form1.Designer.vb @@ -25,27 +25,31 @@ Partial Class Form1 Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1)) Me.RichTextBox1 = New System.Windows.Forms.RichTextBox() Me.StatusStrip1 = New System.Windows.Forms.StatusStrip() + Me.ToolStripProgressBar1 = New System.Windows.Forms.ToolStripProgressBar() Me.ToolStripStatusLabel1 = New System.Windows.Forms.ToolStripStatusLabel() Me.ToolStripStatusLabel2 = New System.Windows.Forms.ToolStripStatusLabel() Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog() Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog() - Me.tsbOpenFile = New System.Windows.Forms.ToolStripButton() Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator() Me.tsbFileName = New System.Windows.Forms.ToolStripTextBox() - Me.tsbConvert = New System.Windows.Forms.ToolStripButton() - Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator() - Me.tsbSaveAs = New System.Windows.Forms.ToolStripButton() Me.ToolStrip1 = New System.Windows.Forms.ToolStrip() - Me.ToolStripButton1 = New System.Windows.Forms.ToolStripButton() - Me.ToolStripLabel3 = New System.Windows.Forms.ToolStripLabel() + Me.tsbOpenFile = New System.Windows.Forms.ToolStripButton() + Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator() + Me.LabelDatoteka = New System.Windows.Forms.ToolStripLabel() + Me.ButtonUrediDat = New System.Windows.Forms.ToolStripButton() + Me.tsbConvert = New System.Windows.Forms.ToolStripButton() Me.tsbPointsOnly = New System.Windows.Forms.ToolStripButton() Me.tsbHelp = New System.Windows.Forms.ToolStripButton() Me.ToolStripSeparator4 = New System.Windows.Forms.ToolStripSeparator() + Me.tsbSaveAs = New System.Windows.Forms.ToolStripButton() Me.ToolStripSeparator3 = New System.Windows.Forms.ToolStripSeparator() Me.ToolStripComboBox2 = New System.Windows.Forms.ToolStripComboBox() Me.ToolStripLabel2 = New System.Windows.Forms.ToolStripLabel() Me.ToolStripComboBox1 = New System.Windows.Forms.ToolStripComboBox() Me.ToolStripLabel1 = New System.Windows.Forms.ToolStripLabel() + Me.tsbStolpci = New System.Windows.Forms.ToolStripComboBox() + Me.ToolStripLabel3 = New System.Windows.Forms.ToolStripLabel() + Me.ToolStripSeparator5 = New System.Windows.Forms.ToolStripSeparator() Me.StatusStrip1.SuspendLayout() Me.ToolStrip1.SuspendLayout() Me.SuspendLayout() @@ -58,29 +62,39 @@ Partial Class Form1 Me.RichTextBox1.BackColor = System.Drawing.SystemColors.ControlLightLight Me.RichTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.RichTextBox1.Font = New System.Drawing.Font("Courier New", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte)) - Me.RichTextBox1.Location = New System.Drawing.Point(9, 29) + Me.RichTextBox1.Location = New System.Drawing.Point(9, 39) Me.RichTextBox1.Margin = New System.Windows.Forms.Padding(0) Me.RichTextBox1.Name = "RichTextBox1" Me.RichTextBox1.ReadOnly = True - Me.RichTextBox1.Size = New System.Drawing.Size(1233, 690) + Me.RichTextBox1.Size = New System.Drawing.Size(1233, 680) Me.RichTextBox1.TabIndex = 1 Me.RichTextBox1.Text = "" + Me.RichTextBox1.WordWrap = False ' 'StatusStrip1 ' - Me.StatusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripStatusLabel1, Me.ToolStripStatusLabel2}) + Me.StatusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripProgressBar1, Me.ToolStripStatusLabel1, Me.ToolStripStatusLabel2}) Me.StatusStrip1.Location = New System.Drawing.Point(0, 719) Me.StatusStrip1.Name = "StatusStrip1" Me.StatusStrip1.Size = New System.Drawing.Size(1251, 22) Me.StatusStrip1.TabIndex = 2 Me.StatusStrip1.Text = "StatusStrip1" ' + 'ToolStripProgressBar1 + ' + Me.ToolStripProgressBar1.ForeColor = System.Drawing.Color.LimeGreen + Me.ToolStripProgressBar1.Margin = New System.Windows.Forms.Padding(10, 3, 10, 3) + Me.ToolStripProgressBar1.Name = "ToolStripProgressBar1" + Me.ToolStripProgressBar1.Size = New System.Drawing.Size(100, 16) + Me.ToolStripProgressBar1.Step = 1 + Me.ToolStripProgressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous + ' 'ToolStripStatusLabel1 ' Me.ToolStripStatusLabel1.Font = New System.Drawing.Font("Segoe UI", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte)) Me.ToolStripStatusLabel1.Name = "ToolStripStatusLabel1" - Me.ToolStripStatusLabel1.Size = New System.Drawing.Size(99, 17) - Me.ToolStripStatusLabel1.Text = "Made by Boris Bilc" + Me.ToolStripStatusLabel1.Size = New System.Drawing.Size(236, 17) + Me.ToolStripStatusLabel1.Text = "Made by 2B geoinformatika d.o.o. / Boris Bilc" ' 'ToolStripStatusLabel2 ' @@ -97,15 +111,6 @@ Partial Class Form1 Me.SaveFileDialog1.DefaultExt = "*.txt" Me.SaveFileDialog1.Title = "Save As..." ' - 'tsbOpenFile - ' - Me.tsbOpenFile.Image = CType(resources.GetObject("tsbOpenFile.Image"), System.Drawing.Image) - Me.tsbOpenFile.ImageTransparentColor = System.Drawing.Color.Magenta - Me.tsbOpenFile.Name = "tsbOpenFile" - Me.tsbOpenFile.Size = New System.Drawing.Size(83, 26) - Me.tsbOpenFile.Text = "Odpri GSI" - Me.tsbOpenFile.ToolTipText = "Open File..." - ' 'ToolStripSeparator1 ' Me.ToolStripSeparator1.Name = "ToolStripSeparator1" @@ -114,87 +119,105 @@ Partial Class Form1 'tsbFileName ' Me.tsbFileName.AutoSize = False - Me.tsbFileName.Font = New System.Drawing.Font("Segoe UI", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte)) + Me.tsbFileName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle + Me.tsbFileName.Font = New System.Drawing.Font("Segoe UI Semibold", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(238, Byte)) + Me.tsbFileName.Margin = New System.Windows.Forms.Padding(5, 0, 5, 0) Me.tsbFileName.Name = "tsbFileName" Me.tsbFileName.ReadOnly = True - Me.tsbFileName.Size = New System.Drawing.Size(160, 23) + Me.tsbFileName.Size = New System.Drawing.Size(200, 25) Me.tsbFileName.Text = "Odpri GSI datoteko..." ' - 'tsbConvert + 'ToolStrip1 ' - Me.tsbConvert.Enabled = False - Me.tsbConvert.Image = CType(resources.GetObject("tsbConvert.Image"), System.Drawing.Image) - Me.tsbConvert.ImageTransparentColor = System.Drawing.Color.Magenta - Me.tsbConvert.Name = "tsbConvert" - Me.tsbConvert.Size = New System.Drawing.Size(77, 26) - Me.tsbConvert.Text = "Poročilo" - Me.tsbConvert.ToolTipText = "Convert" + Me.ToolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden + Me.ToolStrip1.ImageScalingSize = New System.Drawing.Size(22, 22) + Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.tsbOpenFile, Me.ToolStripSeparator2, Me.LabelDatoteka, Me.tsbFileName, Me.ButtonUrediDat, Me.ToolStripSeparator1, Me.tsbConvert, Me.tsbPointsOnly, Me.tsbHelp, Me.ToolStripSeparator4, Me.tsbSaveAs, Me.ToolStripSeparator3, Me.ToolStripComboBox2, Me.ToolStripLabel2, Me.ToolStripComboBox1, Me.ToolStripLabel1, Me.tsbStolpci, Me.ToolStripLabel3, Me.ToolStripSeparator5}) + Me.ToolStrip1.Location = New System.Drawing.Point(0, 0) + Me.ToolStrip1.Name = "ToolStrip1" + Me.ToolStrip1.Padding = New System.Windows.Forms.Padding(10, 5, 10, 5) + Me.ToolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System + Me.ToolStrip1.Size = New System.Drawing.Size(1251, 39) + Me.ToolStrip1.TabIndex = 0 + Me.ToolStrip1.Text = "ToolStrip1" + ' + 'tsbOpenFile + ' + Me.tsbOpenFile.Image = CType(resources.GetObject("tsbOpenFile.Image"), System.Drawing.Image) + Me.tsbOpenFile.ImageTransparentColor = System.Drawing.Color.Magenta + Me.tsbOpenFile.Name = "tsbOpenFile" + Me.tsbOpenFile.Size = New System.Drawing.Size(72, 26) + Me.tsbOpenFile.Text = "Odpri..." + Me.tsbOpenFile.ToolTipText = "Izberi GSI datoteko..." ' 'ToolStripSeparator2 ' Me.ToolStripSeparator2.Name = "ToolStripSeparator2" Me.ToolStripSeparator2.Size = New System.Drawing.Size(6, 29) ' - 'tsbSaveAs + 'LabelDatoteka ' - Me.tsbSaveAs.Enabled = False - Me.tsbSaveAs.Image = CType(resources.GetObject("tsbSaveAs.Image"), System.Drawing.Image) - Me.tsbSaveAs.ImageTransparentColor = System.Drawing.Color.Magenta - Me.tsbSaveAs.Name = "tsbSaveAs" - Me.tsbSaveAs.Size = New System.Drawing.Size(78, 26) - Me.tsbSaveAs.Text = "Shrani ..." + Me.LabelDatoteka.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image + Me.LabelDatoteka.Image = Global.TPS1100_Convert.My.Resources.Resources.Circled_Right_2_24 + Me.LabelDatoteka.Name = "LabelDatoteka" + Me.LabelDatoteka.Size = New System.Drawing.Size(22, 26) + Me.LabelDatoteka.Text = "Datoteka" ' - 'ToolStrip1 + 'ButtonUrediDat ' - Me.ToolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden - Me.ToolStrip1.ImageScalingSize = New System.Drawing.Size(22, 22) - Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.tsbFileName, Me.tsbOpenFile, Me.ToolStripSeparator2, Me.ToolStripButton1, Me.ToolStripSeparator1, Me.ToolStripLabel3, Me.tsbConvert, Me.tsbPointsOnly, Me.tsbHelp, Me.ToolStripSeparator4, Me.tsbSaveAs, Me.ToolStripSeparator3, Me.ToolStripComboBox2, Me.ToolStripLabel2, Me.ToolStripComboBox1, Me.ToolStripLabel1}) - Me.ToolStrip1.Location = New System.Drawing.Point(0, 0) - Me.ToolStrip1.Name = "ToolStrip1" - Me.ToolStrip1.Padding = New System.Windows.Forms.Padding(10, 0, 10, 0) - Me.ToolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System - Me.ToolStrip1.Size = New System.Drawing.Size(1251, 29) - Me.ToolStrip1.TabIndex = 0 - Me.ToolStrip1.Text = "ToolStrip1" + Me.ButtonUrediDat.Enabled = False + Me.ButtonUrediDat.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_edit_50 + Me.ButtonUrediDat.ImageTransparentColor = System.Drawing.Color.Magenta + Me.ButtonUrediDat.Name = "ButtonUrediDat" + Me.ButtonUrediDat.Size = New System.Drawing.Size(61, 26) + Me.ButtonUrediDat.Text = "Uredi" + Me.ButtonUrediDat.ToolTipText = "Uredi GSI" ' - 'ToolStripButton1 + 'tsbConvert ' - Me.ToolStripButton1.Image = CType(resources.GetObject("ToolStripButton1.Image"), System.Drawing.Image) - Me.ToolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta - Me.ToolStripButton1.Name = "ToolStripButton1" - Me.ToolStripButton1.Size = New System.Drawing.Size(76, 26) - Me.ToolStripButton1.Text = "Urejanje" - ' - 'ToolStripLabel3 - ' - Me.ToolStripLabel3.Name = "ToolStripLabel3" - Me.ToolStripLabel3.Size = New System.Drawing.Size(97, 26) - Me.ToolStripLabel3.Text = "Izvoz podatkov >" + Me.tsbConvert.Enabled = False + Me.tsbConvert.Font = New System.Drawing.Font("Segoe UI Semibold", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.tsbConvert.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_land_surveying_48 + Me.tsbConvert.ImageTransparentColor = System.Drawing.Color.Magenta + Me.tsbConvert.Name = "tsbConvert" + Me.tsbConvert.Size = New System.Drawing.Size(73, 26) + Me.tsbConvert.Text = "Meritve" + Me.tsbConvert.ToolTipText = "Izvozi zapisnik meritev." ' 'tsbPointsOnly ' Me.tsbPointsOnly.Enabled = False - Me.tsbPointsOnly.Image = CType(resources.GetObject("tsbPointsOnly.Image"), System.Drawing.Image) + Me.tsbPointsOnly.Font = New System.Drawing.Font("Segoe UI Semibold", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.tsbPointsOnly.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_connection_status_on_48 Me.tsbPointsOnly.ImageTransparentColor = System.Drawing.Color.Magenta Me.tsbPointsOnly.Name = "tsbPointsOnly" - Me.tsbPointsOnly.Size = New System.Drawing.Size(63, 26) + Me.tsbPointsOnly.Size = New System.Drawing.Size(64, 26) Me.tsbPointsOnly.Text = "Točke" - Me.tsbPointsOnly.ToolTipText = "Points Only" + Me.tsbPointsOnly.ToolTipText = "Izvozi koordinate točk." ' 'tsbHelp ' Me.tsbHelp.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right - Me.tsbHelp.Image = CType(resources.GetObject("tsbHelp.Image"), System.Drawing.Image) + Me.tsbHelp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image + Me.tsbHelp.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_info_squared_50 Me.tsbHelp.ImageTransparentColor = System.Drawing.Color.Magenta Me.tsbHelp.Name = "tsbHelp" - Me.tsbHelp.Size = New System.Drawing.Size(71, 26) - Me.tsbHelp.Text = "Pomoč" + Me.tsbHelp.Size = New System.Drawing.Size(26, 26) + Me.tsbHelp.Text = "Info" ' 'ToolStripSeparator4 ' Me.ToolStripSeparator4.Name = "ToolStripSeparator4" Me.ToolStripSeparator4.Size = New System.Drawing.Size(6, 29) ' + 'tsbSaveAs + ' + Me.tsbSaveAs.Enabled = False + Me.tsbSaveAs.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_save_as_50 + Me.tsbSaveAs.ImageTransparentColor = System.Drawing.Color.Magenta + Me.tsbSaveAs.Name = "tsbSaveAs" + Me.tsbSaveAs.Size = New System.Drawing.Size(78, 26) + Me.tsbSaveAs.Text = "Shrani ..." + ' 'ToolStripSeparator3 ' Me.ToolStripSeparator3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right @@ -205,7 +228,6 @@ Partial Class Form1 ' Me.ToolStripComboBox2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right Me.ToolStripComboBox2.DropDownWidth = 50 - Me.ToolStripComboBox2.FlatStyle = System.Windows.Forms.FlatStyle.System Me.ToolStripComboBox2.Items.AddRange(New Object() {"Pika", "Vejica"}) Me.ToolStripComboBox2.Name = "ToolStripComboBox2" Me.ToolStripComboBox2.Size = New System.Drawing.Size(75, 29) @@ -214,13 +236,12 @@ Partial Class Form1 ' Me.ToolStripLabel2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right Me.ToolStripLabel2.Name = "ToolStripLabel2" - Me.ToolStripLabel2.Size = New System.Drawing.Size(56, 26) - Me.ToolStripLabel2.Text = "Decimale" + Me.ToolStripLabel2.Size = New System.Drawing.Size(63, 26) + Me.ToolStripLabel2.Text = "Decimalna" ' 'ToolStripComboBox1 ' Me.ToolStripComboBox1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right - Me.ToolStripComboBox1.FlatStyle = System.Windows.Forms.FlatStyle.System Me.ToolStripComboBox1.Items.AddRange(New Object() {"Da", "Ne"}) Me.ToolStripComboBox1.Name = "ToolStripComboBox1" Me.ToolStripComboBox1.Size = New System.Drawing.Size(75, 29) @@ -232,8 +253,28 @@ Partial Class Form1 Me.ToolStripLabel1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text Me.ToolStripLabel1.Image = CType(resources.GetObject("ToolStripLabel1.Image"), System.Drawing.Image) Me.ToolStripLabel1.Name = "ToolStripLabel1" - Me.ToolStripLabel1.Size = New System.Drawing.Size(101, 26) - Me.ToolStripLabel1.Text = "Uporabi kodiranje" + Me.ToolStripLabel1.Size = New System.Drawing.Size(34, 26) + Me.ToolStripLabel1.Text = "Kode" + ' + 'tsbStolpci + ' + Me.tsbStolpci.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right + Me.tsbStolpci.Items.AddRange(New Object() {"Presledek", "Tabulator"}) + Me.tsbStolpci.Name = "tsbStolpci" + Me.tsbStolpci.Size = New System.Drawing.Size(100, 29) + ' + 'ToolStripLabel3 + ' + Me.ToolStripLabel3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right + Me.ToolStripLabel3.Name = "ToolStripLabel3" + Me.ToolStripLabel3.Size = New System.Drawing.Size(43, 26) + Me.ToolStripLabel3.Text = "Stolpci" + ' + 'ToolStripSeparator5 + ' + Me.ToolStripSeparator5.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right + Me.ToolStripSeparator5.Name = "ToolStripSeparator5" + Me.ToolStripSeparator5.Size = New System.Drawing.Size(6, 29) ' 'Form1 ' @@ -247,6 +288,7 @@ Partial Class Form1 Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) Me.MinimumSize = New System.Drawing.Size(1000, 480) Me.Name = "Form1" + Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen Me.Text = "TPS1100 Convert" Me.StatusStrip1.ResumeLayout(False) Me.StatusStrip1.PerformLayout() @@ -264,7 +306,6 @@ Partial Class Form1 Friend WithEvents ToolStripSeparator1 As ToolStripSeparator Friend WithEvents tsbFileName As ToolStripTextBox Friend WithEvents tsbConvert As ToolStripButton - Friend WithEvents ToolStripSeparator2 As ToolStripSeparator Friend WithEvents tsbSaveAs As ToolStripButton Friend WithEvents ToolStrip1 As ToolStrip Friend WithEvents ToolStripSeparator3 As ToolStripSeparator @@ -277,6 +318,11 @@ Partial Class Form1 Friend WithEvents tsbPointsOnly As ToolStripButton Friend WithEvents tsbHelp As ToolStripButton Friend WithEvents ToolStripSeparator4 As ToolStripSeparator - Friend WithEvents ToolStripButton1 As ToolStripButton + Friend WithEvents ButtonUrediDat As ToolStripButton + Friend WithEvents ToolStripSeparator2 As ToolStripSeparator + Friend WithEvents LabelDatoteka As ToolStripLabel + Friend WithEvents ToolStripSeparator5 As ToolStripSeparator + Friend WithEvents tsbStolpci As ToolStripComboBox Friend WithEvents ToolStripLabel3 As ToolStripLabel + Friend WithEvents ToolStripProgressBar1 As ToolStripProgressBar End Class diff --git a/Form1.resx b/Form1.resx index 3722f6c..333028a 100644 --- a/Form1.resx +++ b/Form1.resx @@ -126,187 +126,26 @@ 383, 17 + + 17, 17 + iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALTSURBVGhD7ZZdSFNhGMefoo+bCJLqsmUXgVsKalhpCHkh - YmBUkJKBhETQTV1434VUsyLEijCbH6l3UpkZQtDN9Gy6rc3NuUzrpDa/mlFEI2TnfXpHjxzyrJs6m3vh - /OAH45xn7/n/D+dwXjAwMDAwWHcinbB9qQtuLHXCAPfVv7jQBS8Wu6E+3A07adnUs/AY2hc6AfUw3Apz - 8+1goaVTS7gDpuY6APVy5hEs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djN3H9UizWD+6yymiNq1tP000gs6gWweHcqPbGN3k6GCJJV7YJJyEJCdKRMQo6q - kAWDOFwFZEEhSO41B8k4FhKivv1fgCwERNWQhYJgkDaTECNEI8lvoasQpgvIXL0OefoapKlZFnFyBqnc - NJITUxCyk0goecQzOUSlLCKiAj6dQTglg0tKCJFLZSiRhp9cbXxRAV5yK7jMxbHrHDlLNIgeUd9mEkIA - KqRsElsv5nHjxg0UCgVcv34d165dw+zsLGZmZjA9PY2pqSlMTk4in88jl8shm81CURRkMhnIsgxJkiCK - ItLpNJLJJARBQCKRQDweRywWQzQaxTN2oQJR15asAmKwnH7wTdcUEYlE8MmpeAWCQQ6YgVgzjnIE3RPf - eyZriuB5Hh//EatA1B0yCVlnFVWIDkE3NoXUEsFxHD76ndy7yhDVQcoQ9M30nTtfU0QoFGKQCsRBs5A+ - FVL+iv12PF9TRDAYxIcnI5WIaiBG58TusVxNEYFAQIWUI0hWmoYYHHbfuCZqivD7/fjAwRshqoFUntgU - UkuEz+djEANEdRA9gl45djmzNUV4vV68dzxshMDK/SYh5QgGGVVqinC73Xh3hDNCYEU1kLo9PqzYdRGr - Wjh2+fv6SqamiPHxcQahzS/fE8BdX53D8t2jsFQFIRNY9vYw7ty8F5adpxlk52W5poixsTG8YwsyCEXc - ueVnLHu9V4U0J24dsqZXstOldM+OM7h7Wy/qf7zCruLbL8k1RbhcLrw1rELoJCji7o8dsLQmYGmO2bX2 - 5l/k6X9m9H1iy3Gppgin04lH+yJsT9ApsFAEyYqW+Kdae/Mvi4NfSjENPakhArAVQ74Q2d4/J7oHg2n5 - eDCljASSit0vKDZvQhn2xFmG3EGl79I/JcDSfcGndJ33snSe9Shtp13yawNBt6VVsN1MzHZPS3yIIiz7 - +KVae4u1WIu1WP/pWrLkLxuRcRftiPuBAAAAAElFTkSuQmCC - - - - 17, 17 - - - - iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv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ZyaxuT9aIfepX3h78GveGFHSl1/SFomv53pOeGena71ns + SY986zqwlIrGsi11m9yR5ybtY2VgYGBgkFwAfgEWSMBIspN1RQAAAABJRU5ErkJggg== diff --git a/Form1.vb b/Form1.vb index 7fff033..3170ba1 100644 --- a/Form1.vb +++ b/Form1.vb @@ -1,24 +1,40 @@ -Imports System.Configuration -Imports System.IO -Imports TPS1100_Convert.My +Imports System.IO Public Class Form1 - Public DatFileName As String Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load + My.Forms.Form1.Text = My.Application.Info.Title + " " + My.Application.Info.Version.Major.ToString + "." + My.Application.Info.Version.Minor.ToString + "." + My.Application.Info.Version.Build.ToString + "." + My.Application.Info.Version.Revision.ToString ToolStripComboBox2.Text = My.Settings.DecimalnoLocilo - + tsbStolpci.SelectedIndex = My.Settings.Stolpci End Sub + + Public streamLines As Integer = 0 Private Sub tsbOpenFile_Click(sender As Object, e As EventArgs) Handles tsbOpenFile.Click + OpenFileDialog1.ReadOnlyChecked = False If OpenFileDialog1.ShowDialog = DialogResult.OK Then - tsbFileName.Text = OpenFileDialog1.SafeFileName - DatFileName = OpenFileDialog1.SafeFileName.ToString RichTextBox1.Clear() + ToolStripProgressBar1.Value = 0 + Dim streamReader As StreamReader = New StreamReader(OpenFileDialog1.FileName) + Do Until streamReader.EndOfStream + RichTextBox1.AppendText(streamReader.ReadLine + vbCrLf) + streamLines = streamLines + 1 + Loop + ToolStripProgressBar1.Maximum = streamLines + streamReader.Close() + streamReader.Dispose() + + My.Settings.Datoteka = OpenFileDialog1.SafeFileName + My.Settings.ZadnjaMapa = OpenFileDialog1.FileName + My.Settings.Stolpci = tsbStolpci.SelectedIndex + tsbFileName.Text = My.Settings.Datoteka + ToolStripStatusLabel1.Text = My.Settings.ZadnjaMapa tsbSaveAs.Text = "Shrani ..." tsbSaveAs.Enabled = False tsbConvert.Enabled = True tsbPointsOnly.Enabled = True - OpenFileDialog1.Dispose() - + ButtonUrediDat.Enabled = True + RichTextBox1.BackColor = SystemColors.Info + LabelDatoteka.Image = My.Resources.icons8_ok_50 + My.Settings.Save() Else tsbFileName.Text = "Odpri GSI datoteko..." RichTextBox1.Clear() @@ -27,35 +43,43 @@ Public Class Form1 tsbConvert.Enabled = False tsbPointsOnly.Enabled = False End If + OpenFileDialog1.Dispose() End Sub Private Sub tsbConvert_Click(sender As Object, e As EventArgs) Handles tsbConvert.Click + ToolStripStatusLabel1.Text = "Procesiranje..." RichTextBox1.Clear() - RichTextBox1.AppendText("TPS 1100 GSI Conversion" + vbCrLf + "++++++++++++++++++++++++++++++++" + vbCrLf) - + RichTextBox1.BackColor = SystemColors.Info + RichTextBox1.AppendText("TPS 1100 Zapisnik" + vbCrLf + "++++++++++++++++++++++++++++++++" + vbCrLf) + ToolStripProgressBar1.Maximum = streamLines ' prepare StreamReader Dim streamReader As StreamReader = New StreamReader(OpenFileDialog1.FileName) Dim i As Integer = 0 - + Dim PodatkiStojisce As Boolean = False + Dim dataStolpci As String = "" + If tsbStolpci.SelectedIndex = 0 Then + dataStolpci = " " + ElseIf tsbStolpci.SelectedIndex = 1 Then + dataStolpci = vbTab + End If + My.Settings.Stolpci = tsbStolpci.SelectedIndex + My.Settings.Save() ' loop untill end of stream Do Until streamReader.EndOfStream ' Read and Split each line to separate it into fields Dim line() As String = streamReader.ReadLine().Split(" ") ' Remove * sign from index line line(0) = Replace(line(0), "*", "") - - If i = 0 Then - - End If + ToolStripProgressBar1.Value = i ' Check if it's a new station setup If Microsoft.VisualBasic.Left(line(1), 2) = "25" Then - RichTextBox1.AppendText(vbCrLf + "Station:" + vbCrLf + "*************" + vbCrLf) - 'RichTextBox1.AppendText("PtName:" + vbTab + "Hz.Corr.:" + vbTab + "StnE:" + vbTab + "StnN:" + vbTab + "StnH:" + vbTab + "Refl.h.: " + vbTab + "Inst.h.: " + vbCrLf) + RichTextBox1.AppendText(vbCrLf + "Station:" + vbCrLf + "****************" + vbCrLf) + RichTextBox1.AppendText("PtID" + dataStolpci + "HzCor" + dataStolpci + "StnE" + dataStolpci + "StnN" + dataStolpci + "StnH" + dataStolpci + "ReflHt" + dataStolpci + "InstHt" + vbCrLf) End If If Microsoft.VisualBasic.Left(line(1), 2) = "84" Then - RichTextBox1.AppendText(vbCrLf + "Station:" + vbCrLf + "*************" + vbCrLf) - 'RichTextBox1.AppendText("PtName:" + vbTab + "StnE:" + vbTab + "StnN:" + vbTab + "StnH:" + vbTab + "Refl.h.: " + vbTab + "Inst.h.: " + vbCrLf) + RichTextBox1.AppendText(vbCrLf + "Station:" + vbCrLf + "****************" + vbCrLf) + RichTextBox1.AppendText("PtID" + dataStolpci + "StnE" + dataStolpci + "StnN" + dataStolpci + "StnH" + dataStolpci + "ReflHt" + dataStolpci + "InstHt" + vbCrLf) End If ' Seaparate word index and data For Each readLine As String In line @@ -68,111 +92,125 @@ Public Class Form1 ' data is always 17 characters long and is read from right to left and has a +/- sign in first place Dim data As String + Dim dataTmp As String Dim numData As Double data = Microsoft.VisualBasic.Right(readLine, 17) If wordIndex = "11" Then data = Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) ElseIf wordIndex = "19" Then ' Date/Time - data = "DateTime= " + Microsoft.VisualBasic.Right(data, 8) + data = dataStolpci + "DateTime= " + Microsoft.VisualBasic.Right(data, 8) ElseIf wordIndex = "21" Then ' Horizontal angle numData = data / 100000 - data = Format(numData, "0.0000") + data = dataStolpci + Format(numData, "0.0000") ElseIf wordIndex = "22" Then ' Vertical angle numData = data / 100000 - data = Format(numData, "0.0000") + data = dataStolpci + Format(numData, "0.0000") ElseIf wordIndex = "25" Then ' Hz. Orientation correction numData = data / 100000 - data = "HzCor= " + Format(numData, "0.0000") + data = dataStolpci + Format(numData, "0.0000") ElseIf wordIndex = "31" Then ' Slope distance numData = data / 1000 - data = Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "32" Then ' Horizontal distance numData = data / 1000 - data = Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "33" Then ' Height difference numData = data / 1000 - data = Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "34" Then ' Stationing numData = data / 1000 - data = "Station= " + Format(numData, "0.000") + data = dataStolpci + "Station= " + Format(numData, "0.000") ElseIf wordIndex = "35" Then ' Info za offset??? numData = data / 1000 - data = "Offset= " + Format(numData, "0.000") + data = dataStolpci + "Offset= " + Format(numData, "0.000") ElseIf wordIndex = "41" Then ' Code 'numData = data 'data = "Code= " + numData.ToString If ToolStripComboBox1.Text = "Da" Then If data = "+0000000000000010" Then data = vbCrLf + "Setup: Quick Set" + vbCrLf + "=============================" + PodatkiStojisce = True End If If data = "+0000000000000020" Then - data = vbCrLf + "Setup: Set Hz" + vbCrLf + "=============================" + vbCrLf + "PtID HZ V SD HD RefHt PrCon HtDif E N H PtCode" + data = vbCrLf + "Setup: Set Hz" + vbCrLf + "=============================" + vbCrLf + "PtID" + dataStolpci + "HZ" + dataStolpci + "V" + dataStolpci + "SD" + dataStolpci + "HD" + dataStolpci + "ReflHt" + dataStolpci + "PrCon" + dataStolpci + "HtDif" + dataStolpci + "PtCode" + PodatkiStojisce = True End If If data = "+0000000000000030" Then - data = vbCrLf + "Setup: Resection" + vbCrLf + "=============================" + vbCrLf + "PtID HZ V SD HD RefHt PrCon HtDif E N H PtCode" + data = vbCrLf + "Setup: Resection" + vbCrLf + "=============================" + vbCrLf + "PtID" + dataStolpci + "HZ" + dataStolpci + "V" + dataStolpci + "SD" + dataStolpci + "HD" + dataStolpci + "ReflHt" + dataStolpci + "PrCon" + dataStolpci + "HtDif" + dataStolpci + "PtCode" + PodatkiStojisce = True End If If data = "+0000000000000040" Then - data = vbCrLf + "Setup: Free Station" + vbCrLf + "=============================" + vbCrLf + "PtID HZ V SD HD RefHt PrCon HtDif E N H PtCode" + data = vbCrLf + "Setup: Free Station" + vbCrLf + "=============================" + vbCrLf + "PtID" + dataStolpci + "HZ" + dataStolpci + "V" + dataStolpci + "SD" + dataStolpci + "HD" + dataStolpci + "ReflHt" + dataStolpci + "PrCon" + dataStolpci + "HtDif" + dataStolpci + "PtCode" + PodatkiStojisce = True End If If data = "+0000000000000050" Then - data = vbCrLf + "Setup: Orientation & Ht. transfer" + vbCrLf + "=============================" + vbCrLf + "PtID HZ V SD HD RefHt PrCon HtDif E N H PtCode" + data = vbCrLf + "Setup: Orientation & Ht. transfer" + vbCrLf + "=============================" + vbCrLf + "PtID" + dataStolpci + "HZ" + dataStolpci + "V" + dataStolpci + "SD" + dataStolpci + "HD" + dataStolpci + "ReflHt" + dataStolpci + "PrCon" + dataStolpci + "HtDif" + dataStolpci + "PtCode" + PodatkiStojisce = True End If If data = "+0000000000000090" Then - data = vbCrLf + "Measured:" + vbCrLf + "-------------------" + vbCrLf + "PtID HZ V SD HD RefHt PrCon HtDif E N H PtCode" + data = vbCrLf + "Measured:" + vbCrLf + "----------------------" + vbCrLf + "PtID" + dataStolpci + "HZ" + dataStolpci + "V" + dataStolpci + "SD" + dataStolpci + "HD" + dataStolpci + "ReflHt" + dataStolpci + "PrCon" + dataStolpci + "HtDif" + dataStolpci + "E" + dataStolpci + "N" + dataStolpci + "H" + dataStolpci + "PtCode" + PodatkiStojisce = False End If If data = "+0000000000000099" Then - data = "Imported:" + vbCrLf + "-------------------" + data = vbCrLf + "Imported/User-Entered:" + vbCrLf + "----------------------" + vbCrLf + "PtID" + dataStolpci + "E" + dataStolpci + "N" + dataStolpci + "H" + PodatkiStojisce = False End If If data = "+00000000STA_OFFS" Then data = "Offsets: " + vbCrLf + PodatkiStojisce = False End If End If ElseIf wordIndex = "42" Then ' Code: Info 1 - data = "Info1= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) + data = dataStolpci + "Info1= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) ElseIf wordIndex = "43" Then ' Code: Info 2 - data = "Info2= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) + data = dataStolpci + "Info2= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) ElseIf wordIndex = "44" Then ' Code: Info 3 - data = "Info3= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) + data = dataStolpci + "Info3= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) ElseIf wordIndex = "45" Then ' Code: Info 4 - data = "Info4= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) + data = dataStolpci + "Info4= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) ElseIf wordIndex = "47" Then ' Code: Info 6 - data = "Info6= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) + data = dataStolpci + "Info6= " + Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) ElseIf wordIndex = "58" Then ' Prism constant numData = data / 10000 - data = numData.ToString + data = dataStolpci + numData.ToString ElseIf wordIndex = "71" Then ' Point Code - numData = data - data = numData.ToString - ElseIf wordIndex = "81" Then ' Target Easting + dataTmp = Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) + If dataTmp = "" Then + data = "" + Else + data = dataStolpci + dataTmp + End If + ElseIf wordIndex = "81" And PodatkiStojisce = False Then ' Target Easting numData = data / 1000 - data = Format(numData, "0.000") - ElseIf wordIndex = "82" Then ' Target Northing + data = dataStolpci + Format(numData, "0.000") + ElseIf wordIndex = "82" And PodatkiStojisce = False Then ' Target Northing numData = data / 1000 - data = Format(numData, "0.000") - ElseIf wordIndex = "83" Then ' Target Height + data = dataStolpci + Format(numData, "0.000") + ElseIf wordIndex = "83" And PodatkiStojisce = False Then ' Target Height numData = data / 1000 - data = Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "84" Then ' Station Easting numData = data / 1000 - data = "StE= " + Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "85" Then ' Station Northing numData = data / 1000 - data = "StN= " + Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "86" Then ' Station Height numData = data / 1000 - data = "StH= " + Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "87" Then ' Reflector height numData = data / 1000 - data = Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "88" Then ' Instriment height numData = data / 1000 - data = "InstHt= " + Format(numData, "0.000") + data = dataStolpci + Format(numData, "0.000") ElseIf wordIndex = "18" Then ' DATE YY.ss numData = data / 1000000 - data = "Year.Sec= " + Format(numData, "0.00") + data = dataStolpci + "Year.Sec= " + Format(numData, "0.00") Else numData = 0 + data = "" End If If ToolStripComboBox2.Text = "Pika" Then If wordIndex IsNot "11" Then @@ -180,37 +218,41 @@ Public Class Form1 End If End If - RichTextBox1.AppendText(data + " ") + RichTextBox1.AppendText(data) End If Next RichTextBox1.AppendText(vbCrLf) + i = i + 1 Loop - ToolStripStatusLabel1.Text = "Konverzija končana. Shrani datoteko!" + ToolStripStatusLabel1.Text = "Prebrano: " + i.ToString + "/" + ToolStripProgressBar1.Maximum.ToString + " vrstic" SaveFileDialog1.Filter = "Zapisnik meritve|*.mer|Text file|*.txt|All files|*.*" streamReader.Close() tsbSaveAs.Enabled = True tsbSaveAs.Text = "Shrani Zapisnik" End Sub - Private Sub tsbSaveAs_Click(sender As Object, e As EventArgs) Handles tsbSaveAs.Click - SaveFileDialog1.FileName = Path.GetFileNameWithoutExtension(OpenFileDialog1.FileName) - If SaveFileDialog1.ShowDialog = DialogResult.OK Then - RichTextBox1.SaveFile(SaveFileDialog1.FileName, RichTextBoxStreamType.PlainText) - ToolStripStatusLabel1.Text = "Shranjeno: " + SaveFileDialog1.FileName.ToString - End If - End Sub - Private Sub tsbPointsOnly_Click(sender As Object, e As EventArgs) Handles tsbPointsOnly.Click + Dim dataStolpci As String = "" + If tsbStolpci.SelectedIndex = 0 Then + dataStolpci = " " + ElseIf tsbStolpci.SelectedIndex = 1 Then + dataStolpci = vbTab + End If + My.Settings.Stolpci = tsbStolpci.SelectedIndex + My.Settings.Save() RichTextBox1.Clear() + RichTextBox1.BackColor = SystemColors.Info Dim measuredPoints As Integer = 1 Dim newStation As Integer = 0 Dim streamReader As StreamReader = New StreamReader(OpenFileDialog1.FileName) + Dim i As Integer = 0 + Dim lin As Integer = 0 Do Until streamReader.EndOfStream ' Read and Split each line to separate it into fields Dim line() As String = streamReader.ReadLine().Split(" ") ' Remove * sign from index line line(0) = Replace(line(0), "*", "") - + ToolStripProgressBar1.Value = i If Microsoft.VisualBasic.Left(line(1), 2) = "25" Then measuredPoints = 1 End If @@ -233,164 +275,97 @@ Public Class Form1 data = "90" End If numData = data - If numData >= 90 Then + If numData = 90 Then measuredPoints = 1 - ElseIf numData >= 10 < 90 Then + ElseIf numData < 90 Then measuredPoints = 0 + Else + measuredPoints = 2 End If End If - If wordIndex = "11" And measuredPoints = 1 Then + If wordIndex = "11" And measuredPoints >= 1 Then data = Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) - RichTextBox1.AppendText(data + " ") - ElseIf wordIndex = "81" And measuredPoints = 1 Then ' Target Easting + RichTextBox1.AppendText(data + dataStolpci) + i = i + 1 + ElseIf wordIndex = "81" And measuredPoints >= 1 Then ' Target Easting numData = data / 1000 data = Format(numData, "0.000") If ToolStripComboBox2.Text = "Pika" Then data = data.ToString.Replace(",", ".") End If - RichTextBox1.AppendText(data + " ") - ElseIf wordIndex = "82" And measuredPoints = 1 Then ' Target Northing + RichTextBox1.AppendText(data + dataStolpci) + ElseIf wordIndex = "82" And measuredPoints >= 1 Then ' Target Northing numData = data / 1000 data = Format(numData, "0.000") If ToolStripComboBox2.Text = "Pika" Then data = data.ToString.Replace(",", ".") End If - RichTextBox1.AppendText(data + " ") - ElseIf wordIndex = "83" And measuredPoints = 1 Then ' Target Height + RichTextBox1.AppendText(data + dataStolpci) + ElseIf wordIndex = "83" And measuredPoints >= 1 Then ' Target Height numData = data / 1000 data = Format(numData, "0.000") If ToolStripComboBox2.Text = "Pika" Then data = data.ToString.Replace(",", ".") End If - RichTextBox1.AppendText(data + vbCrLf) + If measuredPoints = 2 Then + RichTextBox1.AppendText(data + dataStolpci + "REF" + vbCrLf) + Else + RichTextBox1.AppendText(data + dataStolpci + "MEAS" + vbCrLf) + End If ElseIf wordIndex = "84" And measuredPoints = 1 Then ' Station Easting numData = data / 1000 data = Format(numData, "0.000") If ToolStripComboBox2.Text = "Pika" Then data = data.ToString.Replace(",", ".") End If - RichTextBox1.AppendText(data + " ") + RichTextBox1.AppendText(data + dataStolpci) ElseIf wordIndex = "85" And measuredPoints = 1 Then ' Station Northing numData = data / 1000 data = Format(numData, "0.000") If ToolStripComboBox2.Text = "Pika" Then data = data.ToString.Replace(",", ".") End If - RichTextBox1.AppendText(data + " ") + RichTextBox1.AppendText(data + dataStolpci) ElseIf wordIndex = "86" And measuredPoints = 1 Then ' Station Height numData = data / 1000 data = Format(numData, "0.000") If ToolStripComboBox2.Text = "Pika" Then data = data.ToString.Replace(",", ".") End If - RichTextBox1.AppendText(data + vbCrLf) + RichTextBox1.AppendText(data + dataStolpci + "STA" + vbCrLf) Else numData = 0 data = "" End If End If Next + lin = lin + 1 + ToolStripProgressBar1.Value = lin Loop - ToolStripStatusLabel1.Text = "Konverzija končana. Shrani datoteko!" - SaveFileDialog1.Filter = "KOO datoteka|*.koo|Text file|*.txt|All files|*.*" + ToolStripStatusLabel1.Text = "Prebrano točk: " + i.ToString + SaveFileDialog1.Filter = "KOO datoteka|*.koo|Text file (Tab)|*.txt|All files|*.*" streamReader.Close() tsbSaveAs.Enabled = True tsbSaveAs.Text = "Shrani Točke" End Sub - Private Sub tsbKooConvert_Click(sender As Object, e As EventArgs) - RichTextBox1.Clear() - Dim measuredPoints As Integer = 0 - Dim newStation As Integer = 0 - Dim streamReader As StreamReader = New StreamReader(OpenFileDialog1.FileName) - Do Until streamReader.EndOfStream - ' Read and Split each line to separate it into fields - Dim line() As String = streamReader.ReadLine().Split(" ") - ' Remove * sign from index line - line(0) = Replace(line(0), "*", "") - - If Microsoft.VisualBasic.Left(line(1), 2) = "25" Then - newStation = 1 - End If - ' Seaparate word index and data - For Each readLine As String In line - - If readLine = "" Then - ' do nothing - Else - ' wordindex is always 6 characters long and is read fron left to right - Dim wordIndex As String - wordIndex = Microsoft.VisualBasic.Left(readLine, 2) - ' data is always 17 characters long and is read from right to left and has a +/- sign in first place - Dim data As String - Dim numData As Double - - data = Microsoft.VisualBasic.Right(readLine, 17) - - If wordIndex = "11" Then - data = Microsoft.VisualBasic.Right(data, 16).TrimStart("0"c) - RichTextBox1.AppendText(data + " ") - ElseIf wordIndex = "81" Then ' Target Easting - numData = data / 1000 - data = Format(numData, "0.000") - If ToolStripComboBox2.Text = "Pika" Then - data = data.ToString.Replace(",", ".") - End If - RichTextBox1.AppendText(data + " ") - ElseIf wordIndex = "82" Then ' Target Northing - numData = data / 1000 - data = Format(numData, "0.000") - If ToolStripComboBox2.Text = "Pika" Then - data = data.ToString.Replace(",", ".") - End If - RichTextBox1.AppendText(data + " ") - ElseIf wordIndex = "83" Then ' Target Height - numData = data / 1000 - data = Format(numData, "0.000") - If ToolStripComboBox2.Text = "Pika" Then - data = data.ToString.Replace(",", ".") - End If - RichTextBox1.AppendText(data + vbCrLf) - ElseIf wordIndex = "84" Then ' Station Easting - numData = data / 1000 - data = Format(numData, "0.000") - If ToolStripComboBox2.Text = "Pika" Then - data = data.ToString.Replace(",", ".") - End If - RichTextBox1.AppendText(data + " ") - ElseIf wordIndex = "85" Then ' Station Northing - numData = data / 1000 - data = Format(numData, "0.000") - If ToolStripComboBox2.Text = "Pika" Then - data = data.ToString.Replace(",", ".") - End If - RichTextBox1.AppendText(data + " ") - ElseIf wordIndex = "86" Then ' Station Height - numData = data / 1000 - data = Format(numData, "0.000") - If ToolStripComboBox2.Text = "Pika" Then - data = data.ToString.Replace(",", ".") - End If - RichTextBox1.AppendText(data + vbCrLf) - Else - numData = 0 - data = "" - End If - End If - Next - - Loop - ToolStripStatusLabel1.Text = "Konverzija končana. Shrani datoteko!" - SaveFileDialog1.Filter = "KOO datoteka|*.koo|Text file|*.txt|All files|*.*" - streamReader.Close() - tsbSaveAs.Enabled = True - tsbSaveAs.Text = "Shrani Točke" + Private Sub tsbSaveAs_Click(sender As Object, e As EventArgs) Handles tsbSaveAs.Click + SaveFileDialog1.FileName = Path.GetFileNameWithoutExtension(OpenFileDialog1.FileName) + If SaveFileDialog1.ShowDialog = DialogResult.OK Then + RichTextBox1.SaveFile(SaveFileDialog1.FileName, RichTextBoxStreamType.PlainText) + ToolStripStatusLabel1.Text = "Shranjeno: " + SaveFileDialog1.FileName.ToString + RichTextBox1.BackColor = SystemColors.ControlLightLight + 'Dim filePath As String + 'filePath = System.IO.Path.Combine(My.Computer.FileSystem.SpecialDirectories.MyDocuments, "tps1100_log.txt") + My.Computer.FileSystem.WriteAllText("tps1100_log.txt", System.DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss") + " | " + OpenFileDialog1.FileName.ToString + " -> " + SaveFileDialog1.FileName.ToString + vbCrLf, True) + End If End Sub Private Sub tsbHelp_Click(sender As Object, e As EventArgs) Handles tsbHelp.Click - MessageBox.Show("Za konvertiranje GSI datoteke najprej izberi datoteko, ki jo želiš konvertirati z ukazom 'Open File'. Nato izberi metodo konverzije (Poročilo, Merjene točke, Vse točke). Po končani knverziji shrani novo datoteko z ukazom 'Save As...'", -"Kratka navodila") + ' MessageBox.Show("Za konvertiranje GSI datoteke najprej izberi datoteko, ki jo želiš konvertirati z ukazom 'Open File'. Nato izberi metodo konverzije (Poročilo, Merjene točke, Vse točke). Po končani knverziji shrani novo datoteko z ukazom 'Save As...'","Kratka navodila") + SplashScreen1.ShowDialog() + End Sub Private Sub ToolStripComboBox2_Click(sender As Object, e As EventArgs) Handles MyBase.FormClosing @@ -398,7 +373,7 @@ Public Class Form1 My.Settings.Save() End Sub - Private Sub ToolStripButton1_Click(sender As Object, e As EventArgs) Handles ToolStripButton1.Click + Private Sub ToolStripButton1_Click(sender As Object, e As EventArgs) Handles ButtonUrediDat.Click Form2.ShowDialog() diff --git a/Form2.Designer.vb b/Form2.Designer.vb index d461000..580108a 100644 --- a/Form2.Designer.vb +++ b/Form2.Designer.vb @@ -24,67 +24,104 @@ Partial Class Form2 Private Sub InitializeComponent() Me.components = New System.ComponentModel.Container() Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form2)) - Me.RichTextBox1 = New System.Windows.Forms.RichTextBox() + Me.RichTextBoxEdit = New System.Windows.Forms.RichTextBox() Me.ToolStrip1 = New System.Windows.Forms.ToolStrip() + Me.BtnShraniF2 = New System.Windows.Forms.ToolStripButton() Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator() Me.ToolStripLabel1 = New System.Windows.Forms.ToolStripLabel() Me.ComBoxKoda = New System.Windows.Forms.ToolStripComboBox() + Me.ToolStripButton2 = New System.Windows.Forms.ToolStripButton() + Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator() + Me.ToolStripButton1 = New System.Windows.Forms.ToolStripButton() Me.StatusStrip1 = New System.Windows.Forms.StatusStrip() Me.ToolStripStatusLabel1 = New System.Windows.Forms.ToolStripStatusLabel() - Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator() - Me.BtnShraniF2 = New System.Windows.Forms.ToolStripButton() - Me.ToolStripButton2 = New System.Windows.Forms.ToolStripButton() - Me.ToolStripButton1 = New System.Windows.Forms.ToolStripButton() + Me.SaveFileDialog2 = New System.Windows.Forms.SaveFileDialog() Me.MyApplicationBindingSource = New System.Windows.Forms.BindingSource(Me.components) Me.MyApplicationBindingSource1 = New System.Windows.Forms.BindingSource(Me.components) - Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog() + Me.ToolStripSeparator3 = New System.Windows.Forms.ToolStripSeparator() + Me.ToolStripButton3 = New System.Windows.Forms.ToolStripButton() Me.ToolStrip1.SuspendLayout() Me.StatusStrip1.SuspendLayout() CType(Me.MyApplicationBindingSource, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.MyApplicationBindingSource1, System.ComponentModel.ISupportInitialize).BeginInit() Me.SuspendLayout() ' - 'RichTextBox1 + 'RichTextBoxEdit ' - Me.RichTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle - Me.RichTextBox1.DetectUrls = False - Me.RichTextBox1.EnableAutoDragDrop = True - Me.RichTextBox1.Font = New System.Drawing.Font("Courier New", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.RichTextBox1.Location = New System.Drawing.Point(12, 34) - Me.RichTextBox1.Name = "RichTextBox1" - Me.RichTextBox1.Size = New System.Drawing.Size(1060, 552) - Me.RichTextBox1.TabIndex = 2 - Me.RichTextBox1.Text = "" - Me.RichTextBox1.WordWrap = False + Me.RichTextBoxEdit.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle + Me.RichTextBoxEdit.DetectUrls = False + Me.RichTextBoxEdit.EnableAutoDragDrop = True + Me.RichTextBoxEdit.Font = New System.Drawing.Font("Courier New", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.RichTextBoxEdit.Location = New System.Drawing.Point(12, 35) + Me.RichTextBoxEdit.Name = "RichTextBoxEdit" + Me.RichTextBoxEdit.Size = New System.Drawing.Size(1060, 551) + Me.RichTextBoxEdit.TabIndex = 2 + Me.RichTextBoxEdit.Text = "" + Me.RichTextBoxEdit.WordWrap = False ' 'ToolStrip1 ' - Me.ToolStrip1.ImageScalingSize = New System.Drawing.Size(24, 24) - Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.BtnShraniF2, Me.ToolStripSeparator1, Me.ToolStripLabel1, Me.ComBoxKoda, Me.ToolStripButton2, Me.ToolStripSeparator2, Me.ToolStripButton1}) + Me.ToolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden + Me.ToolStrip1.ImageScalingSize = New System.Drawing.Size(20, 20) + Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.BtnShraniF2, Me.ToolStripSeparator3, Me.ToolStripButton3, Me.ToolStripSeparator1, Me.ToolStripLabel1, Me.ComBoxKoda, Me.ToolStripButton2, Me.ToolStripSeparator2, Me.ToolStripButton1}) Me.ToolStrip1.Location = New System.Drawing.Point(0, 0) Me.ToolStrip1.Name = "ToolStrip1" - Me.ToolStrip1.Size = New System.Drawing.Size(1084, 31) + Me.ToolStrip1.Padding = New System.Windows.Forms.Padding(10, 5, 10, 0) + Me.ToolStrip1.Size = New System.Drawing.Size(1084, 32) Me.ToolStrip1.TabIndex = 3 Me.ToolStrip1.Text = "ToolStrip1" ' + 'BtnShraniF2 + ' + Me.BtnShraniF2.Enabled = False + Me.BtnShraniF2.Image = Global.TPS1100_Convert.My.Resources.Resources.Save_as_24 + Me.BtnShraniF2.ImageTransparentColor = System.Drawing.Color.Magenta + Me.BtnShraniF2.Name = "BtnShraniF2" + Me.BtnShraniF2.Size = New System.Drawing.Size(73, 24) + Me.BtnShraniF2.Text = "Shrani..." + ' 'ToolStripSeparator1 ' Me.ToolStripSeparator1.Name = "ToolStripSeparator1" - Me.ToolStripSeparator1.Size = New System.Drawing.Size(6, 31) + Me.ToolStripSeparator1.Size = New System.Drawing.Size(6, 27) ' 'ToolStripLabel1 ' Me.ToolStripLabel1.Name = "ToolStripLabel1" - Me.ToolStripLabel1.Size = New System.Drawing.Size(69, 28) - Me.ToolStripLabel1.Text = "Vstavi Kodo" + Me.ToolStripLabel1.Size = New System.Drawing.Size(45, 24) + Me.ToolStripLabel1.Text = "Koda >" ' 'ComBoxKoda ' - Me.ComBoxKoda.Items.AddRange(New Object() {"10: Quick Set", "20: Set Azimuth", "30: Resection", "40: Free Station", "50: Ori. & Ht. Transfer", "90: Measured"}) + Me.ComBoxKoda.DropDownWidth = 180 + Me.ComBoxKoda.Font = New System.Drawing.Font("Segoe UI", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.ComBoxKoda.Items.AddRange(New Object() {"10: Quick Set", "20: Set Azimuth", "30: Resection", "40: Free Station", "50: Ori. & Ht. Transfer", "90: Measured", "99: Imported/User-Entered"}) Me.ComBoxKoda.Name = "ComBoxKoda" - Me.ComBoxKoda.Size = New System.Drawing.Size(121, 31) + Me.ComBoxKoda.Size = New System.Drawing.Size(180, 27) Me.ComBoxKoda.ToolTipText = "Izberi kodo..." ' + 'ToolStripButton2 + ' + Me.ToolStripButton2.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_advance_48 + Me.ToolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta + Me.ToolStripButton2.Name = "ToolStripButton2" + Me.ToolStripButton2.Size = New System.Drawing.Size(62, 24) + Me.ToolStripButton2.Text = "Vstavi" + Me.ToolStripButton2.ToolTipText = "Vstavi vrstico..." + ' + 'ToolStripSeparator2 + ' + Me.ToolStripSeparator2.Name = "ToolStripSeparator2" + Me.ToolStripSeparator2.Size = New System.Drawing.Size(6, 27) + ' + 'ToolStripButton1 + ' + Me.ToolStripButton1.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_undo_48 + Me.ToolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta + Me.ToolStripButton1.Name = "ToolStripButton1" + Me.ToolStripButton1.Size = New System.Drawing.Size(65, 24) + Me.ToolStripButton1.Text = "Povrni" + ' 'StatusStrip1 ' Me.StatusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripStatusLabel1}) @@ -100,36 +137,9 @@ Partial Class Form2 Me.ToolStripStatusLabel1.Size = New System.Drawing.Size(69, 17) Me.ToolStripStatusLabel1.Text = "Nalaganje..." ' - 'ToolStripSeparator2 + 'SaveFileDialog2 ' - Me.ToolStripSeparator2.Name = "ToolStripSeparator2" - Me.ToolStripSeparator2.Size = New System.Drawing.Size(6, 31) - ' - 'BtnShraniF2 - ' - Me.BtnShraniF2.Enabled = False - Me.BtnShraniF2.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_save_as_50 - Me.BtnShraniF2.ImageTransparentColor = System.Drawing.Color.Magenta - Me.BtnShraniF2.Name = "BtnShraniF2" - Me.BtnShraniF2.Size = New System.Drawing.Size(77, 28) - Me.BtnShraniF2.Text = "Shrani..." - ' - 'ToolStripButton2 - ' - Me.ToolStripButton2.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_advance_48 - Me.ToolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta - Me.ToolStripButton2.Name = "ToolStripButton2" - Me.ToolStripButton2.Size = New System.Drawing.Size(66, 28) - Me.ToolStripButton2.Text = "Vstavi" - Me.ToolStripButton2.ToolTipText = "Vstavi vrstico..." - ' - 'ToolStripButton1 - ' - Me.ToolStripButton1.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_undo_48 - Me.ToolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta - Me.ToolStripButton1.Name = "ToolStripButton1" - Me.ToolStripButton1.Size = New System.Drawing.Size(69, 28) - Me.ToolStripButton1.Text = "Povrni" + Me.SaveFileDialog2.Filter = "GSI Files|*.GSI" ' 'MyApplicationBindingSource ' @@ -139,9 +149,18 @@ Partial Class Form2 ' Me.MyApplicationBindingSource1.DataSource = GetType(TPS1100_Convert.My.MyApplication) ' - 'SaveFileDialog1 + 'ToolStripSeparator3 ' - Me.SaveFileDialog1.Filter = "GSI Files|*.GSI" + Me.ToolStripSeparator3.Name = "ToolStripSeparator3" + Me.ToolStripSeparator3.Size = New System.Drawing.Size(6, 27) + ' + 'ToolStripButton3 + ' + Me.ToolStripButton3.Image = Global.TPS1100_Convert.My.Resources.Resources.icons8_close_50 + Me.ToolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta + Me.ToolStripButton3.Name = "ToolStripButton3" + Me.ToolStripButton3.Size = New System.Drawing.Size(58, 24) + Me.ToolStripButton3.Text = "Zapri" ' 'Form2 ' @@ -150,9 +169,10 @@ Partial Class Form2 Me.ClientSize = New System.Drawing.Size(1084, 611) Me.Controls.Add(Me.StatusStrip1) Me.Controls.Add(Me.ToolStrip1) - Me.Controls.Add(Me.RichTextBox1) + Me.Controls.Add(Me.RichTextBoxEdit) Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) Me.Name = "Form2" + Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen Me.Text = "TPS1100 Convert: Settings" Me.ToolStrip1.ResumeLayout(False) Me.ToolStrip1.PerformLayout() @@ -167,7 +187,7 @@ Partial Class Form2 Friend WithEvents MyApplicationBindingSource As BindingSource Friend WithEvents MyApplicationBindingSource1 As BindingSource - Friend WithEvents RichTextBox1 As RichTextBox + Friend WithEvents RichTextBoxEdit As RichTextBox Friend WithEvents ToolStrip1 As ToolStrip Friend WithEvents BtnShraniF2 As ToolStripButton Friend WithEvents ToolStripSeparator1 As ToolStripSeparator @@ -178,5 +198,7 @@ Partial Class Form2 Friend WithEvents ToolStripStatusLabel1 As ToolStripStatusLabel Friend WithEvents ToolStripSeparator2 As ToolStripSeparator Friend WithEvents ToolStripButton1 As ToolStripButton - Friend WithEvents SaveFileDialog1 As SaveFileDialog + Friend WithEvents SaveFileDialog2 As SaveFileDialog + Friend WithEvents ToolStripButton3 As ToolStripButton + Friend WithEvents ToolStripSeparator3 As ToolStripSeparator End Class diff --git a/Form2.resx b/Form2.resx index c3506da..536cf84 100644 --- a/Form2.resx +++ b/Form2.resx @@ -123,15 +123,15 @@ 662, 17 + + 778, 17 + 17, 17 341, 17 - - 778, 17 - diff --git a/Form2.vb b/Form2.vb index 71c54ae..d643c0f 100644 --- a/Form2.vb +++ b/Form2.vb @@ -11,78 +11,95 @@ Public Class Form2 ' Dim attrs As New System.ComponentModel.AttributeCollection(userAttr) ' PropertyGrid1.BrowsableAttributes = attrs Form1.Hide() - BtnShraniF2.Enabled = False - RichTextBox1.Clear() + RichTextBoxEdit.Clear() ' prepare StreamReader - Dim streamReader As StreamReader = New StreamReader(Form1.OpenFileDialog1.FileName) + Dim streamReader As StreamReader = New StreamReader(My.Settings.ZadnjaMapa) Dim i As Integer = 0 ' loop untill end of stream Do Until streamReader.EndOfStream ' Beri vrstico po vrstico Dim line As String = streamReader.ReadLine() - RichTextBox1.AppendText(line + vbCrLf) + RichTextBoxEdit.AppendText(line + vbCrLf) i = i + 1 Loop - ToolStripStatusLabel1.Text = "Vrstic: " + i.ToString + "| Datoteka: " + Form1.OpenFileDialog1.FileName + ToolStripStatusLabel1.Text = "Prebrano: " + i.ToString + " | Datoteka: " + My.Settings.ZadnjaMapa DatotekaSpemembe = False + BtnShraniF2.Enabled = False streamReader.Close() + streamReader.Dispose() End Sub Private Sub Form2_Close(sender As Object, e As EventArgs) Handles MyBase.Closing - If DatotekaSpemembe = True Then - MessageBox.Show("Podatki spremenjeni... Shranim spremembe?", "Podatki spremenjeni", MessageBoxButtons.YesNo) - If DatotekaSpemembe = True Then - RichTextBox1.SaveFile(Form1.OpenFileDialog1.FileName, RichTextBoxStreamType.PlainText) - BtnShraniF2.Enabled = False - End If - End If + ' If DatotekaSpemembe = True Then + ' MessageBox.Show("Shranim spremembe?", "Podatki spremenjeni", MessageBoxButtons.YesNo) + ' If MessageBoxButtons.YesNo = vbYes Then + ' RichTextBoxEdit.SaveFile(My.Settings.ZadnjaMapa, RichTextBoxStreamType.PlainText) + ' BtnShraniF2.Enabled = False + ' DatotekaSpemembe = False + ' End If + ' End If + Form1.RichTextBox1.Clear() + Form1.streamLines = 0 + Dim streamReader As StreamReader = New StreamReader(Form1.OpenFileDialog1.FileName) + Do Until streamReader.EndOfStream + Form1.RichTextBox1.AppendText(streamReader.ReadLine + vbCrLf) + Form1.streamLines = Form1.streamLines + 1 + Loop + Form1.ToolStripProgressBar1.Maximum = Form1.streamLines + streamReader.Close() + streamReader.Dispose() + Form1.Show() End Sub - Private Sub RichTextBox1_TextChanged(sender As Object, e As EventArgs) Handles RichTextBox1.TextChanged + Private Sub RichTextBox1_TextChanged(sender As Object, e As EventArgs) Handles RichTextBoxEdit.TextChanged ToolStripStatusLabel1.Text = "Spremenjeni podatki... datoteka je bila urejana." BtnShraniF2.Enabled = True DatotekaSpemembe = True End Sub Private Sub BtnShraniF2_Click(sender As Object, e As EventArgs) Handles BtnShraniF2.Click - SaveFileDialog1.FileName = Path.GetFileNameWithoutExtension(Form1.OpenFileDialog1.FileName) - If SaveFileDialog1.ShowDialog = DialogResult.OK Then - RichTextBox1.SaveFile(SaveFileDialog1.FileName, RichTextBoxStreamType.PlainText) - ToolStripStatusLabel1.Text = "Shranjeno: " + SaveFileDialog1.FileName.ToString - BtnShraniF2.Enabled = False - DatotekaSpemembe = False - End If + ' SaveFileDialog2.FileName = My.Settings.ZadnjaMapa + ' If SaveFileDialog2.ShowDialog = DialogResult.OK Then + RichTextBoxEdit.SaveFile(My.Settings.ZadnjaMapa, RichTextBoxStreamType.PlainText) + ToolStripStatusLabel1.Text = "Shranjeno: " + SaveFileDialog2.FileName.ToString + BtnShraniF2.Enabled = False + DatotekaSpemembe = False + ' End If End Sub Private Sub ToolStripButton2_Click(sender As Object, e As EventArgs) Handles ToolStripButton2.Click - RichTextBox1.Focus() - RichTextBox1.SelectionStart = RichTextBox1.GetFirstCharIndexOfCurrentLine + RichTextBoxEdit.Focus() + RichTextBoxEdit.SelectionStart = RichTextBoxEdit.GetFirstCharIndexOfCurrentLine SendKeys.Send("+{HOME}") If ComBoxKoda.SelectedIndex = 0 Then - RichTextBox1.SelectedText = "*410000+0000000000000010 " + vbCrLf + RichTextBoxEdit.SelectedText = "*410000+0000000000000010 " + vbCrLf BtnShraniF2.Enabled = True DatotekaSpemembe = True ElseIf ComBoxKoda.SelectedIndex = 1 Then - RichTextBox1.SelectedText = "*410000+0000000000000020 " + vbCrLf + RichTextBoxEdit.SelectedText = "*410000+0000000000000020 " + vbCrLf BtnShraniF2.Enabled = True DatotekaSpemembe = True ElseIf ComBoxKoda.SelectedIndex = 2 Then - RichTextBox1.SelectedText = "*410000+0000000000000030 " + vbCrLf + RichTextBoxEdit.SelectedText = "*410000+0000000000000030 " + vbCrLf BtnShraniF2.Enabled = True DatotekaSpemembe = True ElseIf ComBoxKoda.SelectedIndex = 3 Then - RichTextBox1.SelectedText = "*410000+0000000000000040 " + vbCrLf + RichTextBoxEdit.SelectedText = "*410000+0000000000000040 " + vbCrLf BtnShraniF2.Enabled = True DatotekaSpemembe = True ElseIf ComBoxKoda.SelectedIndex = 4 Then - RichTextBox1.SelectedText = "*410000+0000000000000050 " + vbCrLf + RichTextBoxEdit.SelectedText = "*410000+0000000000000050 " + vbCrLf BtnShraniF2.Enabled = True DatotekaSpemembe = True ElseIf ComBoxKoda.SelectedIndex = 5 Then - RichTextBox1.SelectedText = "*410000+0000000000000090 " + vbCrLf + RichTextBoxEdit.SelectedText = "*410000+0000000000000090 " + vbCrLf + BtnShraniF2.Enabled = True + DatotekaSpemembe = True + ElseIf ComBoxKoda.SelectedIndex = 6 Then + RichTextBoxEdit.SelectedText = "*410000+0000000000000099 " + vbCrLf BtnShraniF2.Enabled = True DatotekaSpemembe = True End If @@ -90,6 +107,10 @@ Public Class Form2 End Sub Private Sub ToolStripButton1_Click(sender As Object, e As EventArgs) Handles ToolStripButton1.Click - RichTextBox1.Undo() + RichTextBoxEdit.Undo() + End Sub + + Private Sub ToolStripButton3_Click(sender As Object, e As EventArgs) Handles ToolStripButton3.Click + Me.Close() End Sub End Class \ No newline at end of file diff --git a/Icons/Circled-Right-2-24.png b/Icons/Circled-Right-2-24.png new file mode 100644 index 0000000..06966ce Binary files /dev/null and b/Icons/Circled-Right-2-24.png differ diff --git a/Icons/Fine-Print-24.png b/Icons/Fine-Print-24.png new file mode 100644 index 0000000..776e397 Binary files /dev/null and b/Icons/Fine-Print-24.png differ diff --git a/Icons/ModernXP-41-Settings-icon.png b/Icons/ModernXP-41-Settings-icon.png new file mode 100644 index 0000000..e1f6369 Binary files /dev/null and b/Icons/ModernXP-41-Settings-icon.png differ diff --git a/Icons/Save-as-24.png b/Icons/Save-as-24.png new file mode 100644 index 0000000..fb897a8 Binary files /dev/null and b/Icons/Save-as-24.png differ diff --git a/Icons/TPS1100CNVRT.ico b/Icons/TPS1100CNVRT.ico new file mode 100644 index 0000000..2926d2c Binary files /dev/null and b/Icons/TPS1100CNVRT.ico differ diff --git a/Icons/TPS1100CNVRT.png b/Icons/TPS1100CNVRT.png new file mode 100644 index 0000000..99d22b0 Binary files /dev/null and b/Icons/TPS1100CNVRT.png differ diff --git a/Icons/TPS1100CNVRT_logo.png b/Icons/TPS1100CNVRT_logo.png new file mode 100644 index 0000000..c2c4bf6 Binary files /dev/null and b/Icons/TPS1100CNVRT_logo.png differ diff --git a/Icons/icons8-add-new-50.png b/Icons/icons8-add-new-50.png new file mode 100644 index 0000000..c680e2f Binary files /dev/null and b/Icons/icons8-add-new-50.png differ diff --git a/Icons/icons8-advance-48.png b/Icons/icons8-advance-48.png new file mode 100644 index 0000000..d0518ae Binary files /dev/null and b/Icons/icons8-advance-48.png differ diff --git a/Icons/icons8-cancel-50.png b/Icons/icons8-cancel-50.png new file mode 100644 index 0000000..97df96b Binary files /dev/null and b/Icons/icons8-cancel-50.png differ diff --git a/Icons/icons8-clear-symbol-50.png b/Icons/icons8-clear-symbol-50.png new file mode 100644 index 0000000..0fe0e4c Binary files /dev/null and b/Icons/icons8-clear-symbol-50.png differ diff --git a/Icons/icons8-close-50.png b/Icons/icons8-close-50.png new file mode 100644 index 0000000..bb63699 Binary files /dev/null and b/Icons/icons8-close-50.png differ diff --git a/Icons/icons8-close-window-50.png b/Icons/icons8-close-window-50.png new file mode 100644 index 0000000..9f8e08a Binary files /dev/null and b/Icons/icons8-close-window-50.png differ diff --git a/Icons/icons8-connection-status-on-48.png b/Icons/icons8-connection-status-on-48.png new file mode 100644 index 0000000..1919455 Binary files /dev/null and b/Icons/icons8-connection-status-on-48.png differ diff --git a/Icons/icons8-design-48.png b/Icons/icons8-design-48.png new file mode 100644 index 0000000..b2c650f Binary files /dev/null and b/Icons/icons8-design-48.png differ diff --git a/Icons/icons8-do-not-disturb-50.png b/Icons/icons8-do-not-disturb-50.png new file mode 100644 index 0000000..33511ef Binary files /dev/null and b/Icons/icons8-do-not-disturb-50.png differ diff --git a/Icons/icons8-done-50.png b/Icons/icons8-done-50.png new file mode 100644 index 0000000..70a9b61 Binary files /dev/null and b/Icons/icons8-done-50.png differ diff --git a/Icons/icons8-drawing-compass-48.png b/Icons/icons8-drawing-compass-48.png new file mode 100644 index 0000000..18ba95d Binary files /dev/null and b/Icons/icons8-drawing-compass-48.png differ diff --git a/Icons/icons8-edit-50.png b/Icons/icons8-edit-50.png new file mode 100644 index 0000000..33c7e17 Binary files /dev/null and b/Icons/icons8-edit-50.png differ diff --git a/Icons/icons8-info-50.png b/Icons/icons8-info-50.png new file mode 100644 index 0000000..4a13f93 Binary files /dev/null and b/Icons/icons8-info-50.png differ diff --git a/Icons/icons8-info-squared-50.png b/Icons/icons8-info-squared-50.png new file mode 100644 index 0000000..56989c1 Binary files /dev/null and b/Icons/icons8-info-squared-50.png differ diff --git a/Icons/icons8-information-50.png b/Icons/icons8-information-50.png new file mode 100644 index 0000000..0a0ba49 Binary files /dev/null and b/Icons/icons8-information-50.png differ diff --git a/Icons/icons8-land-surveying-48.png b/Icons/icons8-land-surveying-48.png new file mode 100644 index 0000000..eae2e69 Binary files /dev/null and b/Icons/icons8-land-surveying-48.png differ diff --git a/Icons/icons8-no-entry-50.png b/Icons/icons8-no-entry-50.png new file mode 100644 index 0000000..2fa187e Binary files /dev/null and b/Icons/icons8-no-entry-50.png differ diff --git a/Icons/icons8-ok-50.png b/Icons/icons8-ok-50.png new file mode 100644 index 0000000..33beed2 Binary files /dev/null and b/Icons/icons8-ok-50.png differ diff --git a/Icons/icons8-open-end-wrench-50.png b/Icons/icons8-open-end-wrench-50.png new file mode 100644 index 0000000..ff2e38a Binary files /dev/null and b/Icons/icons8-open-end-wrench-50.png differ diff --git a/Icons/icons8-save-as-50.png b/Icons/icons8-save-as-50.png new file mode 100644 index 0000000..9a1153f Binary files /dev/null and b/Icons/icons8-save-as-50.png differ diff --git a/Icons/icons8-tools-50.png b/Icons/icons8-tools-50.png new file mode 100644 index 0000000..9ec0203 Binary files /dev/null and b/Icons/icons8-tools-50.png differ diff --git a/Icons/icons8-unavailable-50.png b/Icons/icons8-unavailable-50.png new file mode 100644 index 0000000..4888f04 Binary files /dev/null and b/Icons/icons8-unavailable-50.png differ diff --git a/Icons/icons8-undo-48.png b/Icons/icons8-undo-48.png new file mode 100644 index 0000000..658ae30 Binary files /dev/null and b/Icons/icons8-undo-48.png differ diff --git a/My Project/Application.Designer.vb b/My Project/Application.Designer.vb index be273d4..2cd5906 100644 --- a/My Project/Application.Designer.vb +++ b/My Project/Application.Designer.vb @@ -27,7 +27,7 @@ Namespace My Me.IsSingleInstance = false Me.EnableVisualStyles = false Me.SaveMySettingsOnExit = true - Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterAllFormsClose End Sub _ diff --git a/My Project/Application.myapp b/My Project/Application.myapp index d3e628d..681d597 100644 --- a/My Project/Application.myapp +++ b/My Project/Application.myapp @@ -3,7 +3,7 @@ true Form1 false - 0 + 1 false 0 0 diff --git a/My Project/AssemblyInfo.vb b/My Project/AssemblyInfo.vb index f569765..aa46c59 100644 --- a/My Project/AssemblyInfo.vb +++ b/My Project/AssemblyInfo.vb @@ -1,4 +1,5 @@ -Imports System +Imports System.Resources +Imports System Imports System.Reflection Imports System.Runtime.InteropServices @@ -9,10 +10,10 @@ Imports System.Runtime.InteropServices ' Review the values of the assembly attributes - - + + - + @@ -31,5 +32,6 @@ Imports System.Runtime.InteropServices ' by using the '*' as shown below: ' - - + + + diff --git a/My Project/Resources.Designer.vb b/My Project/Resources.Designer.vb index 1203f2f..6da71a0 100644 --- a/My Project/Resources.Designer.vb +++ b/My Project/Resources.Designer.vb @@ -60,6 +60,26 @@ Namespace My.Resources End Set End Property + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property Circled_Right_2_24() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("Circled-Right-2-24", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_add_new_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-add-new-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + ''' ''' Looks up a localized resource of type System.Drawing.Bitmap. ''' @@ -70,6 +90,16 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_cancel_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-cancel-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + ''' ''' Looks up a localized resource of type System.Drawing.Bitmap. ''' @@ -80,6 +110,156 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_clear_symbol_501() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-clear-symbol-501", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_close_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-close-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_close_window_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-close-window-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_connection_status_on_48() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-connection-status-on-48", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_design_48() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-design-48", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_done_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-done-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_drawing_compass_48() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-drawing-compass-48", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_edit_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-edit-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_info_squared_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-info-squared-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_information_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-information-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_land_surveying_48() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-land-surveying-48", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_no_entry_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-no-entry-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_ok_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-ok-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_ok_501() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-ok-501", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_open_end_wrench_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-open-end-wrench-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + ''' ''' Looks up a localized resource of type System.Drawing.Bitmap. ''' @@ -90,6 +270,36 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_save_as_501() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-save-as-501", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_tools_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-tools-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property icons8_unavailable_50() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("icons8-unavailable-50", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property + ''' ''' Looks up a localized resource of type System.Drawing.Bitmap. ''' @@ -109,5 +319,15 @@ Namespace My.Resources Return CType(obj,System.Drawing.Bitmap) End Get End Property + + ''' + ''' Looks up a localized resource of type System.Drawing.Bitmap. + ''' + Friend ReadOnly Property TPS1100CNVRT_logo() As System.Drawing.Bitmap + Get + Dim obj As Object = ResourceManager.GetObject("TPS1100CNVRT_logo", resourceCulture) + Return CType(obj,System.Drawing.Bitmap) + End Get + End Property End Module End Namespace diff --git a/My Project/Resources.resx b/My Project/Resources.resx index bdb1eda..890077d 100644 --- a/My Project/Resources.resx +++ b/My Project/Resources.resx @@ -118,19 +118,85 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - ..\icons8-clear-symbol-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Save-as-24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\icons8-advance-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Icons\icons8-ok-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Circled-Right-2-24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\icons8-clear-symbol-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\icons8-save-as-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\icons8-undo-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Save-as-24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-add-new-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-cancel-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-clear-symbol-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-close-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-close-window-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-connection-status-on-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-design-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-done-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-drawing-compass-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-edit-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-information-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-info-squared-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-land-surveying-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-no-entry-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-ok-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-open-end-wrench-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-save-as-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-tools-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\icons8-unavailable-50.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Icons\TPS1100CNVRT_logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/My Project/Settings.Designer.vb b/My Project/Settings.Designer.vb index 917da47..06610f1 100644 --- a/My Project/Settings.Designer.vb +++ b/My Project/Settings.Designer.vb @@ -96,25 +96,25 @@ Namespace My _ - Public Property DatKodeUporabnik() As String + Global.System.Configuration.DefaultSettingValueAttribute("")> _ + Public Property Datoteka() As String Get - Return CType(Me("DatKodeUporabnik"),String) + Return CType(Me("Datoteka"),String) End Get Set - Me("DatKodeUporabnik") = value + Me("Datoteka") = value End Set End Property _ - Public Property DatKodeData() As String + Global.System.Configuration.DefaultSettingValueAttribute("0")> _ + Public Property Stolpci() As Integer Get - Return CType(Me("DatKodeData"),String) + Return CType(Me("Stolpci"),Integer) End Get Set - Me("DatKodeData") = value + Me("Stolpci") = value End Set End Property End Class diff --git a/My Project/Settings.settings b/My Project/Settings.settings index 6caf80e..285cd23 100644 --- a/My Project/Settings.settings +++ b/My Project/Settings.settings @@ -11,11 +11,11 @@ Da - - GSI_user.ini + + - - GSI_data.ini + + 0 \ No newline at end of file diff --git a/Samples/intersections exe.zip b/Samples/intersections exe.zip new file mode 100644 index 0000000..9f4d2df Binary files /dev/null and b/Samples/intersections exe.zip differ diff --git a/SplashScreen1.Designer.vb b/SplashScreen1.Designer.vb new file mode 100644 index 0000000..e4a9605 --- /dev/null +++ b/SplashScreen1.Designer.vb @@ -0,0 +1,204 @@ + _ +Partial Class SplashScreen1 + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + Friend WithEvents ApplicationTitle As System.Windows.Forms.Label + Friend WithEvents Version As System.Windows.Forms.Label + Friend WithEvents Copyright As System.Windows.Forms.Label + Friend WithEvents MainLayoutPanel As System.Windows.Forms.TableLayoutPanel + Friend WithEvents DetailsLayoutPanel As System.Windows.Forms.TableLayoutPanel + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + '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. + _ + Private Sub InitializeComponent() + Me.MainLayoutPanel = New System.Windows.Forms.TableLayoutPanel() + Me.ApplicationTitle = New System.Windows.Forms.Label() + Me.DetailsLayoutPanel = New System.Windows.Forms.TableLayoutPanel() + Me.Label1 = New System.Windows.Forms.Label() + Me.Version = New System.Windows.Forms.Label() + Me.Copyright = New System.Windows.Forms.Label() + Me.LabelCompany = New System.Windows.Forms.Label() + Me.Button1 = New System.Windows.Forms.Button() + Me.LinkLabel1 = New System.Windows.Forms.LinkLabel() + Me.PictureBox1 = New System.Windows.Forms.PictureBox() + Me.MainLayoutPanel.SuspendLayout() + Me.DetailsLayoutPanel.SuspendLayout() + CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit() + Me.SuspendLayout() + ' + 'MainLayoutPanel + ' + Me.MainLayoutPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None + Me.MainLayoutPanel.ColumnCount = 2 + Me.MainLayoutPanel.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 107.0!)) + Me.MainLayoutPanel.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 236.0!)) + Me.MainLayoutPanel.Controls.Add(Me.DetailsLayoutPanel, 1, 1) + Me.MainLayoutPanel.Controls.Add(Me.PictureBox1, 0, 0) + Me.MainLayoutPanel.Controls.Add(Me.ApplicationTitle, 1, 0) + Me.MainLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill + Me.MainLayoutPanel.Location = New System.Drawing.Point(0, 0) + Me.MainLayoutPanel.Name = "MainLayoutPanel" + Me.MainLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 108.0!)) + Me.MainLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 148.0!)) + Me.MainLayoutPanel.Size = New System.Drawing.Size(398, 298) + Me.MainLayoutPanel.TabIndex = 0 + ' + 'ApplicationTitle + ' + Me.ApplicationTitle.Anchor = System.Windows.Forms.AnchorStyles.None + Me.ApplicationTitle.BackColor = System.Drawing.Color.Transparent + Me.ApplicationTitle.Font = New System.Drawing.Font("Gill Sans MT Condensed", 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.ApplicationTitle.Location = New System.Drawing.Point(117, 24) + Me.ApplicationTitle.Name = "ApplicationTitle" + Me.ApplicationTitle.Size = New System.Drawing.Size(270, 59) + Me.ApplicationTitle.TabIndex = 0 + Me.ApplicationTitle.Text = "TPS1100 Convert" + Me.ApplicationTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter + ' + 'DetailsLayoutPanel + ' + Me.DetailsLayoutPanel.Anchor = System.Windows.Forms.AnchorStyles.None + Me.DetailsLayoutPanel.BackColor = System.Drawing.Color.Transparent + Me.DetailsLayoutPanel.ColumnCount = 1 + Me.DetailsLayoutPanel.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 247.0!)) + Me.DetailsLayoutPanel.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 142.0!)) + Me.DetailsLayoutPanel.Controls.Add(Me.Version, 0, 0) + Me.DetailsLayoutPanel.Controls.Add(Me.Label1, 0, 1) + Me.DetailsLayoutPanel.Controls.Add(Me.Copyright, 0, 4) + Me.DetailsLayoutPanel.Controls.Add(Me.Button1, 0, 5) + Me.DetailsLayoutPanel.Controls.Add(Me.LinkLabel1, 0, 3) + Me.DetailsLayoutPanel.Controls.Add(Me.LabelCompany, 0, 2) + Me.DetailsLayoutPanel.Location = New System.Drawing.Point(113, 115) + Me.DetailsLayoutPanel.Name = "DetailsLayoutPanel" + Me.DetailsLayoutPanel.RowCount = 6 + Me.DetailsLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 70.27027!)) + Me.DetailsLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 29.72973!)) + Me.DetailsLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26.0!)) + Me.DetailsLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25.0!)) + Me.DetailsLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 21.0!)) + Me.DetailsLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31.0!)) + Me.DetailsLayoutPanel.Size = New System.Drawing.Size(279, 175) + Me.DetailsLayoutPanel.TabIndex = 1 + ' + 'Label1 + ' + Me.Label1.Anchor = System.Windows.Forms.AnchorStyles.Left + Me.Label1.AutoSize = True + Me.Label1.BackColor = System.Drawing.Color.Transparent + Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.Label1.Location = New System.Drawing.Point(3, 54) + Me.Label1.Name = "Label1" + Me.Label1.Size = New System.Drawing.Size(91, 13) + Me.Label1.TabIndex = 4 + Me.Label1.Text = "Napisal: Boris Bilc" + ' + 'Version + ' + Me.Version.Anchor = System.Windows.Forms.AnchorStyles.Left + Me.Version.AutoSize = True + Me.Version.BackColor = System.Drawing.Color.Transparent + Me.Version.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.Version.Location = New System.Drawing.Point(3, 15) + Me.Version.Name = "Version" + Me.Version.Size = New System.Drawing.Size(131, 20) + Me.Version.TabIndex = 1 + Me.Version.Text = "Version {0}.{1:00}" + ' + 'Copyright + ' + Me.Copyright.Anchor = System.Windows.Forms.AnchorStyles.Left + Me.Copyright.AutoSize = True + Me.Copyright.BackColor = System.Drawing.Color.Transparent + Me.Copyright.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.Copyright.Location = New System.Drawing.Point(3, 125) + Me.Copyright.Name = "Copyright" + Me.Copyright.Size = New System.Drawing.Size(58, 15) + Me.Copyright.TabIndex = 2 + Me.Copyright.Text = "Copyright" + ' + 'LabelCompany + ' + Me.LabelCompany.Anchor = System.Windows.Forms.AnchorStyles.Left + Me.LabelCompany.AutoSize = True + Me.LabelCompany.BackColor = System.Drawing.Color.Transparent + Me.LabelCompany.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.LabelCompany.Location = New System.Drawing.Point(3, 76) + Me.LabelCompany.Name = "LabelCompany" + Me.LabelCompany.Size = New System.Drawing.Size(59, 15) + Me.LabelCompany.TabIndex = 3 + Me.LabelCompany.Text = "Company" + ' + 'Button1 + ' + Me.Button1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles) + Me.Button1.Location = New System.Drawing.Point(201, 147) + Me.Button1.Name = "Button1" + Me.Button1.Size = New System.Drawing.Size(75, 25) + Me.Button1.TabIndex = 2 + Me.Button1.Text = "OK" + Me.Button1.UseVisualStyleBackColor = True + ' + 'LinkLabel1 + ' + Me.LinkLabel1.Anchor = System.Windows.Forms.AnchorStyles.Left + Me.LinkLabel1.AutoSize = True + Me.LinkLabel1.Location = New System.Drawing.Point(3, 103) + Me.LinkLabel1.Name = "LinkLabel1" + Me.LinkLabel1.Size = New System.Drawing.Size(71, 13) + Me.LinkLabel1.TabIndex = 5 + Me.LinkLabel1.TabStop = True + Me.LinkLabel1.Text = "Spletna Stran" + ' + 'PictureBox1 + ' + Me.PictureBox1.Image = Global.TPS1100_Convert.My.Resources.Resources.TPS1100CNVRT_logo + Me.PictureBox1.Location = New System.Drawing.Point(3, 3) + Me.PictureBox1.Name = "PictureBox1" + Me.PictureBox1.Size = New System.Drawing.Size(101, 101) + Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom + Me.PictureBox1.TabIndex = 3 + Me.PictureBox1.TabStop = False + ' + 'SplashScreen1 + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.ClientSize = New System.Drawing.Size(398, 298) + Me.ControlBox = False + Me.Controls.Add(Me.MainLayoutPanel) + Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle + Me.MaximizeBox = False + Me.MinimizeBox = False + Me.Name = "SplashScreen1" + Me.ShowInTaskbar = False + Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen + Me.MainLayoutPanel.ResumeLayout(False) + Me.DetailsLayoutPanel.ResumeLayout(False) + Me.DetailsLayoutPanel.PerformLayout() + CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit() + Me.ResumeLayout(False) + + End Sub + + Friend WithEvents Button1 As Button + Friend WithEvents LabelCompany As Label + Friend WithEvents Label1 As Label + Friend WithEvents LinkLabel1 As LinkLabel + Friend WithEvents PictureBox1 As PictureBox +End Class diff --git a/SplashScreen1.resx b/SplashScreen1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SplashScreen1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SplashScreen1.vb b/SplashScreen1.vb new file mode 100644 index 0000000..51ce443 --- /dev/null +++ b/SplashScreen1.vb @@ -0,0 +1,46 @@ + +Public NotInheritable Class SplashScreen1 + + 'TODO: This form can easily be set as the splash screen for the application by going to the "Application" tab + ' of the Project Designer ("Properties" under the "Project" menu). + + + Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load + 'Set up the dialog text at runtime according to the application's assembly information. + + 'TODO: Customize the application's assembly information in the "Application" pane of the project + ' properties dialog (under the "Project" menu). + + 'Application title + If My.Application.Info.Title <> "" Then + ApplicationTitle.Text = My.Application.Info.Title + Else + 'If the application title is missing, use the application name, without the extension + ApplicationTitle.Text = System.IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName) + End If + + 'Format the version information using the text set into the Version control at design time as the + ' formatting string. This allows for effective localization if desired. + ' Build and revision information could be included by using the following code and changing the + ' Version control's designtime text to "Version {0}.{1:00}.{2}.{3}" or something similar. See + ' String.Format() in Help for more information. + ' + ' Version.Text = System.String.Format(Version.Text, My.Application.Info.Version.Major, My.Application.Info.Version.Minor, My.Application.Info.Version.Build, My.Application.Info.Version.Revision) + + Version.Text = "Verzija: " + My.Application.Info.Version.Major.ToString + "." + My.Application.Info.Version.Minor.ToString + "." + My.Application.Info.Version.Build.ToString + "." + My.Application.Info.Version.Revision.ToString + + 'Copyright info + Copyright.Text = My.Application.Info.Copyright + LabelCompany.Text = My.Application.Info.CompanyName + End Sub + + Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click + Me.Close() + + End Sub + + Private Sub LinkLabel1_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked + Dim webAddress As String = "https://2bgeo.si/" + Process.Start(webAddress) + End Sub +End Class diff --git a/TEST.GSI b/TEST.GSI index c5c886c..479992a 100644 --- a/TEST.GSI +++ b/TEST.GSI @@ -1,3 +1,4 @@ +*410000+0000000000000099 *110001+00000000000GS001 81..00+0000000465423089 82..00+0000000110526243 83..00+0000000000301586 *110002+00000000000GS002 81..00+0000000465437688 82..00+0000000110547569 83..00+0000000000302107 *110003+00000000000GS003 81..00+0000000465472908 82..00+0000000110527226 83..00+0000000000302945 diff --git a/TEST.koo b/TEST.koo new file mode 100644 index 0000000..03a94cb --- /dev/null +++ b/TEST.koo @@ -0,0 +1,44 @@ +GS001 465423.089 110526.243 301.586 REF +GS002 465437.688 110547.569 302.107 REF +GS003 465472.908 110527.226 302.945 REF +11111 465444.529 110546.554 302.353 STA +GS003 465472.895 110527.228 302.954 MEAS +GS001 465423.100 110526.246 301.598 MEAS +GS002 465437.693 110547.564 302.084 MEAS +1 465474.729 110533.795 303.558 MEAS +2 465463.403 110539.024 302.973 MEAS +3 465455.561 110542.757 302.689 MEAS +4 465446.424 110547.098 302.354 MEAS +5 465447.834 110549.258 302.521 MEAS +6 465447.013 110549.645 302.470 MEAS +7 465447.133 110549.911 302.484 MEAS +8 465442.260 110552.180 302.590 MEAS +9 465439.917 110549.069 302.276 MEAS +10 465434.013 110548.886 302.034 MEAS +11 465447.924 110549.193 303.527 MEAS +12 465448.112 110549.481 303.244 MEAS +13 465452.362 110554.843 304.664 MEAS +14 465454.504 110557.544 305.149 MEAS +15 465453.962 110560.654 305.190 MEAS +16 465451.792 110572.598 306.363 MEAS +17 465452.236 110573.476 307.192 MEAS +18 465451.552 110573.751 306.829 MEAS +19 465460.165 110569.493 306.147 MEAS +20 465460.732 110564.366 308.875 MEAS +21 465456.144 110555.142 308.718 MEAS +22 465466.357 110550.055 310.853 MEAS +23 465457.019 110582.726 312.411 MEAS +24 465471.010 110580.229 312.548 MEAS +31 465443.141 110551.729 303.779 MEAS +32 465440.407 110548.265 302.097 MEAS +33 465438.211 110547.118 302.072 MEAS +34 465434.570 110547.693 301.894 MEAS +35 465436.599 110547.165 301.948 MEAS +36 465439.124 110546.897 302.006 MEAS +37 465441.653 110546.549 302.094 MEAS +38 465446.526 110544.850 302.298 MEAS +39 465454.849 110541.033 302.554 MEAS +40 465460.359 110538.438 302.711 MEAS +41 465472.352 110532.887 302.986 MEAS +42 465473.669 110532.696 303.036 MEAS +43 465474.578 110533.313 303.177 MEAS diff --git a/TEST.mer b/TEST.mer new file mode 100644 index 0000000..04c4a7f --- /dev/null +++ b/TEST.mer @@ -0,0 +1,65 @@ +TPS 1100 Zapisnik +++++++++++++++++++++++++++++++++ + +Imported/User-Entered: +---------------------- +PtID E N H +GS001 465423.089 110526.243 301.586 +GS002 465437.688 110547.569 302.107 +GS003 465472.908 110527.226 302.945 + +Setup: Free Station +============================= +PtID HZ V SD HD ReflHt PrCon HtDif PtCode +GS001 138.3101 89.3234 29.523 29.522 2.500 0.0175 -0.754 +GS002 190.2304 103.3841 7.115 6.914 0.100 0.0175 -0.268 +GS003 36.1441 91.2102 34.333 34.324 0.100 0.0175 0.601 + +Station: +**************** +PtID HzCor StnE StnN StnH ReflHt InstHt +11111 88.0119 465444.529 110546.554 302.353 0.100 1.510 + +Measured: +---------------------- +PtID HZ V SD HD ReflHt PrCon HtDif E N H PtCode +GS003 124.1559 91.2102 34.332 34.323 0.100 0.0175 0.601 465472.895 110527.228 302.954 +GS001 226.3226 89.3239 29.524 29.523 2.500 0.0175 -0.755 465423.100 110526.246 301.598 +GS002 278.2430 103.3939 7.112 6.911 0.100 0.0175 -0.270 465437.693 110547.564 302.084 +1 112.5409 88.1545 32.800 32.785 1.300 0.0175 1.205 465474.729 110533.795 303.558 +2 111.4452 88.5039 20.325 20.321 1.300 0.0175 0.620 465463.403 110539.024 302.973 +3 108.5920 89.2251 11.668 11.667 1.300 0.0175 0.336 465455.561 110542.757 302.689 +4 73.5833 96.0303 1.983 1.972 1.300 0.0175 0.001 465446.424 110547.098 302.354 +5 50.4246 107.2703 4.476 4.270 0.000 0.0344 0.168 465447.834 110549.258 302.521 +6 38.4642 109.2145 4.204 3.966 0.000 0.0344 0.116 465447.013 110549.645 302.470 +7 37.4746 107.5859 4.468 4.249 0.000 0.0344 0.131 465447.133 110549.911 302.484 +8 338.0216 101.5057 6.199 6.067 0.000 0.0344 0.237 465442.260 110552.180 302.590 +9 298.3616 106.4853 5.488 5.254 0.000 0.0344 -0.078 465439.917 110549.069 302.276 +10 282.3022 92.4844 10.785 10.772 1.300 0.0175 -0.319 465434.013 110548.886 302.034 +11 52.0802 94.2821 4.313 4.300 0.000 0.0344 1.174 465447.924 110549.193 303.527 +12 50.4445 81.3752 4.677 4.627 1.300 0.0175 0.891 465448.112 110549.481 303.244 +13 43.2242 79.3342 11.597 11.405 1.300 0.0175 2.311 465452.362 110554.843 304.664 +14 42.1339 80.0701 15.065 14.842 1.300 0.0175 2.796 465454.504 110557.544 305.149 +15 33.4646 81.1159 17.167 16.965 1.300 0.0175 2.836 465453.962 110560.654 305.190 +16 15.3456 82.0003 27.304 27.038 1.300 0.0175 4.010 465451.792 110572.598 306.363 +17 15.5830 80.3654 28.384 28.004 1.300 0.0175 4.838 465452.236 110573.476 307.192 +18 14.2841 81.2154 28.412 28.090 1.300 0.0175 4.476 465451.552 110573.751 306.829 +19 34.1646 82.3838 27.992 27.761 1.300 0.0175 3.794 465460.165 110569.493 306.147 +20 42.1727 78.1433 24.595 24.079 0.000 0.0344 6.522 465460.732 110564.366 308.875 +21 53.3104 71.2531 15.239 14.445 0.000 0.0344 6.364 465456.144 110555.142 308.718 +22 80.5316 72.2717 23.186 22.107 0.000 0.0344 8.500 465466.357 110550.055 310.853 +23 19.0258 77.2433 39.212 38.269 0.000 0.0344 10.058 465457.019 110582.726 312.411 +24 38.1048 78.3224 43.712 42.840 0.000 0.0344 10.195 465471.010 110580.229 312.548 +31 344.5857 90.5405 5.359 5.358 0.000 0.0344 1.426 465443.141 110551.729 303.779 +32 292.3305 95.5811 4.488 4.464 1.300 0.0175 -0.257 465440.407 110548.265 302.097 +33 275.0604 94.2552 6.362 6.343 1.300 0.0175 -0.282 465438.211 110547.118 302.072 +34 276.3140 93.4917 10.047 10.024 1.300 0.0175 -0.460 465434.570 110547.693 301.894 +35 274.2437 94.2524 7.978 7.954 1.300 0.0175 -0.405 465436.599 110547.165 301.948 +36 273.3758 95.5230 5.445 5.416 1.300 0.0175 -0.347 465439.124 110546.897 302.006 +37 269.5406 99.1634 2.914 2.876 1.300 0.0175 -0.260 465441.653 110546.549 302.094 +38 130.2741 95.4557 2.638 2.625 1.300 0.0175 -0.055 465446.526 110544.850 302.298 +39 118.0836 90.0246 11.703 11.703 1.300 0.0175 0.201 465454.849 110541.033 302.554 +40 117.0839 89.3129 17.790 17.789 1.300 0.0175 0.358 465460.359 110538.438 302.711 +41 116.0938 89.1307 31.001 30.998 1.300 0.0175 0.633 465472.352 110532.887 302.986 +42 115.2603 89.0942 32.271 32.268 1.300 0.0175 0.682 465473.669 110532.696 303.036 +43 113.4649 88.5545 32.842 32.836 1.300 0.0175 0.824 465474.578 110533.313 303.177 diff --git a/TEST.txt b/TEST.txt new file mode 100644 index 0000000..47a5b89 --- /dev/null +++ b/TEST.txt @@ -0,0 +1,44 @@ +GS001 465423.089 110526.243 301.586 +GS002 465437.688 110547.569 302.107 +GS003 465472.908 110527.226 302.945 +11111 465444.529 110546.554 302.353 +GS003 465472.895 110527.228 302.954 +GS001 465423.100 110526.246 301.598 +GS002 465437.693 110547.564 302.084 +1 465474.729 110533.795 303.558 +2 465463.403 110539.024 302.973 +3 465455.561 110542.757 302.689 +4 465446.424 110547.098 302.354 +5 465447.834 110549.258 302.521 +6 465447.013 110549.645 302.470 +7 465447.133 110549.911 302.484 +8 465442.260 110552.180 302.590 +9 465439.917 110549.069 302.276 +10 465434.013 110548.886 302.034 +11 465447.924 110549.193 303.527 +12 465448.112 110549.481 303.244 +13 465452.362 110554.843 304.664 +14 465454.504 110557.544 305.149 +15 465453.962 110560.654 305.190 +16 465451.792 110572.598 306.363 +17 465452.236 110573.476 307.192 +18 465451.552 110573.751 306.829 +19 465460.165 110569.493 306.147 +20 465460.732 110564.366 308.875 +21 465456.144 110555.142 308.718 +22 465466.357 110550.055 310.853 +23 465457.019 110582.726 312.411 +24 465471.010 110580.229 312.548 +31 465443.141 110551.729 303.779 +32 465440.407 110548.265 302.097 +33 465438.211 110547.118 302.072 +34 465434.570 110547.693 301.894 +35 465436.599 110547.165 301.948 +36 465439.124 110546.897 302.006 +37 465441.653 110546.549 302.094 +38 465446.526 110544.850 302.298 +39 465454.849 110541.033 302.554 +40 465460.359 110538.438 302.711 +41 465472.352 110532.887 302.986 +42 465473.669 110532.696 303.036 +43 465474.578 110533.313 303.177 diff --git a/TPS1100 Convert.vbproj b/TPS1100 Convert.vbproj index fc23a40..dfbf067 100644 --- a/TPS1100 Convert.vbproj +++ b/TPS1100 Convert.vbproj @@ -19,17 +19,23 @@ true Disk false - Foreground + Background 7 Days false false true - publish.htm + sl-SI + TPS1100 Convert + 2B geoinformatika d.o.o. + 2.1.0.4 + true + publish.html true - 4 - 1.1.0.%2a + 5 + 2.5.0.%2a false + true true true @@ -75,7 +81,7 @@ TPS1100 Convert_TemporaryKey.pfx - false + true false @@ -112,6 +118,7 @@ + Form @@ -141,6 +148,12 @@ Settings.settings True + + SplashScreen1.vb + + + Form + @@ -155,14 +168,11 @@ My.Resources Designer + + SplashScreen1.vb + - - PreserveNewest - - - PreserveNewest - MyApplicationCodeGenerator @@ -184,6 +194,27 @@ + + + + + + + + + + + + + + + + + + + + + @@ -192,6 +223,11 @@ Microsoft .NET Framework 4.5.2 %28x86 and x64%29 true + + False + Microsoft .NET Framework 4.8 %28x86 and x64%29 + true + False .NET Framework 3.5 SP1 diff --git a/bin/Release/GSI_data.ini b/bin/Release/GSI_data.ini deleted file mode 100644 index c2f91b2..0000000 --- a/bin/Release/GSI_data.ini +++ /dev/null @@ -1,139 +0,0 @@ -[WORD_INDEX] -11 = Pointnumber # 11 / block: 11....+00000H66 -# PtNo=“H66“ -12 = Serial number # 12 / block: 12....+00640054 -# S.No. “640054” -13 = Instrument type # 13; 13....+00TCR305 -# Instr. “TCR305” -19 = Time # 19 / block: 19....+02081029 -# [MM.DD.hh.mm] -21 = Horizontal Angle # 21 / block: 21.102+17920860 -# Hz „179.086“ gon -22 = Vertical Angle # 22 / block: 22.102+07567500 -# V: „75.675“ gon -25 = Horizontal Angle Delta Azimuth # 22 / block: 22.102+07567500 -# V: „75.675“ gon -31 = Slope distance # 31; e-g. 31..00+00003387 -# Sdist: „3.387“ m -32 = Horizontal distance # 32 / block: 32..00+00003198 -# Hdist: „3.198“ m -33 = Height difference # 33 / block: 33..00+00001119 -# Hdiff: „1.119“ m -41 = Code-Block ID # 41 / block: 41....+00000013 -# Code: „13“ m -42 = Information 1 # 42 / block: 42....+000TREES -# Info1: „TREES“ -43 = Information 2 # 43 / block: 43....+000004.5 -# Info2: „4.5“ -44 = Information 3 # 44 / block: 44....+00CAT.02 -# Info3: „CAT.02“ -45 = Information 4 # 45 / block: 45....+000000NN -# Info4: „NN“ -46 = Information 5 # 46 / block: 46....+000000NN -# Info5: „NN“ -47 = Information 6 # 47 / block: 47....+000000NN -# Info6: „NN“ -48 = Information 7 # 48 / block: 48....+000000NN -# Info7: „NN“ -49 = Information 8 # 49 / block: 49....+000000NN -# Info8: „NN“ -51 = PPM/mm # 51 / block: 51..1.+0000+034 -# “0”ppm; “34”mm -58 = Prism constant # 58 / block: 58..16+00000020 -# Prism „2“ mm -59 = PPM # 59 / block: 59..16+02200000 -# PPM „220“ -71 = Remark 1 -# (or Attribute 1) -# 71 / block: 71....+0000REM1 -# “REM1” -72 = Remark 2 -# (or Attribute 2) -# 72 / block: 72....+0000REM2 -# “REM2” -73 = Remark 3 -# (or Attribute 3) -# 73 / block: 73....+0000REM3 -# “REM3” -74 = Remark 4 -# (or Attribute 4) -# 74 / block: 74....+0000REM4 -# “REM4” -75 = Remark 5 -# (or Attribute 5) -# 75 / block: 75....+0000REM5 -# “REM5” -76 = Remark 6 -# (or Attribute 6) -# 76 / block: 76....+0000REM6 -# “REM6” -77 = Remark 7 -# (or Attribute 7) -# 77 / block: 77....+0000REM7 -# “REM7” -78 = Remark 8 # (or Attribute 8) -# 78 / block: 78....+0000REM8 -# “REM8” -79 = Remark 9 -# (or Attribute 9) -# 79 / block: 79....+0000REM9 -# “REM9” -81 = Easting -# (E) -# 81 / block: 81..00+01999507 -# E: “1999.507”m -82 = Northing -# (N) -# 82 / block: 82..00+00213159 -# N: “2139.159”m -83 = Elevation -# (H) -# 83 / block: 83..00-00032881 -# H: “32.881”m -84 = St. Easting -# (E0) -# 84 / block: 84..11+00393700 -# E: “393.700”m -85 = St. Northing -# (N0) -# 85 / block: 85..11+06561220 -# N: “6561.220”m -86 = St. Height -# (H0) -# 86 / block: 86..11+00065618 -# H: “65.618”m -87 = Reflector height -# (hr) -# 87 / block: 87..11+00001700 -# hr: “1.700” m -88 = Instrument height -# (hi) -# 88 / block: 88..11+00001550 -# hi: “1.550” m - -[AUTOMATIC_INDEX_INFORMATION] -# POS : 4 -0 = Automatic index OFF -1 = Automatic index OPERATING -3 = Automatic index OPERATING - -[INPUT_MODE] -# POS : 5 -0 = Original measured values transferred from the instrument -1 = Manual input from keyboard -2 = Measured value, Hz-Correction ON -3 = Measured value, Hz-Correction OFF -4 = Result of special function - -[UNITS] -# POS : 6 -0 = Meter # (last digit: 1mm / 0.000m) -1 = Feet # (last digit: 1/1000ft / 0.000ft) -2 = 400 gon -3 = 360° decimal # (DDD.DDDDD) -4 = 360° sexagesimal # (DDD.MMSSS) -5 = 6400 mil -6 = Meter # (last digit: 1/10mm) -7 = Feet # (last digit: 1/10‘000ft) -8 = Meter # (last digit: 1/100mm) - diff --git a/bin/Release/GSI_user.ini b/bin/Release/GSI_user.ini deleted file mode 100644 index 6b330bf..0000000 --- a/bin/Release/GSI_user.ini +++ /dev/null @@ -1,8 +0,0 @@ -[CODE] -10 = Quick Set -20 = Set Azimuth -30 = Resection -40 = Free Station -90 = Measured Data -99 = Imported Data - diff --git a/bin/Release/TPS1100 Convert.application b/bin/Release/TPS1100 Convert.application new file mode 100644 index 0000000..6eae0ed --- /dev/null +++ b/bin/Release/TPS1100 Convert.application @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + mi1NgancRnCpJERnEGTkp67M9PQDKvaw98XhgbHMRqw= + + + + \ No newline at end of file diff --git a/bin/Release/TPS1100 Convert.exe b/bin/Release/TPS1100 Convert.exe index 7794910..72d0a29 100644 Binary files a/bin/Release/TPS1100 Convert.exe and b/bin/Release/TPS1100 Convert.exe differ diff --git a/bin/Release/TPS1100 Convert.exe.config b/bin/Release/TPS1100 Convert.exe.config index b61c19c..5ea4fd3 100644 --- a/bin/Release/TPS1100 Convert.exe.config +++ b/bin/Release/TPS1100 Convert.exe.config @@ -19,11 +19,11 @@ Da - - GSI_user.ini + + - - GSI_data.ini + + 0 diff --git a/bin/Release/TPS1100 Convert.exe.manifest b/bin/Release/TPS1100 Convert.exe.manifest new file mode 100644 index 0000000..1ad0598 --- /dev/null +++ b/bin/Release/TPS1100 Convert.exe.manifest @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AQwcFLu1utwPCQjlPgYpdQxwTM1xmK3U6nfVkNcyf5E= + + + + + + + + + + 1VaEGgf8SiN+OrIDf5Tg9i7UOvOgWe/2TCc6gjoYbCQ= + + + + + + + + + 74qm9dMNKX/YirNPCGO0q9XYo6Tzd8K6cBxxg17LnsU= + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/bin/Release/TPS1100 Convert.xml b/bin/Release/TPS1100 Convert.xml index ce3c646..0bc8f67 100644 --- a/bin/Release/TPS1100 Convert.xml +++ b/bin/Release/TPS1100 Convert.xml @@ -22,21 +22,126 @@ TPS1100 Convert resource lookups using this strongly typed resource class. + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + Looks up a localized resource of type System.Drawing.Bitmap. + + + Looks up a localized resource of type System.Drawing.Bitmap. + + Looks up a localized resource of type System.Drawing.Bitmap. + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + Looks up a localized resource of type System.Drawing.Bitmap. + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + Looks up a localized resource of type System.Drawing.Bitmap. @@ -47,6 +152,11 @@ TPS1100 Convert Looks up a localized resource of type System.Drawing.Bitmap. + + + Looks up a localized resource of type System.Drawing.Bitmap. + + Znak za decimalno ločilo diff --git a/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.config.deploy b/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.config.deploy new file mode 100644 index 0000000..5ea4fd3 --- /dev/null +++ b/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.config.deploy @@ -0,0 +1,30 @@ + + + + +
+ + + + + + + + + C:\ + + + Pika + + + Da + + + + + + 0 + + + + diff --git a/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.deploy b/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.deploy new file mode 100644 index 0000000..72d0a29 Binary files /dev/null and b/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.deploy differ diff --git a/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.manifest b/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.manifest new file mode 100644 index 0000000..1ad0598 --- /dev/null +++ b/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100 Convert.exe.manifest @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AQwcFLu1utwPCQjlPgYpdQxwTM1xmK3U6nfVkNcyf5E= + + + + + + + + + + 1VaEGgf8SiN+OrIDf5Tg9i7UOvOgWe/2TCc6gjoYbCQ= + + + + + + + + + 74qm9dMNKX/YirNPCGO0q9XYo6Tzd8K6cBxxg17LnsU= + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100CNVRT.ico.deploy b/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100CNVRT.ico.deploy new file mode 100644 index 0000000..2926d2c Binary files /dev/null and b/bin/Release/app.publish/Application Files/TPS1100 Convert_2_5_0_4/TPS1100CNVRT.ico.deploy differ diff --git a/bin/Release/app.publish/TPS1100 Convert.application b/bin/Release/app.publish/TPS1100 Convert.application new file mode 100644 index 0000000..34b32a1 --- /dev/null +++ b/bin/Release/app.publish/TPS1100 Convert.application @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + mi1NgancRnCpJERnEGTkp67M9PQDKvaw98XhgbHMRqw= + + + + \ No newline at end of file diff --git a/bin/Release/app.publish/TPS1100 Convert.exe b/bin/Release/app.publish/TPS1100 Convert.exe new file mode 100644 index 0000000..72d0a29 Binary files /dev/null and b/bin/Release/app.publish/TPS1100 Convert.exe differ diff --git a/bin/Release/app.publish/autorun.inf b/bin/Release/app.publish/autorun.inf new file mode 100644 index 0000000..e32cf9f --- /dev/null +++ b/bin/Release/app.publish/autorun.inf @@ -0,0 +1,3 @@ +[autorun] +open=setup.exe +icon=setup.exe,0 diff --git a/bin/Release/app.publish/publish.html b/bin/Release/app.publish/publish.html new file mode 100644 index 0000000..93d54b8 --- /dev/null +++ b/bin/Release/app.publish/publish.html @@ -0,0 +1,97 @@ + + + TPS1100 Convert + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
 
Name:TPS1100 Convert
 
Version:2.5.0.4
 
Publisher:2B geoinformatika d.o.o.
 
+ + + + +
The following prerequisites are required:
 
    +
  • Microsoft .NET Framework 4.5.2 (x86 and x64)
  • +
  • Microsoft .NET Framework 4.8 (x86 and x64)
  • +
+If these components are already installed, you can launch the application now. Otherwise, click the button below to install the prerequisites and run the application. +
 
+ + + +
+ +
Install
 
+ +
ClickOnce and .NET Framework Resources +
+ +
+ + \ No newline at end of file diff --git a/bin/Release/app.publish/setup.exe b/bin/Release/app.publish/setup.exe new file mode 100644 index 0000000..65a896c Binary files /dev/null and b/bin/Release/app.publish/setup.exe differ diff --git a/bin/Release/tps1100_log.txt b/bin/Release/tps1100_log.txt new file mode 100644 index 0000000..b9926bd --- /dev/null +++ b/bin/Release/tps1100_log.txt @@ -0,0 +1,3 @@ +2024. 06. 09 05:08:08 | C:\TPS1100\GSI\GAB2024.GSI -> C:\TPS1100\GSI\GAB2024.koo +2024. 06. 09 05:09:33 | C:\TPS1100\GSI\GAB2024.GSI -> C:\TPS1100\GSI\GAB2024.koo +2024. 06. 09 05:10:02 | C:\TPS1100\GSI\KUZMA_M.gsi -> C:\TPS1100\GSI\KUZMA_M.koo