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

Skip to content
Snippets Groups Projects
Commit c634bd57 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

Batteryfile-Textbox will be filled after Dialog is closed.

parent 6467074d
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,11 @@ Public Class BatteryForm
Private _contextMenuFiles As String()
Public ReadOnly Property BatteryFile As String
Get
Return _batteryFile
End Get
End Property
'Before closing Editor: Check if file was changed and ask to save.
......@@ -392,11 +396,15 @@ Public Class BatteryForm
'Save and close
Private Sub ButOK_Click(sender As Object, e As EventArgs) Handles ButOK.Click
If SaveOrSaveAs(False) Then Close()
If SaveOrSaveAs(False) Then
DialogResult = DialogResult.OK
Close()
End If
End Sub
'Close without saving (see FormClosing Event)
Private Sub ButCancel_Click(sender As Object, e As EventArgs) Handles ButCancel.Click
DialogResult = DialogResult.Cancel
Close()
End Sub
......
......@@ -83,13 +83,9 @@ Public Class REESSPackDialog
End If
End If
If Not BatteryForm.Visible Then
BatteryForm.Show()
Else
If BatteryForm.WindowState = FormWindowState.Minimized Then BatteryForm.WindowState = FormWindowState.Normal
BatteryForm.BringToFront()
End If
if BatteryForm.ShowDialog() = DialogResult.OK then
tbBattery.Text = BatteryForm.BatteryFile
end if
If Not Trim(f) = "" Then
Try
BatteryForm.OpenBatteryFile(f)
......
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