Skip to content

Commit

Permalink
Mise à jour
Browse files Browse the repository at this point in the history
Modification de l'UI. (travail pardépartements)
Padding MAJIC pour les exports
  • Loading branch information
christophev-git committed Oct 30, 2023
1 parent 837643b commit fa6f1a4
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 110 deletions.
36 changes: 2 additions & 34 deletions codeurbanmajic/ApplicationEvents.vb
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,7 @@ Namespace My
Partial Friend Class MyApplication
Private Sub MyApplication_StartUp(sender As Object, e As StartupEventArgs) Handles Me.Startup
If My.Settings.basedep = "" Then
MsgBox("désignez le fichier ban du département", MsgBoxStyle.Information
)
Dim f As New OpenFileDialog()
If f.ShowDialog = DialogResult.OK Then
fichier_ban_dep = f.FileName

My.Settings.basedep = fichier_ban_dep
Else
MsgBox("impossible de travailler", MsgBoxStyle.Critical)

End If
Else
fichier_ban_dep = My.Settings.basedep
End If
Expand All @@ -50,6 +40,7 @@ Namespace My
fichier_traduction = f.FileName

My.Settings.traducteur = fichier_traduction
W_traducteur = New traducteur(fichier_traduction)
Else
MsgBox("impossible de travailler", MsgBoxStyle.Critical)

Expand All @@ -68,7 +59,7 @@ Namespace My
Dim f As New OpenFileDialog()
If f.ShowDialog = DialogResult.OK Then
fich_fant_nat = f.FileName

My.Settings.fantoir = f.FileName

Else
MsgBox("impossible de travailler", MsgBoxStyle.Critical)
Expand All @@ -81,30 +72,7 @@ Namespace My
My.Settings.Save()


Dim codedep As String = InputBox("departement ?")
Dim sr As New System.IO.StreamReader(fich_fant_nat)
Dim sw As New System.IO.StreamWriter(fich_fant_nat & "_" & codedep)

Dim l As String

Do While Not sr.EndOfStream
l = sr.ReadLine
If l.Length = 88 And l.Substring(0, 2) = codedep Then
sw.WriteLine(l)

End If
Loop
sr.Close()
sw.Close()
fichier_fantoir = fich_fant_nat & "_" & codedep
If codedep <> "" And codedep.Length = 2 Then

My.Settings.Save()
listeCommune = New Liste_ComList(fichier_fantoir, Form1.DataGridView1, codedep
)
Else
Exit Sub
End If


End Sub
Expand Down
144 changes: 84 additions & 60 deletions codeurbanmajic/Form1.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions codeurbanmajic/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@
<metadata name="OpenFileDialog3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>773, 17</value>
</metadata>
<metadata name="FolderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1028, 17</value>
</metadata>
<metadata name="MenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1338, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>71</value>
</metadata>
Expand Down
Loading

0 comments on commit fa6f1a4

Please sign in to comment.