Update Class1.vb

Bug fix
Merge branch 'master' of https://github.com/DanWBR/dwsim3