Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 3896c64a authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

gui: fix gearbox drawing pic if engine file is invalid

parent 367730d2
Branches
Tags
No related merge requests found
......@@ -226,7 +226,10 @@ Public Class GearboxForm
_changed = False
Try
UpdatePic()
Catch
End Try
End Sub
'Open file
......@@ -327,7 +330,10 @@ Public Class GearboxForm
Activate()
_changed = False
Try
UpdatePic()
Catch
End Try
End Sub
Private Function CreateListviewItem(gear As String, ratio As Double, getrMap As String,
......@@ -502,7 +508,10 @@ Public Class GearboxForm
Private Sub LvGears_SelectedIndexChanged(sender As Object, e As EventArgs) _
Handles LvGears.SelectedIndexChanged
Try
UpdatePic()
Catch
End Try
End Sub
#Region "Gears"
......@@ -571,8 +580,11 @@ Public Class GearboxForm
LvGears.SelectedItems(0).SubItems(GearboxTbl.LossMapEfficiency).Text = _gearDialog.TbMapPath.Text
LvGears.SelectedItems(0).SubItems(GearboxTbl.ShiftPolygons).Text = _gearDialog.TbShiftPolyFile.Text
LvGears.SelectedItems(0).SubItems(GearboxTbl.MaxTorque).Text = _gearDialog.TbMaxTorque.Text
Try
UpdatePic()
Catch
End Try
Change()
Else
......@@ -638,7 +650,10 @@ Public Class GearboxForm
End If
LvGears.Focus()
Try
UpdatePic()
Catch
End Try
If Not noChange Then Change()
End Sub
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment