-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmAbout.vb
More file actions
47 lines (39 loc) · 1.91 KB
/
Copy pathfrmAbout.vb
File metadata and controls
47 lines (39 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Imports MapWinUtility
Public Class frmAbout
Private Sub frmAbout_Load(sender As Object, e As System.EventArgs) Handles Me.Load
lblVersion.Text = "PeaKFQ Version " & My.Application.Info.Version.Major & "." & My.Application.Info.Version.Minor & "." & My.Application.Info.Version.Revision
End Sub
Private Sub OpenLinkURL(ByVal aLink As Windows.Forms.LinkLabel)
Try
Diagnostics.Process.Start(aLink.Text.Substring(aLink.LinkArea.Start, aLink.LinkArea.Length))
Catch ex As System.Exception
'g_MapWin.ShowErrorDialog(ex)
End Try
End Sub
Private Sub lblFAQLink_LinkClicked(sender As Object, e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lblFAQLink.LinkClicked
OpenLinkURL(lblFAQLink)
End Sub
Private Sub txtTestPath_Click(sender As Object, e As System.EventArgs) Handles txtTestPath.Click
With cdlSave
.Title = "Open the directory containing PeakFQ test data"
.FileName = "(PeakFQ Data)"
If .ShowDialog() <> Windows.Forms.DialogResult.Cancel Then
txtTestPath.Text = PathNameOnly(.FileName)
End If
End With
End Sub
Private Sub txtOutputPath_Click(sender As Object, e As System.EventArgs) Handles txtOutputPath.Click
With cdlSave
.Title = "Specify the directory for PeakFQ test results"
.FileName = "(PeakFQ Results)"
If .ShowDialog() <> Windows.Forms.DialogResult.Cancel Then
txtOutputPath.Text = PathNameOnly(.FileName)
End If
End With
End Sub
Private Sub cmdTestAll_Click(sender As Object, e As System.EventArgs) Handles cmdTestAll.Click
If txtTestPath.Text.Length > 0 And txtOutputPath.Text.Length > 0 Then
frmPeakfq.RunTests(txtTestPath.Text, txtOutputPath.Text)
End If
End Sub
End Class