-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditForm.vb
More file actions
38 lines (33 loc) · 1.35 KB
/
EditForm.vb
File metadata and controls
38 lines (33 loc) · 1.35 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
' Developer Express Code Central Example:
' How to implement CRUD operations using XtraGrid and XPInstantFeedbackSource
'
' This example demonstrates how to implement the Create, Update and Delete
' operations using XPInstantFeedbackSource.
' This example works with the standard
' SQL Northwind database.
'
' You can find sample updates and versions for different programming languages here:
' http://www.devexpress.com/example=E4505
Imports System
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports DevExpress.XtraEditors
Namespace XPInstantFeedback
Public Partial Class EditForm
Inherits XtraForm
Public Sub New(ByVal customer As Customers)
InitializeComponent()
textEdit4.DataBindings.Add("EditValue", customer, "CompanyName")
textEdit3.DataBindings.Add("EditValue", customer, "ContactName")
textEdit2.DataBindings.Add("EditValue", customer, "Address")
textEdit1.DataBindings.Add("EditValue", customer, "Country")
End Sub
Private Sub simpleButton1_Click(ByVal sender As Object, ByVal e As EventArgs)
DialogResult = DialogResult.OK
End Sub
Private Sub simpleButton2_Click(ByVal sender As Object, ByVal e As EventArgs)
DialogResult = DialogResult.Cancel
End Sub
End Class
End Namespace