Skip to content

Commit bfd11ea

Browse files
tduguidtduguid
authored andcommitted
Fixed buttons for snipping tool and PSR. Fixed time format table fill.
1 parent b93f453 commit bfd11ea

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

VB/App_Data/ScriptHelp.sdf

0 Bytes
Binary file not shown.

VB/Scripts/Data.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Namespace Scripts
9090
Dim sql As String = Convert.ToString((Convert.ToString("SELECT * FROM ") & tableName) + " ORDER BY ") & columnName
9191

9292
Using da = New SqlCeDataAdapter(sql, Connection())
93-
da.Fill(DateFormatTable)
93+
da.Fill(TimeFormatTable)
9494
End Using
9595

9696
TimeFormatTable.DefaultView.Sort = columnName & Convert.ToString(" asc")

VB/Scripts/Ribbon.vb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ Namespace Scripts
397397
Case "btnFormatDate", "btnTableAlias", "btnFormatTime"
398398
AppVariables.TableName = Control.Tag
399399
OpenTableDataPane()
400+
Case "btnSnippingTool"
401+
OpenSnippingTool()
402+
Case "btnProblemStepRecorder"
403+
OpenProblemStepRecorder()
400404
End Select
401405

402406
Catch ex As Exception
@@ -1203,6 +1207,30 @@ Namespace Scripts
12031207
End Try
12041208
End Function
12051209

1210+
Public Sub OpenSnippingTool()
1211+
Dim filePath As String
1212+
Try
1213+
If System.Environment.Is64BitOperatingSystem Then
1214+
filePath = "C:\Windows\sysnative\SnippingTool.exe"
1215+
Else
1216+
filePath = "C:\Windows\system32\SnippingTool.exe"
1217+
End If
1218+
1219+
System.Diagnostics.Process.Start(filePath)
1220+
Catch ex As Exception
1221+
ErrorHandler.DisplayMessage(ex)
1222+
End Try
1223+
End Sub
1224+
1225+
Public Sub OpenProblemStepRecorder()
1226+
Dim filePath As String = "C:\Windows\System32\psr.exe"
1227+
Try
1228+
System.Diagnostics.Process.Start(filePath)
1229+
Catch ex As Exception
1230+
ErrorHandler.DisplayMessage(ex)
1231+
End Try
1232+
End Sub
1233+
12061234
#End Region
12071235

12081236
End Class

0 commit comments

Comments
 (0)