Skip to content

Commit

Permalink
Update ASCOM driver
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocipriani01 committed Nov 25, 2021
1 parent 5d6149e commit e956a6c
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 39 deletions.
3 changes: 3 additions & 0 deletions ThunderFocusASCOM/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin/
obj/
.vs/
Binary file removed ThunderFocusASCOM/.vs/ThunderFocusASCOM/v16/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion ThunderFocusASCOM/Driver.vb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Public Class Focuser
Public Sub SetupDialog() Implements IFocuserV3.SetupDialog
Application.EnableVisualStyles()
If IsConnected Then
MessageBox.Show("Ponte in esecuzione, utilizzare il pannello di controllo per la configurazione.", "ThunderFocus", MessageBoxButtons.OK, MessageBoxIcon.Information)
MessageBox.Show("ASCOM bridge running, use the control panel to configure the focuser.", "ThunderFocus", MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
Using F As SetupDialogForm = New SetupDialogForm()
Dim result As DialogResult = F.ShowDialog()
Expand Down
52 changes: 27 additions & 25 deletions ThunderFocusASCOM/SetupDialogForm.Designer.vb

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

8 changes: 2 additions & 6 deletions ThunderFocusASCOM/SetupDialogForm.vb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ Public Class SetupDialogForm
Private Sub ShowAscomWebPage(sender As Object, e As EventArgs) Handles PictureBox1.DoubleClick, PictureBox1.Click
Try
Process.Start("https://ascom-standards.org/")
Catch noBrowser As ComponentModel.Win32Exception
If noBrowser.ErrorCode = -2147467259 Then
MessageBox.Show(Me, noBrowser.Message, "ThunderFocus", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
Catch other As Exception
MessageBox.Show(Me, other.Message, "ThunderFocus", MessageBoxButtons.OK, MessageBoxIcon.Error)
MessageBox.Show(Me, "Could not open the browser.", "ThunderFocus", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub

Expand All @@ -35,7 +31,7 @@ Public Class SetupDialogForm
Dim dir As String = Environment.GetEnvironmentVariable("thunderfok")
Process.Start(dir + "\bin\javaw.exe", """-jar"" """ + dir + "\ThunderFocus.jar""")
Catch ex As Exception
MessageBox.Show(Me, "Errore di avvio!", "ThunderFocus", MessageBoxButtons.OK, MessageBoxIcon.Error)
MessageBox.Show(Me, "Could not start ThunderFocus!", "ThunderFocus", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
End Class
3 changes: 0 additions & 3 deletions ThunderFocusASCOM/ThunderFocusASCOM.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@
</ItemGroup>
<ItemGroup>
<Content Include="ASCOM.png" />
<Content Include="ReadMe.htm">
<SubType>Designer</SubType>
</Content>
<None Include="Resources\icon.ico" />
<None Include="Resources\ThunderFocus.png" />
</ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions ThunderFocusASCOM/bin/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions ThunderFocusASCOM/obj/.gitignore

This file was deleted.

0 comments on commit e956a6c

Please sign in to comment.