Zooflow: integrate SQLEditor
This commit is contained in:
@@ -216,28 +216,32 @@ Public Class frmAdmin_ClipboardWatcher
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub TextEdit7_ButtonClick(sender As Object, e As DevExpress.XtraEditors.Controls.ButtonPressedEventArgs) Handles TextEdit7.ButtonClick
|
||||
Private Sub TextEdit7_ButtonClick(sender As Object, e As ButtonPressedEventArgs) Handles TextEdit7.ButtonClick
|
||||
Dim oTextEdit As TextEdit = sender
|
||||
|
||||
If e.Button.Tag = BUTTON_SEARCH_SQL Then
|
||||
Dim oForm As New frmSQLEditor_old(My.LogConfig, My.DatabaseECM) With {.SQLString = oTextEdit.EditValue}
|
||||
Dim oForm As New frmSQLEditor(My.LogConfig, My.DatabaseECM) With {
|
||||
.SQLCommand = oTextEdit.EditValue
|
||||
}
|
||||
Dim oResult = oForm.ShowDialog()
|
||||
|
||||
If oResult = DialogResult.OK Then
|
||||
oTextEdit.EditValue = oForm.SQLString
|
||||
oTextEdit.EditValue = oForm.SQLCommand
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub TextEdit8_ButtonClick(sender As Object, e As DevExpress.XtraEditors.Controls.ButtonPressedEventArgs) Handles TextEdit8.ButtonClick
|
||||
Private Sub TextEdit8_ButtonClick(sender As Object, e As ButtonPressedEventArgs) Handles TextEdit8.ButtonClick
|
||||
Dim oTextEdit As TextEdit = sender
|
||||
|
||||
If e.Button.Tag = BUTTON_COUNT_SQL Then
|
||||
Dim oForm As New frmSQLEditor_old(My.LogConfig, My.DatabaseECM) With {.SQLString = oTextEdit.EditValue}
|
||||
Dim oForm As New frmSQLEditor(My.LogConfig, My.DatabaseECM) With {
|
||||
.SQLCommand = oTextEdit.EditValue
|
||||
}
|
||||
Dim oResult = oForm.ShowDialog()
|
||||
|
||||
If oResult = DialogResult.OK Then
|
||||
oTextEdit.EditValue = oForm.SQLString
|
||||
oTextEdit.EditValue = oForm.SQLCommand
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user