Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 4a39c997 authored by Kostis ANAGNOSTOPOULOS's avatar Kostis ANAGNOSTOPOULOS
Browse files

Initial commit of: VECTO_2012_11_12

* Include all except object-files.
parents
No related branches found
No related tags found
No related merge requests found
Showing
with 1525 additions and 0 deletions
syntax: glob
bin/*
obj/*

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VECTO", "VECTO\VECTO.vbproj", "{AAC0F132-0A9F-45B3-B682-77AC9B24B352}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AAC0F132-0A9F-45B3-B682-77AC9B24B352}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AAC0F132-0A9F-45B3-B682-77AC9B24B352}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AAC0F132-0A9F-45B3-B682-77AC9B24B352}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AAC0F132-0A9F-45B3-B682-77AC9B24B352}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Imports System.Collections.Generic
Public Class cADV
Private sFilePath As String
Private MyPath As String
Private fFZPpath As cSubPath
Private fFLTpath As cSubPath
Private fTEMpath As cSubPath
Private fSTRpaths As List(Of cSubPath)
Public SD3out As Boolean
Public STRfilter As Boolean
Public STRSUMdistflt As Single
Public RndSeed As Short
Public Sub New()
sFilePath = ""
MyPath = ""
fFZPpath = New cSubPath
fFLTpath = New cSubPath
fTEMpath = New cSubPath
fSTRpaths = New List(Of cSubPath)
End Sub
Public Function ReadFile() As Boolean
Dim file As cFile_V3
Dim SubPath As cSubPath
If sFilePath = "" Then Return False
If Not IO.File.Exists(sFilePath) Then Return False
file = New cFile_V3
SetDefault()
If Not file.OpenRead(sFilePath) Then
file = Nothing
Return False
End If
fFZPpath.Init(MyPath, file.ReadLine(0))
fFLTpath.Init(MyPath, file.ReadLine(0))
fTEMpath.Init(MyPath, file.ReadLine(0))
RndSeed = CShort(file.ReadLine(0))
SD3out = CBool(file.ReadLine(0))
STRfilter = CBool(file.ReadLine(0))
STRSUMdistflt = CSng(file.ReadLine(0))
Do While Not file.EndOfFile
SubPath = New cSubPath
SubPath.Init(MyPath, file.ReadLine(0))
fSTRpaths.Add(SubPath)
Loop
lbClose:
file.Close()
file = Nothing
Return True
End Function
Public Function SaveFile() As Boolean
Dim fADV As New cFile_V3
Dim SubPath As cSubPath
If Not fADV.OpenWrite(sFilePath) Then Return False
'Zeile 1: FZP-Datei
fADV.WriteLine(fFZPpath.PathOrDummy)
'Zeile 2: FLT-Datei
fADV.WriteLine(fFLTpath.PathOrDummy)
'Zeile 3: TEM-Datei
fADV.WriteLine(fTEMpath.PathOrDummy)
'Zeile 4: RndSeed
fADV.WriteLine(RndSeed.ToString)
'Zeile 5: MISKAMout True/False
fADV.WriteLine(Math.Abs(CInt(SD3out)))
'Zeile 6: STRfilter True/False
fADV.WriteLine(Math.Abs(CInt(STRfilter)))
'Zeile 7: Distance filter für SUM.STR
fADV.WriteLine(STRSUMdistflt.ToString)
'Zeile 8+: STR Dateien
For Each SubPath In fSTRpaths
fADV.WriteLine(SubPath.PathOrDummy)
Next
fADV.Close()
fADV = Nothing
Return True
End Function
Private Sub SetDefault()
SD3out = False
STRfilter = False
STRSUMdistflt = 85
RndSeed = 0
STRpathsClear()
End Sub
Public Property FilePath() As String
Get
Return sFilePath
End Get
Set(ByVal value As String)
sFilePath = value
MyPath = IO.Path.GetDirectoryName(sFilePath) & "\"
End Set
End Property
Public Property FZPpath(Optional ByVal Original As Boolean = False) As String
Get
If Original Then
Return fFZPpath.OriginalPath
Else
Return fFZPpath.FullPath
End If
End Get
Set(ByVal value As String)
fFZPpath.Init(MyPath, value)
End Set
End Property
Public Property FLTpath(Optional ByVal Original As Boolean = False) As String
Get
If Original Then
Return fFLTpath.OriginalPath
Else
Return fFLTpath.FullPath
End If
End Get
Set(ByVal value As String)
fFLTpath.Init(MyPath, value)
End Set
End Property
Public Property TEMpath(Optional ByVal Original As Boolean = False) As String
Get
If Original Then
Return fTEMpath.OriginalPath
Else
Return fTEMpath.FullPath
End If
End Get
Set(ByVal value As String)
fTEMpath.Init(MyPath, value)
End Set
End Property
#Region "STR-Dateien"
Public ReadOnly Property STRpaths(ByVal index As Short, Optional ByVal Original As Boolean = False) As String
Get
If Original Then
Return fSTRpaths(index).OriginalPath
Else
Return fSTRpaths(index).FullPath
End If
End Get
End Property
Public Sub STRpathsAdd(ByVal path As String)
Dim SubPath As cSubPath
SubPath = New cSubPath
SubPath.Init(MyPath, path)
fSTRpaths.Add(SubPath)
End Sub
Public Sub STRpathsClear()
fSTRpaths.Clear()
End Sub
Public ReadOnly Property STRcount As Integer
Get
Return fSTRpaths.Count
End Get
End Property
#End Region
End Class
This diff is collapsed.
Imports System.Collections.Generic
Namespace My
' Fr MyApplication sind folgende Ereignisse verfgbar:
'
' Startup: Wird beim Starten der Anwendung noch vor dem Erstellen des Startformulars ausgelst.
' Shutdown: Wird nach dem Schlieen aller Anwendungsformulare ausgelst. Dieses Ereignis wird nicht ausgelst, wenn die Anwendung nicht normal beendet wird.
' UnhandledException: Wird ausgelst, wenn in der Anwendung eine unbehandelte Ausnahme auftritt.
' StartupNextInstance: Wird beim Starten einer Einzelinstanzanwendung ausgelst, wenn diese bereits aktiv ist.
' NetworkAvailabilityChanged: Wird beim Herstellen oder Trennen der Netzwerkverbindung ausgelst.
Partial Friend Class MyApplication
'Initialisierung
Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
Dim logfDetail As IO.FileInfo
Dim BackUpError As Boolean
Dim s As String
Dim i As Int16
Dim file As cFile_V3
FirstTime = False
'Pfade
MyAppPath = My.Application.Info.DirectoryPath & "\"
MyConfPath = MyAppPath & "config\"
MyDeclPath = MyAppPath & "Declaration\"
FB_FilHisDir = MyAppPath & "FileHistory\"
StartLogfile()
'Falls Ordner nicht vorhanden: Erstellen!
If Not IO.Directory.Exists(MyConfPath) Then
FirstTime = True
Try
IO.Directory.CreateDirectory(MyConfPath)
Catch ex As Exception
MsgBox("Failed to create directory '" & MyConfPath & "'!", MsgBoxStyle.Critical)
LOGfile.WriteLine("Failed to create directory '" & MyConfPath & "'!")
e.Cancel = True
End Try
IO.File.Create(MyConfPath & "stdGENlist.txt")
IO.File.Create(MyConfPath & "batchGENlist.txt")
IO.File.Create(MyConfPath & "DRIlist.txt")
IO.File.Create(MyConfPath & "ADVlist.txt")
End If
If Not IO.Directory.Exists(FB_FilHisDir) Then
Try
IO.Directory.CreateDirectory(FB_FilHisDir)
'Directories.txt vorkonfigurieren
Try
s = IO.Directory.GetParent(My.Application.Info.DirectoryPath).ToString & "\"
Catch ex As Exception
s = MyAppPath
End Try
Try
file = New cFile_V3
file.OpenWrite(FB_FilHisDir & "Directories.txt")
file.WriteLine(s)
For i = 2 To 20
file.WriteLine(" ")
Next
file.Close()
Catch ex As Exception
End Try
Catch ex As Exception
MsgBox("Failed to create directory '" & FB_FilHisDir & "'!", MsgBoxStyle.Critical)
LOGfile.WriteLine("Failed to create directory '" & FB_FilHisDir & "'!")
e.Cancel = True
End Try
End If
'Trennzeichen!
SetCulture = False
If System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator <> "." Then
SetCulture = True
Try
System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("en-US")
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("en-US")
'MSGtoForm(8, "Set CurrentCulture to 'en-US'", True)
Catch ex As Exception
GUImsg(tMsgID.Err, "Failed to set Application Regional Settings to 'en-US'! Check system decimal- and group- separators!")
End Try
End If
'Klassen initialisieren
sKey = New csKey
JobFileList = New List(Of String)
JobCycleList = New List(Of String)
DEV = New cDEV
VEC = New cVECTO
Cfg = New cConfig 'ACHTUNG: cConfig.New lst cConfig.SetDefault aus welches sKey bentigt dehalb muss sKey schon vorher initialisiert werden!!
ProgBarCtrl = New cProgBarCtrl
'Config
Cfg.ConfigLOAD()
'Log starten
If IO.File.Exists(MyAppPath & "LOG.txt") Then
'Dateigre checken
logfDetail = My.Computer.FileSystem.GetFileInfo(MyAppPath & "LOG.txt")
'Falls Log zu gro: lschen
If logfDetail.Length / (2 ^ 20) > Cfg.LogSize Then
LOGfile.WriteLine("Starting new logfile")
LOGfile.Close()
BackUpError = False
Try
If IO.File.Exists(MyAppPath & "LOG_backup.txt") Then IO.File.Delete(MyAppPath & "LOG_backup.txt")
IO.File.Move(MyAppPath & "LOG.txt", MyAppPath & "LOG_backup.txt")
Catch ex As Exception
BackUpError = True
End Try
StartLogfile()
If BackUpError Then
MsgBox("Failed to backup logfile! (" & MyAppPath & "LOG_backup.txt)")
Else
LOGfile.WriteLine("Logfile restarted. Old log saved to LOG_backup.txt")
End If
End If
End If
'Lizenz initialisieren
Lic = New ivtlic.cLicense
Lic.AppCode = "VECTO"
Lic.FilePath = MyAppPath & "license.dat"
End Sub
Private Sub MyApplication_UnhandledException(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) Handles Me.UnhandledException
e.ExitApplication = True
MsgBox("ERROR!" & ChrW(10) & ChrW(10) & e.Exception.Message.ToString, MsgBoxStyle.Critical, "Unexpected Error")
End Sub
End Class
End Namespace
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FB_Dialog
Inherits System.Windows.Forms.Form
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()> _
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
'Wird vom Windows Form-Designer benötigt.
Private components As System.ComponentModel.IContainer
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.SplitContainer1 = New System.Windows.Forms.SplitContainer()
Me.ButtonNewDir = New System.Windows.Forms.Button()
Me.ButtonDesktop = New System.Windows.Forms.Button()
Me.ButtonWorkDir = New System.Windows.Forms.Button()
Me.ButtonHisFolder = New System.Windows.Forms.Button()
Me.ButtonFolderBack = New System.Windows.Forms.Button()
Me.TextBoxSearchFolder = New System.Windows.Forms.TextBox()
Me.ListViewFolder = New System.Windows.Forms.ListView()
Me.ColumnHeader3 = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
Me.ComboBoxDrive = New System.Windows.Forms.ComboBox()
Me.ButtonAll = New System.Windows.Forms.Button()
Me.LabelFileAnz = New System.Windows.Forms.Label()
Me.ComboBoxExt = New System.Windows.Forms.ComboBox()
Me.ButtonHisFile = New System.Windows.Forms.Button()
Me.TextBoxSearchFile = New System.Windows.Forms.TextBox()
Me.ListViewFiles = New System.Windows.Forms.ListView()
Me.ColumnHeader1 = CType(New System.Windows.Forms.ColumnHeader(), System.Windows.Forms.ColumnHeader)
Me.ContextMenuFile = New System.Windows.Forms.ContextMenuStrip(Me.components)
Me.RenameFileToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
Me.DeleteFileToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
Me.TextBoxPath = New System.Windows.Forms.TextBox()
Me.ContextMenuHisFolder = New System.Windows.Forms.ContextMenuStrip(Me.components)
Me.ContextMenuHisFile = New System.Windows.Forms.ContextMenuStrip(Me.components)
Me.ButtonOK = New System.Windows.Forms.Button()
Me.ButtonCancel = New System.Windows.Forms.Button()
Me.TextBoxCurrent = New System.Windows.Forms.TextBox()
Me.SplitContainer1.Panel1.SuspendLayout()
Me.SplitContainer1.Panel2.SuspendLayout()
Me.SplitContainer1.SuspendLayout()
Me.ContextMenuFile.SuspendLayout()
Me.SuspendLayout()
'
'SplitContainer1
'
Me.SplitContainer1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.SplitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.SplitContainer1.Location = New System.Drawing.Point(12, 36)
Me.SplitContainer1.Name = "SplitContainer1"
'
'SplitContainer1.Panel1
'
Me.SplitContainer1.Panel1.Controls.Add(Me.ButtonNewDir)
Me.SplitContainer1.Panel1.Controls.Add(Me.ButtonDesktop)
Me.SplitContainer1.Panel1.Controls.Add(Me.ButtonWorkDir)
Me.SplitContainer1.Panel1.Controls.Add(Me.ButtonHisFolder)
Me.SplitContainer1.Panel1.Controls.Add(Me.ButtonFolderBack)
Me.SplitContainer1.Panel1.Controls.Add(Me.TextBoxSearchFolder)
Me.SplitContainer1.Panel1.Controls.Add(Me.ListViewFolder)
Me.SplitContainer1.Panel1.Controls.Add(Me.ComboBoxDrive)
'
'SplitContainer1.Panel2
'
Me.SplitContainer1.Panel2.Controls.Add(Me.ButtonAll)
Me.SplitContainer1.Panel2.Controls.Add(Me.LabelFileAnz)
Me.SplitContainer1.Panel2.Controls.Add(Me.ComboBoxExt)
Me.SplitContainer1.Panel2.Controls.Add(Me.ButtonHisFile)
Me.SplitContainer1.Panel2.Controls.Add(Me.TextBoxSearchFile)
Me.SplitContainer1.Panel2.Controls.Add(Me.ListViewFiles)
Me.SplitContainer1.Size = New System.Drawing.Size(764, 293)
Me.SplitContainer1.SplitterDistance = 382
Me.SplitContainer1.TabIndex = 5
Me.SplitContainer1.TabStop = False
'
'ButtonNewDir
'
Me.ButtonNewDir.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ButtonNewDir.Location = New System.Drawing.Point(139, 3)
Me.ButtonNewDir.Name = "ButtonNewDir"
Me.ButtonNewDir.Size = New System.Drawing.Size(38, 21)
Me.ButtonNewDir.TabIndex = 21
Me.ButtonNewDir.TabStop = False
Me.ButtonNewDir.Text = "New"
Me.ButtonNewDir.UseVisualStyleBackColor = True
'
'ButtonDesktop
'
Me.ButtonDesktop.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ButtonDesktop.Location = New System.Drawing.Point(183, 3)
Me.ButtonDesktop.Name = "ButtonDesktop"
Me.ButtonDesktop.Size = New System.Drawing.Size(57, 21)
Me.ButtonDesktop.TabIndex = 22
Me.ButtonDesktop.TabStop = False
Me.ButtonDesktop.Text = "Desktop"
Me.ButtonDesktop.UseVisualStyleBackColor = True
'
'ButtonWorkDir
'
Me.ButtonWorkDir.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ButtonWorkDir.Location = New System.Drawing.Point(246, 3)
Me.ButtonWorkDir.Name = "ButtonWorkDir"
Me.ButtonWorkDir.Size = New System.Drawing.Size(57, 21)
Me.ButtonWorkDir.TabIndex = 23
Me.ButtonWorkDir.TabStop = False
Me.ButtonWorkDir.Text = "Work-Dir"
Me.ButtonWorkDir.UseVisualStyleBackColor = True
'
'ButtonHisFolder
'
Me.ButtonHisFolder.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ButtonHisFolder.Location = New System.Drawing.Point(309, 3)
Me.ButtonHisFolder.Name = "ButtonHisFolder"
Me.ButtonHisFolder.Size = New System.Drawing.Size(68, 21)
Me.ButtonHisFolder.TabIndex = 24
Me.ButtonHisFolder.TabStop = False
Me.ButtonHisFolder.Text = "His / Fav"
Me.ButtonHisFolder.UseVisualStyleBackColor = True
'
'ButtonFolderBack
'
Me.ButtonFolderBack.Location = New System.Drawing.Point(63, 3)
Me.ButtonFolderBack.Name = "ButtonFolderBack"
Me.ButtonFolderBack.Size = New System.Drawing.Size(28, 21)
Me.ButtonFolderBack.TabIndex = 20
Me.ButtonFolderBack.TabStop = False
Me.ButtonFolderBack.Text = "<"
Me.ButtonFolderBack.UseVisualStyleBackColor = True
'
'TextBoxSearchFolder
'
Me.TextBoxSearchFolder.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.TextBoxSearchFolder.Location = New System.Drawing.Point(3, 266)
Me.TextBoxSearchFolder.Name = "TextBoxSearchFolder"
Me.TextBoxSearchFolder.Size = New System.Drawing.Size(374, 20)
Me.TextBoxSearchFolder.TabIndex = 15
'
'ListViewFolder
'
Me.ListViewFolder.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ListViewFolder.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnHeader3})
Me.ListViewFolder.FullRowSelect = True
Me.ListViewFolder.GridLines = True
Me.ListViewFolder.HideSelection = False
Me.ListViewFolder.Location = New System.Drawing.Point(3, 30)
Me.ListViewFolder.MultiSelect = False
Me.ListViewFolder.Name = "ListViewFolder"
Me.ListViewFolder.Size = New System.Drawing.Size(374, 230)
Me.ListViewFolder.TabIndex = 10
Me.ListViewFolder.UseCompatibleStateImageBehavior = False
Me.ListViewFolder.View = System.Windows.Forms.View.Details
'
'ColumnHeader3
'
Me.ColumnHeader3.Text = "Directory"
'
'ComboBoxDrive
'
Me.ComboBoxDrive.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.ComboBoxDrive.FormattingEnabled = True
Me.ComboBoxDrive.Location = New System.Drawing.Point(3, 3)
Me.ComboBoxDrive.Name = "ComboBoxDrive"
Me.ComboBoxDrive.Size = New System.Drawing.Size(54, 21)
Me.ComboBoxDrive.TabIndex = 5
'
'ButtonAll
'
Me.ButtonAll.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ButtonAll.Location = New System.Drawing.Point(239, 3)
Me.ButtonAll.Name = "ButtonAll"
Me.ButtonAll.Size = New System.Drawing.Size(71, 21)
Me.ButtonAll.TabIndex = 19
Me.ButtonAll.Text = "Select All"
Me.ButtonAll.UseVisualStyleBackColor = True
'
'LabelFileAnz
'
Me.LabelFileAnz.AutoSize = True
Me.LabelFileAnz.Location = New System.Drawing.Point(3, 7)
Me.LabelFileAnz.Name = "LabelFileAnz"
Me.LabelFileAnz.Size = New System.Drawing.Size(37, 13)
Me.LabelFileAnz.TabIndex = 7
Me.LabelFileAnz.Text = "0 Files"
'
'ComboBoxExt
'
Me.ComboBoxExt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ComboBoxExt.FormattingEnabled = True
Me.ComboBoxExt.Location = New System.Drawing.Point(291, 266)
Me.ComboBoxExt.Name = "ComboBoxExt"
Me.ComboBoxExt.Size = New System.Drawing.Size(82, 21)
Me.ComboBoxExt.TabIndex = 20
'
'ButtonHisFile
'
Me.ButtonHisFile.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ButtonHisFile.Location = New System.Drawing.Point(316, 3)
Me.ButtonHisFile.Name = "ButtonHisFile"
Me.ButtonHisFile.Size = New System.Drawing.Size(57, 21)
Me.ButtonHisFile.TabIndex = 24
Me.ButtonHisFile.TabStop = False
Me.ButtonHisFile.Text = "History"
Me.ButtonHisFile.UseVisualStyleBackColor = True
'
'TextBoxSearchFile
'
Me.TextBoxSearchFile.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.TextBoxSearchFile.Location = New System.Drawing.Point(3, 266)
Me.TextBoxSearchFile.Name = "TextBoxSearchFile"
Me.TextBoxSearchFile.Size = New System.Drawing.Size(282, 20)
Me.TextBoxSearchFile.TabIndex = 15
'
'ListViewFiles
'
Me.ListViewFiles.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ListViewFiles.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnHeader1})
Me.ListViewFiles.ContextMenuStrip = Me.ContextMenuFile
Me.ListViewFiles.FullRowSelect = True
Me.ListViewFiles.GridLines = True
Me.ListViewFiles.HideSelection = False
Me.ListViewFiles.Location = New System.Drawing.Point(3, 30)
Me.ListViewFiles.Name = "ListViewFiles"
Me.ListViewFiles.Size = New System.Drawing.Size(370, 230)
Me.ListViewFiles.TabIndex = 10
Me.ListViewFiles.UseCompatibleStateImageBehavior = False
Me.ListViewFiles.View = System.Windows.Forms.View.Details
'
'ColumnHeader1
'
Me.ColumnHeader1.Text = "Filename"
Me.ColumnHeader1.Width = 251
'
'ContextMenuFile
'
Me.ContextMenuFile.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.RenameFileToolStripMenuItem, Me.DeleteFileToolStripMenuItem})
Me.ContextMenuFile.Name = "ContextMenuFile"
Me.ContextMenuFile.Size = New System.Drawing.Size(156, 48)
'
'RenameFileToolStripMenuItem
'
Me.RenameFileToolStripMenuItem.Name = "RenameFileToolStripMenuItem"
Me.RenameFileToolStripMenuItem.Size = New System.Drawing.Size(155, 22)
Me.RenameFileToolStripMenuItem.Text = "Rename File..."
'
'DeleteFileToolStripMenuItem
'
Me.DeleteFileToolStripMenuItem.Name = "DeleteFileToolStripMenuItem"
Me.DeleteFileToolStripMenuItem.Size = New System.Drawing.Size(155, 22)
Me.DeleteFileToolStripMenuItem.Text = "Delete File..."
'
'TextBoxPath
'
Me.TextBoxPath.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.TextBoxPath.Location = New System.Drawing.Point(12, 335)
Me.TextBoxPath.Name = "TextBoxPath"
Me.TextBoxPath.Size = New System.Drawing.Size(764, 20)
Me.TextBoxPath.TabIndex = 15
'
'ContextMenuHisFolder
'
Me.ContextMenuHisFolder.Name = "ContextMenuFolderHis"
Me.ContextMenuHisFolder.Size = New System.Drawing.Size(61, 4)
'
'ContextMenuHisFile
'
Me.ContextMenuHisFile.Name = "ContextMenuFileHis"
Me.ContextMenuHisFile.Size = New System.Drawing.Size(61, 4)
'
'ButtonOK
'
Me.ButtonOK.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ButtonOK.DialogResult = System.Windows.Forms.DialogResult.OK
Me.ButtonOK.Location = New System.Drawing.Point(620, 361)
Me.ButtonOK.Name = "ButtonOK"
Me.ButtonOK.Size = New System.Drawing.Size(75, 23)
Me.ButtonOK.TabIndex = 20
Me.ButtonOK.TabStop = False
Me.ButtonOK.Text = "OK"
Me.ButtonOK.UseVisualStyleBackColor = True
'
'ButtonCancel
'
Me.ButtonCancel.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.ButtonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.ButtonCancel.Location = New System.Drawing.Point(701, 361)
Me.ButtonCancel.Name = "ButtonCancel"
Me.ButtonCancel.Size = New System.Drawing.Size(75, 23)
Me.ButtonCancel.TabIndex = 25
Me.ButtonCancel.TabStop = False
Me.ButtonCancel.Text = "Cancel"
Me.ButtonCancel.UseVisualStyleBackColor = True
'
'TextBoxCurrent
'
Me.TextBoxCurrent.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.TextBoxCurrent.Cursor = System.Windows.Forms.Cursors.Hand
Me.TextBoxCurrent.Location = New System.Drawing.Point(12, 14)
Me.TextBoxCurrent.Name = "TextBoxCurrent"
Me.TextBoxCurrent.ReadOnly = True
Me.TextBoxCurrent.Size = New System.Drawing.Size(764, 20)
Me.TextBoxCurrent.TabIndex = 0
Me.TextBoxCurrent.TabStop = False
'
'FB_Dialog
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.CancelButton = Me.ButtonCancel
Me.ClientSize = New System.Drawing.Size(788, 391)
Me.Controls.Add(Me.TextBoxCurrent)
Me.Controls.Add(Me.ButtonCancel)
Me.Controls.Add(Me.ButtonOK)
Me.Controls.Add(Me.TextBoxPath)
Me.Controls.Add(Me.SplitContainer1)
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "FB_Dialog"
Me.ShowIcon = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
Me.Text = "File Browser"
Me.SplitContainer1.Panel1.ResumeLayout(False)
Me.SplitContainer1.Panel1.PerformLayout()
Me.SplitContainer1.Panel2.ResumeLayout(False)
Me.SplitContainer1.Panel2.PerformLayout()
Me.SplitContainer1.ResumeLayout(False)
Me.ContextMenuFile.ResumeLayout(False)
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents SplitContainer1 As System.Windows.Forms.SplitContainer
Friend WithEvents ComboBoxDrive As System.Windows.Forms.ComboBox
Friend WithEvents ListViewFolder As System.Windows.Forms.ListView
Friend WithEvents ListViewFiles As System.Windows.Forms.ListView
Friend WithEvents ColumnHeader1 As System.Windows.Forms.ColumnHeader
Friend WithEvents TextBoxSearchFolder As System.Windows.Forms.TextBox
Friend WithEvents TextBoxSearchFile As System.Windows.Forms.TextBox
Friend WithEvents TextBoxPath As System.Windows.Forms.TextBox
Friend WithEvents ButtonFolderBack As System.Windows.Forms.Button
Friend WithEvents ContextMenuHisFolder As System.Windows.Forms.ContextMenuStrip
Friend WithEvents ContextMenuHisFile As System.Windows.Forms.ContextMenuStrip
Friend WithEvents ButtonHisFolder As System.Windows.Forms.Button
Friend WithEvents ButtonHisFile As System.Windows.Forms.Button
Friend WithEvents ButtonOK As System.Windows.Forms.Button
Friend WithEvents ButtonCancel As System.Windows.Forms.Button
Friend WithEvents ComboBoxExt As System.Windows.Forms.ComboBox
Friend WithEvents TextBoxCurrent As System.Windows.Forms.TextBox
Friend WithEvents ButtonWorkDir As System.Windows.Forms.Button
Friend WithEvents ColumnHeader3 As System.Windows.Forms.ColumnHeader
Friend WithEvents LabelFileAnz As System.Windows.Forms.Label
Friend WithEvents ButtonDesktop As System.Windows.Forms.Button
Friend WithEvents ContextMenuFile As System.Windows.Forms.ContextMenuStrip
Friend WithEvents RenameFileToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
Friend WithEvents DeleteFileToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
Friend WithEvents ButtonNewDir As System.Windows.Forms.Button
Friend WithEvents ButtonAll As System.Windows.Forms.Button
End Class
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ContextMenuFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>329, 17</value>
</metadata>
<metadata name="ContextMenuHisFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ContextMenuHisFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>180, 17</value>
</metadata>
</root>
\ No newline at end of file
This diff is collapsed.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FB_FavDlog
Inherits System.Windows.Forms.Form
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()> _
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
'Wird vom Windows Form-Designer benötigt.
Private components As System.ComponentModel.IContainer
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.TableLayoutPanel1 = New System.Windows.Forms.TableLayoutPanel()
Me.OK_Button = New System.Windows.Forms.Button()
Me.Cancel_Button = New System.Windows.Forms.Button()
Me.ListBox1 = New System.Windows.Forms.ListBox()
Me.Label1 = New System.Windows.Forms.Label()
Me.TableLayoutPanel1.SuspendLayout()
Me.SuspendLayout()
'
'TableLayoutPanel1
'
Me.TableLayoutPanel1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.TableLayoutPanel1.ColumnCount = 2
Me.TableLayoutPanel1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.0!))
Me.TableLayoutPanel1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.0!))
Me.TableLayoutPanel1.Controls.Add(Me.OK_Button, 0, 0)
Me.TableLayoutPanel1.Controls.Add(Me.Cancel_Button, 1, 0)
Me.TableLayoutPanel1.Location = New System.Drawing.Point(277, 155)
Me.TableLayoutPanel1.Name = "TableLayoutPanel1"
Me.TableLayoutPanel1.RowCount = 1
Me.TableLayoutPanel1.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50.0!))
Me.TableLayoutPanel1.Size = New System.Drawing.Size(146, 29)
Me.TableLayoutPanel1.TabIndex = 0
'
'OK_Button
'
Me.OK_Button.Anchor = System.Windows.Forms.AnchorStyles.None
Me.OK_Button.Location = New System.Drawing.Point(3, 3)
Me.OK_Button.Name = "OK_Button"
Me.OK_Button.Size = New System.Drawing.Size(67, 23)
Me.OK_Button.TabIndex = 0
Me.OK_Button.Text = "OK"
'
'Cancel_Button
'
Me.Cancel_Button.Anchor = System.Windows.Forms.AnchorStyles.None
Me.Cancel_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Cancel_Button.Location = New System.Drawing.Point(76, 3)
Me.Cancel_Button.Name = "Cancel_Button"
Me.Cancel_Button.Size = New System.Drawing.Size(67, 23)
Me.Cancel_Button.TabIndex = 1
Me.Cancel_Button.Text = "Cancel"
'
'ListBox1
'
Me.ListBox1.FormattingEnabled = True
Me.ListBox1.Location = New System.Drawing.Point(12, 12)
Me.ListBox1.Name = "ListBox1"
Me.ListBox1.Size = New System.Drawing.Size(411, 134)
Me.ListBox1.TabIndex = 1
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(12, 163)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(119, 13)
Me.Label1.TabIndex = 2
Me.Label1.Text = "Doubleclick Item to Edit"
'
'FB_FavDlog
'
Me.AcceptButton = Me.OK_Button
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.CancelButton = Me.Cancel_Button
Me.ClientSize = New System.Drawing.Size(435, 196)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.ListBox1)
Me.Controls.Add(Me.TableLayoutPanel1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "FB_FavDlog"
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
Me.Text = "Edit Favorites"
Me.TableLayoutPanel1.ResumeLayout(False)
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents TableLayoutPanel1 As System.Windows.Forms.TableLayoutPanel
Friend WithEvents OK_Button As System.Windows.Forms.Button
Friend WithEvents Cancel_Button As System.Windows.Forms.Button
Friend WithEvents ListBox1 As System.Windows.Forms.ListBox
Friend WithEvents Label1 As System.Windows.Forms.Label
End Class
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
Imports System.Windows.Forms
Public Class FB_FavDlog
Private Const NoFavString As String = "<undefined>"
Private Const EmptyText As String = " "
Private Sub FB_FavDlog_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Dim x As Integer
Dim txt As String
For x = 10 To 19
txt = FB_FolderHistory(x)
If txt = EmptyText Then
Me.ListBox1.Items.Add(NoFavString)
Else
Me.ListBox1.Items.Add(txt)
End If
Next
End Sub
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()
End Sub
Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Close()
End Sub
Private Sub ListBox1_MouseDoubleClick(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDoubleClick
Dim i As Integer
Dim txt As String
Dim fb As cFileBrowser
i = Me.ListBox1.SelectedIndex
txt = Me.ListBox1.Items(i).ToString
If txt = NoFavString Then txt = ""
fb = New cFileBrowser("DirBr", True, True)
If fb.OpenDialog(txt) Then
txt = fb.Files(0)
Me.ListBox1.Items.Insert(i, txt)
Me.ListBox1.Items.RemoveAt(i + 1)
End If
End Sub
End Class
Module FB_Global
Public FB_FolderHistory(19) As String
Public FB_Drives() As String
Public FB_Init As Boolean
Public FB_FilHisDir As String
'-----------------------------
Public fbWorkDir As cFileBrowser
Public fbGEN As cFileBrowser
Public fbADV As cFileBrowser
Public fbFileLists As cFileBrowser
Public fbVEH As cFileBrowser
Public fbDRI As cFileBrowser
Public fbMAP As cFileBrowser
Public fbFLD As cFileBrowser
Public fbTRS As cFileBrowser
Public fbMAA As cFileBrowser
Public fbMAC As cFileBrowser
Public fbWUA As cFileBrowser
Public fbWUC As cFileBrowser
Public fbCDW As cFileBrowser
Public fbATC As cFileBrowser
Public fbBAT As cFileBrowser
Public fbEMO As cFileBrowser
Public fbEAN As cFileBrowser
Public fbGET As cFileBrowser
Public fbSTE As cFileBrowser
Public fbEKF As cFileBrowser
Public fbEXS As cFileBrowser
Public fbFZP As cFileBrowser
Public fbFLT As cFileBrowser
Public fbTEM As cFileBrowser
Public fbSTR As cFileBrowser
Public fbENG As cFileBrowser
Public fbWHTC As cFileBrowser
Public fbGBX As cFileBrowser
Public fbACC As cFileBrowser
Public fbAUX As cFileBrowser
End Module
Imports System.Collections
'Imports System.Windows.Forms
'V1.0 10.12.2010
'V1.1 12.01.2011
'V1.2 08.03.2011
'V1.3 17.03.2011
'V1.4 30.03.2011
'V1.5 10.06.2011
'V2.0 23.11.2011
' - Dir-Favorites
'V2.0.1 01.12.2011
' - Fav-Dlog: "Abbrechen" => "Cancel"
' - Fav-Dlog: Statt leeren Items in Fav-Liste "<undefined>"
'**Anwendung
'Dim fbTXT As cFileBrowser
'fbTXT = New cFileBrowser("TXT")
'fbTXT.Extensions = New String() {"txt,log", "csv"}
'...
'fbTXT.Close()
'**Bentigte Globale Variablen (Default):
'Public FB_Drives() As String
'Public FB_Init As Boolean = False
'Public FB_FilHisDir As String
'Public FB_FolderHistory(9) As String
'Public FB_WorkDir As String
Public Enum eExtMode As Integer
ForceExt = 0
MultiExt = 1
SingleExt = 2
End Enum
Public Class cFileBrowser
Private Initialized As Boolean
Private MyID As String
Private MyExt As String()
Private Dlog As FB_Dialog
Private NoExt As Boolean
Private bFolderBrowser As Boolean
Private bLightMode As Boolean
'Neue Instanz - ID definieren, umschalten auf FolderBrowser
Public Sub New(ByVal ID As String, Optional ByVal FolderBrowser As Boolean = False, Optional ByVal LightMode As Boolean = False)
Initialized = False
MyID = ID
NoExt = True
bFolderBrowser = FolderBrowser
bLightMode = LightMode
End Sub
'OpenDialog - ffnen Dialog - bergibt True wenn Dialog mit OK beendet wurde
Public Function OpenDialog(ByVal path As String, Optional ByVal MultiFile As Boolean = False, Optional ByVal Ext As String = "") As Boolean
Return CustomDialog(path, True, False, eExtMode.MultiExt, MultiFile, Ext, "Open")
End Function
'SaveDialog - Speichern Dialog - bergibt True wenn Dialog mit OK beendet wurde
Public Function SaveDialog(ByVal path As String, Optional ByVal ForceExt As Boolean = True, Optional ByVal Ext As String = "") As Boolean
Dim x As eExtMode
If ForceExt Then
x = eExtMode.ForceExt
Else
x = eExtMode.SingleExt
End If
Return CustomDialog(path, False, True, x, False, Ext, "Save As")
End Function
'Dialog ffnen - bergibt True wenn Dialog mit OK beendet wurde
Public Function CustomDialog(ByVal path As String, ByVal FileMustExist As Boolean, ByVal OverwriteCheck As Boolean, ByVal ExtMode As eExtMode, ByVal MultiFile As Boolean, ByVal Ext As String, Optional Title As String = "File Browser") As Boolean
If Not Initialized Then Init()
Return Dlog.Browse(path, FileMustExist, OverwriteCheck, ExtMode, MultiFile, Ext, Title)
End Function
'File-History manuell updaten
Public Sub UpdateHistory(ByVal Path As String)
If Not Initialized Then Init()
Dlog.UpdateHistory(Path)
End Sub
'File / Folder History speichen und Speicher freigeben
Public Sub Close()
If Initialized Then
Dlog.SaveAndClose()
Initialized = False
End If
Dlog = Nothing
End Sub
Private Sub Init()
Dlog = New FB_Dialog(bLightMode)
Dlog.ID = MyID
If Not NoExt Then Dlog.Extensions = MyExt
If bFolderBrowser Then Dlog.SetFolderBrowser()
Initialized = True
End Sub
'Dateiendungen definieren
Public Property Extensions() As String()
Get
Return MyExt
End Get
Set(ByVal value As String())
MyExt = value
NoExt = False
End Set
End Property
'Dateien abfragen
Public ReadOnly Property Files() As String()
Get
If Initialized Then
Return Dlog.Files
Else
Return New String() {""}
End If
End Get
End Property
End Class
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class F_ADVfzp
Inherits System.Windows.Forms.Form
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()> _
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
'Wird vom Windows Form-Designer benötigt.
Private components As System.ComponentModel.IContainer
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.TableLayoutPanel1 = New System.Windows.Forms.TableLayoutPanel
Me.OK_Button = New System.Windows.Forms.Button
Me.Cancel_Button = New System.Windows.Forms.Button
Me.RbUseSFZP = New System.Windows.Forms.RadioButton
Me.RbUseFZP = New System.Windows.Forms.RadioButton
Me.RBAbort = New System.Windows.Forms.RadioButton
Me.LbTimer = New System.Windows.Forms.Label
Me.LbMsg = New System.Windows.Forms.Label
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.TableLayoutPanel1.SuspendLayout()
Me.SuspendLayout()
'
'TableLayoutPanel1
'
Me.TableLayoutPanel1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.TableLayoutPanel1.ColumnCount = 2
Me.TableLayoutPanel1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.0!))
Me.TableLayoutPanel1.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.0!))
Me.TableLayoutPanel1.Controls.Add(Me.OK_Button, 0, 0)
Me.TableLayoutPanel1.Controls.Add(Me.Cancel_Button, 1, 0)
Me.TableLayoutPanel1.Location = New System.Drawing.Point(194, 134)
Me.TableLayoutPanel1.Name = "TableLayoutPanel1"
Me.TableLayoutPanel1.RowCount = 1
Me.TableLayoutPanel1.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50.0!))
Me.TableLayoutPanel1.Size = New System.Drawing.Size(146, 29)
Me.TableLayoutPanel1.TabIndex = 0
'
'OK_Button
'
Me.OK_Button.Anchor = System.Windows.Forms.AnchorStyles.None
Me.OK_Button.Location = New System.Drawing.Point(3, 3)
Me.OK_Button.Name = "OK_Button"
Me.OK_Button.Size = New System.Drawing.Size(67, 23)
Me.OK_Button.TabIndex = 0
Me.OK_Button.Text = "OK"
'
'Cancel_Button
'
Me.Cancel_Button.Anchor = System.Windows.Forms.AnchorStyles.None
Me.Cancel_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Cancel_Button.Location = New System.Drawing.Point(76, 3)
Me.Cancel_Button.Name = "Cancel_Button"
Me.Cancel_Button.Size = New System.Drawing.Size(67, 23)
Me.Cancel_Button.TabIndex = 1
Me.Cancel_Button.Text = "Cancel"
'
'RbUseSFZP
'
Me.RbUseSFZP.AutoSize = True
Me.RbUseSFZP.Checked = True
Me.RbUseSFZP.Location = New System.Drawing.Point(20, 48)
Me.RbUseSFZP.Name = "RbUseSFZP"
Me.RbUseSFZP.Size = New System.Drawing.Size(187, 17)
Me.RbUseSFZP.TabIndex = 1
Me.RbUseSFZP.TabStop = True
Me.RbUseSFZP.Text = "Use the .sfzp file. Sorting disabled."
Me.RbUseSFZP.UseVisualStyleBackColor = True
'
'RbUseFZP
'
Me.RbUseFZP.AutoSize = True
Me.RbUseFZP.Location = New System.Drawing.Point(20, 71)
Me.RbUseFZP.Name = "RbUseFZP"
Me.RbUseFZP.Size = New System.Drawing.Size(317, 17)
Me.RbUseFZP.TabIndex = 2
Me.RbUseFZP.Text = "Use the original .fzp file. The existing .sfzp file will be replaced."
Me.RbUseFZP.UseVisualStyleBackColor = True
'
'RBAbort
'
Me.RBAbort.AutoSize = True
Me.RBAbort.Location = New System.Drawing.Point(20, 94)
Me.RBAbort.Name = "RBAbort"
Me.RBAbort.Size = New System.Drawing.Size(53, 17)
Me.RBAbort.TabIndex = 3
Me.RBAbort.Text = "Abort."
Me.RBAbort.UseVisualStyleBackColor = True
'
'LbTimer
'
Me.LbTimer.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
Me.LbTimer.AutoSize = True
Me.LbTimer.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.LbTimer.Location = New System.Drawing.Point(12, 142)
Me.LbTimer.Name = "LbTimer"
Me.LbTimer.Size = New System.Drawing.Size(74, 13)
Me.LbTimer.TabIndex = 4
Me.LbTimer.Text = "Closing Dialog"
'
'LbMsg
'
Me.LbMsg.AutoSize = True
Me.LbMsg.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.LbMsg.Location = New System.Drawing.Point(12, 19)
Me.LbMsg.Name = "LbMsg"
Me.LbMsg.Size = New System.Drawing.Size(57, 13)
Me.LbMsg.TabIndex = 5
Me.LbMsg.Text = "Message"
'
'Timer1
'
Me.Timer1.Interval = 1000
'
'F_ADVfzp
'
Me.AcceptButton = Me.OK_Button
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.CancelButton = Me.Cancel_Button
Me.ClientSize = New System.Drawing.Size(352, 175)
Me.Controls.Add(Me.LbMsg)
Me.Controls.Add(Me.LbTimer)
Me.Controls.Add(Me.RBAbort)
Me.Controls.Add(Me.RbUseFZP)
Me.Controls.Add(Me.RbUseSFZP)
Me.Controls.Add(Me.TableLayoutPanel1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "F_ADVfzp"
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
Me.Text = "PHEM ADVANCE"
Me.TableLayoutPanel1.ResumeLayout(False)
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents TableLayoutPanel1 As System.Windows.Forms.TableLayoutPanel
Friend WithEvents OK_Button As System.Windows.Forms.Button
Friend WithEvents Cancel_Button As System.Windows.Forms.Button
Friend WithEvents RbUseSFZP As System.Windows.Forms.RadioButton
Friend WithEvents RbUseFZP As System.Windows.Forms.RadioButton
Friend WithEvents RBAbort As System.Windows.Forms.RadioButton
Friend WithEvents LbTimer As System.Windows.Forms.Label
Friend WithEvents LbMsg As System.Windows.Forms.Label
Friend WithEvents Timer1 As System.Windows.Forms.Timer
End Class
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment