Ok voici ma région:
#Region " Windows Form Designer generated code "
'######################################################################################
'########################### ##############################
'########################### DECLARATION DES ATTRIBUTS ##############################
'########################### ##############################
'######################################################################################
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~ Attributs Publiques ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public CurrentProj As Project = Nothing
Public ElectS As New Hashtable
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~ Attributs Privés ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Private LastRelease As Boolean = False
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~ Variables locales ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim SchemNewWatcher As New System.IO.FileSystemWatcher
Dim SchemModifWatcher As New System.IO.FileSystemWatcher
Dim ResultNewWatcher As New System.IO.FileSystemWatcher
Dim ResultModifWatcher As New System.IO.FileSystemWatcher
Dim pop As New popup
'######################################################################################
'################# #######################
'################# DECLARATION ET IMPLEMENTATION DES METHODES #######################
'################# #######################
'######################################################################################
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~ Constructeur de la fenêtre ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Sub New()
MyBase.New()
Dim e As Engine
Dim c As Config
e = e.getInstance()
c = c.getInstance()
Application.EnableVisualStyles()
'This call is required by the Windows Form Designer.
InitializeComponent()
'initialisation composants visuels
'init du TreeView
TreeView.MultiSelect = True
TreeView.ContextMenuStrip = Me.ContextMenuStrip
TreeView.ImageList = Me.ImageList1
Me.ContextMenuStrip.DropShadowEnabled = True
'init du context menu
Dim icoDir As String
Dim image As Image
icoDir = System.Environment.GetEnvironmentVariable("ROOTDIR" ) & "\SmartElectre\System\Bitmaps\"
image = New System.Drawing.Bitmap(icoDir & "Check Out.ico" )
Me.ContextMenuStrip.Items.Add(c.ReadLang("OpCO", 0), image)
image = New System.Drawing.Bitmap(icoDir & "Check In.ico" )
Me.ContextMenuStrip.Items.Add(c.ReadLang("OpCI", 0), image)
image = New System.Drawing.Bitmap(icoDir & "ReleaseB.ico" )
Me.ContextMenuStrip.Items.Add(c.ReadLang("OpR", 0), image)
image = New System.Drawing.Bitmap(icoDir & "New Release.ico" )
Me.ContextMenuStrip.Items.Add(c.ReadLang("OpNR", 0), image)
End Sub
' Appel des éléments de la fenêtre
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
' Création des composants de la fenêtre (arbre, noeuds, menu click-droit...)
Private components As System.ComponentModel.IContainer
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
Friend WithEvents ImageList2 As System.Windows.Forms.ImageList
Friend Shadows WithEvents ContextMenuStrip As System.Windows.Forms.ContextMenuStrip
Friend WithEvents ProgBar As System.Windows.Forms.ProgressBar
Friend WithEvents TreeView As datTreeView
Friend WithEvents SchemList As System.Windows.Forms.ListView
Friend WithEvents ColumnHeader1 As System.Windows.Forms.ColumnHeader
Friend WithEvents ColumnHeader2 As System.Windows.Forms.ColumnHeader
Friend WithEvents ResultList As System.Windows.Forms.ListView
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents Timer1 As System.Windows.Forms.Timer
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(SmartElectre))
Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
Me.Button1 = New System.Windows.Forms.Button
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.StatusBar1 = New System.Windows.Forms.StatusBar
Me.ImageList2 = New System.Windows.Forms.ImageList(Me.components)
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.ContextMenuStrip = New System.Windows.Forms.ContextMenuStrip(Me.components)
Me.ProgBar = New System.Windows.Forms.ProgressBar
Me.TreeView = New datTreeView(Me.components)
Me.SchemList = New System.Windows.Forms.ListView
Me.ColumnHeader1 = New System.Windows.Forms.ColumnHeader
Me.ColumnHeader2 = New System.Windows.Forms.ColumnHeader
Me.ResultList = New System.Windows.Forms.ListView
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.Button2 = New System.Windows.Forms.Button
Me.Button3 = New System.Windows.Forms.Button
Me.GroupBox1.SuspendLayout()
Me.SuspendLayout()
'
'ImageList1
'
Me.ImageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit
Me.ImageList1.ImageSize = New System.Drawing.Size(16, 16)
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
'
'Button1
'
Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.Button1.Location = New System.Drawing.Point(481, 108)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(104, 29)
Me.Button1.TabIndex = 1
Me.Button1.Text = "Refresh"
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(408, 32)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(248, 20)
Me.TextBox1.TabIndex = 3
Me.TextBox1.Text = "Welcome To SmartElectre"
'
'StatusBar1
'
Me.StatusBar1.Location = New System.Drawing.Point(0, 614)
Me.StatusBar1.Name = "StatusBar1"
Me.StatusBar1.Size = New System.Drawing.Size(855, 32)
Me.StatusBar1.TabIndex = 5
Me.StatusBar1.Text = "StatusBar1"
'
'ImageList2
'
Me.ImageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit
Me.ImageList2.ImageSize = New System.Drawing.Size(16, 16)
Me.ImageList2.TransparentColor = System.Drawing.Color.Transparent
'
'Timer1
'
Me.Timer1.Enabled = True
Me.Timer1.Interval = 60000
'
'ContextMenuStrip
'
Me.ContextMenuStrip.Name = "ContextMenuStrip"
Me.ContextMenuStrip.Size = New System.Drawing.Size(61, 4)
'
'ProgBar
'
Me.ProgBar.Location = New System.Drawing.Point(408, 66)
Me.ProgBar.Name = "ProgBar"
Me.ProgBar.Size = New System.Drawing.Size(247, 19)
Me.ProgBar.TabIndex = 7
'
'TreeView
'
Me.TreeView.Location = New System.Drawing.Point(5, 5)
Me.TreeView.MultiSelect = True
Me.TreeView.Name = "TreeView"
Me.TreeView.Size = New System.Drawing.Size(370, 605)
Me.TreeView.TabIndex = 8
'
'SchemList
'
Me.SchemList.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnHeader1, Me.ColumnHeader2})
Me.SchemList.Location = New System.Drawing.Point(6, 19)
Me.SchemList.Name = "SchemList"
Me.SchemList.Size = New System.Drawing.Size(210, 103)
Me.SchemList.TabIndex = 9
Me.SchemList.UseCompatibleStateImageBehavior = False
Me.SchemList.View = System.Windows.Forms.View.List
'
'ColumnHeader1
'
Me.ColumnHeader1.Text = "Folio"
'
'ColumnHeader2
'
Me.ColumnHeader2.Text = "Sub Product"
'
'ResultList
'
Me.ResultList.Location = New System.Drawing.Point(245, 19)
Me.ResultList.Name = "ResultList"
Me.ResultList.Size = New System.Drawing.Size(217, 102)
Me.ResultList.TabIndex = 10
Me.ResultList.UseCompatibleStateImageBehavior = False
Me.ResultList.View = System.Windows.Forms.View.List
'
'GroupBox1
'
Me.GroupBox1.Controls.Add(Me.Label2)
Me.GroupBox1.Controls.Add(Me.Label1)
Me.GroupBox1.Controls.Add(Me.ResultList)
Me.GroupBox1.Controls.Add(Me.SchemList)
Me.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.GroupBox1.Location = New System.Drawing.Point(387, 470)
Me.GroupBox1.Name = "GroupBox1"
Me.GroupBox1.Size = New System.Drawing.Size(468, 144)
Me.GroupBox1.TabIndex = 11
Me.GroupBox1.TabStop = False
Me.GroupBox1.Text = "Modified Files"
'
'Label2
'
Me.Label2.AutoSize = True
Me.Label2.Location = New System.Drawing.Point(242, 124)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(72, 13)
Me.Label2.TabIndex = 12
Me.Label2.Text = "Sous Produits"
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(3, 124)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(34, 13)
Me.Label1.TabIndex = 11
Me.Label1.Text = "Folios"
'
'Button2
'
Me.Button2.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.Button2.Location = New System.Drawing.Point(481, 178)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(103, 32)
Me.Button2.TabIndex = 12
Me.Button2.Text = "Save"
Me.Button2.UseVisualStyleBackColor = True
'
'Button3
'
Me.Button3.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.Button3.Location = New System.Drawing.Point(481, 246)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(103, 33)
Me.Button3.TabIndex = 13
Me.Button3.Text = "Save As"
Me.Button3.UseVisualStyleBackColor = True
'
'SmartElectre
'
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit
Me.AutoScroll = True
Me.ClientSize = New System.Drawing.Size(865, 643)
Me.Controls.Add(Me.Button3)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.GroupBox1)
Me.Controls.Add(Me.TreeView)
Me.Controls.Add(Me.ProgBar)
Me.Controls.Add(Me.StatusBar1)
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.Button1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
Me.Icon = CType(resources.GetObject("$this.Icon" ), System.Drawing.Icon)
Me.KeyPreview = True
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "SmartElectre"
Me.ShowInTaskbar = False
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.TopMost = True
Me.GroupBox1.ResumeLayout(False)
Me.GroupBox1.PerformLayout()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
#End Region
Si jamais vous avez besoin d'autres bouts de code faites-moi en part.