This sample page shows the output of the code generation engines for binding a business object to form control properties using manual assignment. To initialize the data source (business object) properties to the form or usercontrol call the InitializeDataSource method with a business object instance. The form designer generation engine created a Save method to deserializes a business object from the form. The class has a property to access the datasource named EmployeesRowData. The generated class is based on the northwind employee table. In this sample all datasource properties are assigned to a TextBox or DateTimePicker. |
' <autogenerated> ' This code was generated by form.suite4.net. ' ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </autogenerated> '------------------------------------------------------------------------------ Option Strict Off Option Explicit On Imports System Namespace suite4.net Public Class ScreenShots Inherits System.Web.UI.UserControl Private Constant COLOR As String = "#ffffff" Private Constant BACK_COLOR_ON As String = "#ffffff" Private Constant BACK_COLOR_OFF As String = "#ffffff" Private Constant BORDER_STYLE_ON As String = "solid" Private Constant BORDER_STYLE_OFF As String = "none" Private Constant BORDER_COLOR_OFF As String = "#ffffff" Private Constant BORDER_COLOR_ON As String = "#000000" Private Constant BORDER_WIDTH As String = "1px" Private Constant PADDING_WIDTH As String = "2px" Protected TableMain As System.Web.UI.WebControls.Table Protected txtEmployeeID As System.Web.UI.WebControls.TextBox Protected lblEmployeeID As System.Web.UI.WebControls.Label Protected tabTabControl1_Table As System.Web.UI.HtmlControls.HtmlTable Protected tabTabControl1_TableRow As System.Web.UI.HtmlControls.HtmlTableRow Protected Name_Address_Content As System.Web.UI.HtmlControls.HtmlTable Protected txtTitleOfCourtesy As System.Web.UI.WebControls.TextBox Protected lblTitleOfCourtesy As System.Web.UI.WebControls.Label Protected txtTitle As System.Web.UI.WebControls.TextBox Protected lblTitle As System.Web.UI.WebControls.Label Protected txtCountry As System.Web.UI.WebControls.TextBox Protected lblCountry As System.Web.UI.WebControls.Label Protected txtRegion As System.Web.UI.WebControls.TextBox Protected lblRegion As System.Web.UI.WebControls.Label Protected txtPostalCode As System.Web.UI.WebControls.TextBox Protected lblPostalCode As System.Web.UI.WebControls.Label Protected txtCity As System.Web.UI.WebControls.TextBox Protected lblCity As System.Web.UI.WebControls.Label Protected txtStreet As System.Web.UI.WebControls.TextBox Protected lblStreet As System.Web.UI.WebControls.Label Protected Address As System.Web.UI.HtmlControls.HtmlGenericControl Protected txtFirstName As System.Web.UI.WebControls.TextBox Protected lblFirstName As System.Web.UI.WebControls.Label Protected txtLastName As System.Web.UI.WebControls.TextBox Protected lblLastName As System.Web.UI.WebControls.Label Protected Name_Address_Header As System.Web.UI.HtmlControls.HtmlTableCell Protected Communication_Content As System.Web.UI.HtmlControls.HtmlTable Protected txtExtension As System.Web.UI.WebControls.TextBox Protected txtHomeEmail As System.Web.UI.WebControls.TextBox Protected txtHomePhone_ As System.Web.UI.WebControls.TextBox Protected lblpriv_Email As System.Web.UI.WebControls.Label Protected lblpriv_Phone_ As System.Web.UI.WebControls.Label Protected txtWorkEmail As System.Web.UI.WebControls.TextBox Protected txtWorkFax_ As System.Web.UI.WebControls.TextBox Protected lblWorkEmail As System.Web.UI.WebControls.Label Protected lblWorkFax_ As System.Web.UI.WebControls.Label Protected txtWorkPhone_ As System.Web.UI.WebControls.TextBox Protected lblWorkPhone_ As System.Web.UI.WebControls.Label Protected lblExt_ As System.Web.UI.WebControls.Label Protected Communication_Header As System.Web.UI.HtmlControls.HtmlTableCell Protected Security_Content As System.Web.UI.HtmlControls.HtmlTable Protected txtNotes As System.Web.UI.WebControls.TextBox Protected txtReportsTo As System.Web.UI.WebControls.TextBox Protected lblNotes As System.Web.UI.WebControls.Label Protected lblReportsTo As System.Web.UI.WebControls.Label Protected lblHireDate As System.Web.UI.WebControls.Label Protected lblBirthDate As System.Web.UI.WebControls.Label Protected Security_Header As System.Web.UI.HtmlControls.HtmlTableCell Protected Picture_Content As System.Web.UI.HtmlControls.HtmlTable Protected picPictureBox1 As System.Web.UI.WebControls.Image Protected txtPhotoPath As System.Web.UI.WebControls.TextBox Protected lblPhotoPath As System.Web.UI.WebControls.Label Protected Picture_Header As System.Web.UI.HtmlControls.HtmlTableCell Protected tabTabControl1_HeaderFill As System.Web.UI.HtmlControls.HtmlTableCell Protected tabTabControl1 As System.Web.UI.HtmlControls.HtmlGenericControl Protected Name_Address_Button As System.Web.UI.HtmlControls.HtmlAnchor Protected Communication_Button As System.Web.UI.HtmlControls.HtmlAnchor Protected Security_Button As System.Web.UI.HtmlControls.HtmlAnchor Protected Picture_Button As System.Web.UI.HtmlControls.HtmlAnchor Protected designerPlaceholderDeclaration As System.Object Protected _dataEmployeesRow As suite4.net.Northwind.EmployeesRow Public Overridable Property DataEmployeesRow As suite4.net.Northwind.EmployeesRow Get Return Me._dataEmployeesRow End Get Set Me._dataEmployeesRow = value Me.InitializeDataSource(Me._dataEmployeesRow) End Set End Property 'end Public Overridable Property DataEmployeesRow As suite4.net.Northwind.EmployeesRow Private Sub InitializeComponent() AddHandler Load, AddressOf Me.Page_Load End Sub ' end Private Sub InitializeComponent() Protected Overrides Sub OnInit(ByVal e As System.EventArgs) Me.InitializeComponent() MyBase.OnInit(e) End Sub ' end Protected Overrides Sub OnInit(ByVal e As System.EventArgs) Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) If (Not(Me.txtEmployeeID) Is Nothing) Then Me.InitializeTabControl() End If 'end If (Not(Me.txtEmployeeID) Is Nothing) Then If Me._IsInitialized Then Return End If 'end If Me._IsInitialized Then Me._IsInitialized = true If (Not(Me.txtEmployeeID) Is Nothing) Then Return End If 'end If (Not(Me.txtEmployeeID) Is Nothing) Then End Sub ' end Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Private Sub InitializeTabControl() Me.Name_Address_Header.InnerHtml = " Name/Address " Me.Name_Address_Header.Attributes.Add("style", Me.GetHeaderStyle(true, false)) Me.Communication_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Security_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Picture_Header.Attributes.Add("style", Me.GetHeaderStyle(false, true)) ' 'Name_Address_Button ' If (Me.Name_Address_Button Is Nothing) Then Me.Name_Address_Button = New System.Web.UI.HtmlControls.HtmlAnchor () End If 'end If (Me.Name_Address_Button Is Nothing) Then Me.Name_Address_Button.ID = "Name_Address_Button" Me.Name_Address_Button.InnerHtml = " Name/Address " Me.Name_Address_Button.Visible = false Me.Name_Address_Button.Attributes.Add("style", Me.GetCommandStyle) ' 'Communication_Button ' If (Me.Communication_Button Is Nothing) Then Me.Communication_Button = New System.Web.UI.HtmlControls.HtmlAnchor () End If 'end If (Me.Communication_Button Is Nothing) Then Me.Communication_Button.ID = "Communication_Button" Me.Communication_Button.InnerHtml = " Communication " Me.Communication_Button.Attributes.Add("style", Me.GetCommandStyle) ' 'Security_Button ' If (Me.Security_Button Is Nothing) Then Me.Security_Button = New System.Web.UI.HtmlControls.HtmlAnchor () End If 'end If (Me.Security_Button Is Nothing) Then Me.Security_Button.ID = "Security_Button" Me.Security_Button.InnerHtml = " Security " Me.Security_Button.Attributes.Add("style", Me.GetCommandStyle) ' 'Picture_Button ' If (Me.Picture_Button Is Nothing) Then Me.Picture_Button = New System.Web.UI.HtmlControls.HtmlAnchor () End If 'end If (Me.Picture_Button Is Nothing) Then Me.Picture_Button.ID = "Picture_Button" Me.Picture_Button.InnerHtml = " Picture " Me.Picture_Button.Attributes.Add("style", Me.GetCommandStyle) ' 'create event listener to HtmlAnchor ' AddHandler Me.Name_Address_Button.ServerClick, AddressOf Me.OnName_Address_ButtonClick AddHandler Me.Communication_Button.ServerClick, AddressOf Me.OnCommunication_ButtonClick AddHandler Me.Security_Button.ServerClick, AddressOf Me.OnSecurity_ButtonClick AddHandler Me.Picture_Button.ServerClick, AddressOf Me.OnPicture_ButtonClick ' 'add HtmlAnchor to header ' Me.Name_Address_Header.Controls.Add(Me.Name_Address_Button) Me.Communication_Header.Controls.Add(Me.Communication_Button) Me.Security_Header.Controls.Add(Me.Security_Button) Me.Picture_Header.Controls.Add(Me.Picture_Button) ' 'hide TabPage Content and set style ' Me.Name_Address_Content.Visible = true Me.Communication_Content.Visible = false Me.Security_Content.Visible = false Me.Picture_Content.Visible = false Me.Name_Address_Content.Attributes.Add("style", Me.GetContentStyle(true)) Me.Communication_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Security_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Picture_Content.Attributes.Add("style", Me.GetContentStyle(false)) End Sub ' end Private Sub InitializeTabControl() ' 'set visibility and style for Name_Address ' Private Sub OnName_Address_ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Name_Address_Header.Controls.Clear() Me.Name_Address_Header.InnerHtml = " Name/Address " Me.Name_Address_Header.Attributes.Add("style", Me.GetHeaderStyle(true, false)) Me.Name_Address_Button.Visible = false ' 'set visibility and style for Communication ' Me.Communication_Header.Controls.Clear() Me.Communication_Header.InnerHtml = "" Me.Communication_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Communication_Button.InnerHtml = " Communication " Me.Communication_Button.Visible = true ' 'set visibility and style for Security ' Me.Security_Header.Controls.Clear() Me.Security_Header.InnerHtml = "" Me.Security_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Security_Button.InnerHtml = " Security " Me.Security_Button.Visible = true ' 'set visibility and style for Picture ' Me.Picture_Header.Controls.Clear() Me.Picture_Header.InnerHtml = "" Me.Picture_Header.Attributes.Add("style", Me.GetHeaderStyle(false, true)) Me.Picture_Button.InnerHtml = " Picture " Me.Picture_Button.Visible = true ' 'add HtmlAnchor to header ' Me.Communication_Header.Controls.Add(Me.Communication_Button) Me.Security_Header.Controls.Add(Me.Security_Button) Me.Picture_Header.Controls.Add(Me.Picture_Button) ' 'hide TabPage Content and set style ' Me.Name_Address_Content.Visible = true Me.Communication_Content.Visible = false Me.Security_Content.Visible = false Me.Picture_Content.Visible = false Me.Name_Address_Content.Attributes.Add("style", Me.GetContentStyle(true)) Me.Communication_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Security_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Picture_Content.Attributes.Add("style", Me.GetContentStyle(false)) End Sub ' end Private Sub OnName_Address_ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) ' 'set visibility and style for Name_Address ' Private Sub OnCommunication_ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Name_Address_Header.Controls.Clear() Me.Name_Address_Header.InnerHtml = "" Me.Name_Address_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Name_Address_Button.InnerHtml = " Name/Address " Me.Name_Address_Button.Visible = true ' 'set visibility and style for Communication ' Me.Communication_Header.Controls.Clear() Me.Communication_Header.InnerHtml = " Communication " Me.Communication_Header.Attributes.Add("style", Me.GetHeaderStyle(true, false)) Me.Communication_Button.Visible = false ' 'set visibility and style for Security ' Me.Security_Header.Controls.Clear() Me.Security_Header.InnerHtml = "" Me.Security_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Security_Button.InnerHtml = " Security " Me.Security_Button.Visible = true ' 'set visibility and style for Picture ' Me.Picture_Header.Controls.Clear() Me.Picture_Header.InnerHtml = "" Me.Picture_Header.Attributes.Add("style", Me.GetHeaderStyle(false, true)) Me.Picture_Button.InnerHtml = " Picture " Me.Picture_Button.Visible = true ' 'add HtmlAnchor to header ' Me.Name_Address_Header.Controls.Add(Me.Name_Address_Button) Me.Security_Header.Controls.Add(Me.Security_Button) Me.Picture_Header.Controls.Add(Me.Picture_Button) ' 'hide TabPage Content and set style ' Me.Name_Address_Content.Visible = false Me.Communication_Content.Visible = true Me.Security_Content.Visible = false Me.Picture_Content.Visible = false Me.Name_Address_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Communication_Content.Attributes.Add("style", Me.GetContentStyle(true)) Me.Security_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Picture_Content.Attributes.Add("style", Me.GetContentStyle(false)) End Sub ' end Private Sub OnCommunication_ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) ' 'set visibility and style for Name_Address ' Private Sub OnSecurity_ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Name_Address_Header.Controls.Clear() Me.Name_Address_Header.InnerHtml = "" Me.Name_Address_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Name_Address_Button.InnerHtml = " Name/Address " Me.Name_Address_Button.Visible = true ' 'set visibility and style for Communication ' Me.Communication_Header.Controls.Clear() Me.Communication_Header.InnerHtml = "" Me.Communication_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Communication_Button.InnerHtml = " Communication " Me.Communication_Button.Visible = true ' 'set visibility and style for Security ' Me.Security_Header.Controls.Clear() Me.Security_Header.InnerHtml = " Security " Me.Security_Header.Attributes.Add("style", Me.GetHeaderStyle(true, false)) Me.Security_Button.Visible = false ' 'set visibility and style for Picture ' Me.Picture_Header.Controls.Clear() Me.Picture_Header.InnerHtml = "" Me.Picture_Header.Attributes.Add("style", Me.GetHeaderStyle(false, true)) Me.Picture_Button.InnerHtml = " Picture " Me.Picture_Button.Visible = true ' 'add HtmlAnchor to header ' Me.Name_Address_Header.Controls.Add(Me.Name_Address_Button) Me.Communication_Header.Controls.Add(Me.Communication_Button) Me.Picture_Header.Controls.Add(Me.Picture_Button) ' 'hide TabPage Content and set style ' Me.Name_Address_Content.Visible = false Me.Communication_Content.Visible = false Me.Security_Content.Visible = true Me.Picture_Content.Visible = false Me.Name_Address_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Communication_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Security_Content.Attributes.Add("style", Me.GetContentStyle(true)) Me.Picture_Content.Attributes.Add("style", Me.GetContentStyle(false)) End Sub ' end Private Sub OnSecurity_ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) ' 'set visibility and style for Name_Address ' Private Sub OnPicture_ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.Name_Address_Header.Controls.Clear() Me.Name_Address_Header.InnerHtml = "" Me.Name_Address_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Name_Address_Button.InnerHtml = " Name/Address " Me.Name_Address_Button.Visible = true ' 'set visibility and style for Communication ' Me.Communication_Header.Controls.Clear() Me.Communication_Header.InnerHtml = "" Me.Communication_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Communication_Button.InnerHtml = " Communication " Me.Communication_Button.Visible = true ' 'set visibility and style for Security ' Me.Security_Header.Controls.Clear() Me.Security_Header.InnerHtml = "" Me.Security_Header.Attributes.Add("style", Me.GetHeaderStyle(false, false)) Me.Security_Button.InnerHtml = " Security " Me.Security_Button.Visible = true ' 'set visibility and style for Picture ' Me.Picture_Header.Controls.Clear() Me.Picture_Header.InnerHtml = " Picture " Me.Picture_Header.Attributes.Add("style", Me.GetHeaderStyle(true, true)) Me.Picture_Button.Visible = false ' 'add HtmlAnchor to header ' Me.Name_Address_Header.Controls.Add(Me.Name_Address_Button) Me.Communication_Header.Controls.Add(Me.Communication_Button) Me.Security_Header.Controls.Add(Me.Security_Button) ' 'hide TabPage Content and set style ' Me.Name_Address_Content.Visible = false Me.Communication_Content.Visible = false Me.Security_Content.Visible = false Me.Picture_Content.Visible = true Me.Name_Address_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Communication_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Security_Content.Attributes.Add("style", Me.GetContentStyle(false)) Me.Picture_Content.Attributes.Add("style", Me.GetContentStyle(true)) End Sub ' end Private Sub OnPicture_ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Private Function GetCommandStyle() As String Dim stringBuilder As System.Text.StringBuilder stringBuilder = New System.Text.StringBuilder () stringBuilder.AppendFormat("{0}:{1}; ", "TEXT-DECORATION", "none") stringBuilder.AppendFormat("{0}:{1}; ", "COLOR", BORDER_COLOR_ON) Return stringBuilder.ToString End Function ' end Private Function GetCommandStyle() As String Private Function GetContentStyle(ByVal visible As Boolean) As String Dim stringBuilder As System.Text.StringBuilder stringBuilder = New System.Text.StringBuilder () stringBuilder.AppendFormat("WIDTH:{0}; ", "384px") stringBuilder.AppendFormat("HEIGHT:{0}; ", "274px") stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-LEFT", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON) stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-BOTTOM", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON) stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-RIGHT", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON) If visible Then stringBuilder.AppendFormat("VISIBILITY:{0}; ", "visible") Else stringBuilder.AppendFormat("VISIBILITY:{0}; ", "hidden") End If 'end If visible Then Return stringBuilder.ToString End Function ' end Private Function GetContentStyle(ByVal visible As Boolean) As String Private Function GetHeaderStyle(ByVal active As Boolean, ByVal last As Boolean) As String Dim stringBuilder As System.Text.StringBuilder stringBuilder = New System.Text.StringBuilder () stringBuilder.AppendFormat("{0}:{1}; ", "FONT", "8pt '[FontFamily: Name=Microsoft Sans Serif]'") stringBuilder.AppendFormat("{0}:{1}; ", "white-space", "nowrap") If last Then stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-RIGHT", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON) Else stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-RIGHT", BORDER_COLOR_OFF, BORDER_WIDTH, BORDER_STYLE_ON) End If 'end If last Then stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-TOP", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON) stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-LEFT", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON) If active Then stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-BOTTOM", BORDER_COLOR_OFF, BORDER_WIDTH, BORDER_STYLE_ON) Else stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-BOTTOM", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON) End If 'end If active Then Return stringBuilder.ToString End Function ' end Private Function GetHeaderStyle(ByVal active As Boolean, ByVal last As Boolean) As String Public Overridable Sub InitializeDataSource(ByVal dataEmployeesRow As suite4.net.Northwind.EmployeesRow) If (Not(dataEmployeesRow) Is Nothing) Then Me.txtEmployeeID.Text = dataEmployeesRow.EmployeeID.ToString Me.txtTitleOfCourtesy.Text = dataEmployeesRow.TitleOfCourtesy Me.txtTitle.Text = dataEmployeesRow.Title Me.txtCountry.Text = dataEmployeesRow.Country Me.txtRegion.Text = dataEmployeesRow.Region Me.txtPostalCode.Text = dataEmployeesRow.PostalCode Me.txtCity.Text = dataEmployeesRow.City Me.txtStreet.Text = dataEmployeesRow.Address Me.txtFirstName.Text = dataEmployeesRow.FirstName Me.txtLastName.Text = dataEmployeesRow.LastName Me.txtExtension.Text = dataEmployeesRow.Extension Me.txtHomeEmail.Text = dataEmployeesRow.HomePhone Me.txtHomePhone_.Text = dataEmployeesRow.HomePhone Me.txtWorkEmail.Text = dataEmployeesRow.HomePhone Me.txtWorkFax_.Text = dataEmployeesRow.HomePhone Me.txtWorkPhone_.Text = dataEmployeesRow.HomePhone Me.txtNotes.Text = dataEmployeesRow.Notes Me.txtReportsTo.Text = dataEmployeesRow.ReportsTo.ToString Me.txtPhotoPath.Text = dataEmployeesRow.PhotoPath End If 'end If (Not(dataEmployeesRow) Is Nothing) Then End Sub ' end Public Overridable Sub InitializeDataSource(ByVal dataEmployeesRow As suite4.net.Northwind.EmployeesRow) Public Overridable Sub Save(ByVal dataEmployeesRow As suite4.net.Northwind.EmployeesRow) If (Not(dataEmployeesRow) Is Nothing) Then 'Please tpye your own Exception messages here. Try dataEmployeesRow.EmployeeID = Integer.Parse(Me.txtEmployeeID.Text) Catch ex As System.Exception End Try 'end Try dataEmployeesRow.TitleOfCourtesy = Me.txtTitleOfCourtesy.Text dataEmployeesRow.Title = Me.txtTitle.Text dataEmployeesRow.Country = Me.txtCountry.Text dataEmployeesRow.Region = Me.txtRegion.Text dataEmployeesRow.PostalCode = Me.txtPostalCode.Text dataEmployeesRow.City = Me.txtCity.Text dataEmployeesRow.Address = Me.txtStreet.Text dataEmployeesRow.FirstName = Me.txtFirstName.Text dataEmployeesRow.LastName = Me.txtLastName.Text dataEmployeesRow.Extension = Me.txtExtension.Text dataEmployeesRow.HomePhone = Me.txtHomeEmail.Text dataEmployeesRow.HomePhone = Me.txtHomePhone_.Text dataEmployeesRow.HomePhone = Me.txtWorkEmail.Text dataEmployeesRow.HomePhone = Me.txtWorkFax_.Text dataEmployeesRow.HomePhone = Me.txtWorkPhone_.Text dataEmployeesRow.Notes = Me.txtNotes.Text 'Please tpye your own Exception messages here. Try dataEmployeesRow.ReportsTo = Integer.Parse(Me.txtReportsTo.Text) Catch ex As System.Exception End Try 'end Try dataEmployeesRow.PhotoPath = Me.txtPhotoPath.Text End If 'end If (Not(dataEmployeesRow) Is Nothing) Then End Sub ' end Public Overridable Sub Save(ByVal dataEmployeesRow As suite4.net.Northwind.EmployeesRow) End Class ' end Public Class ScreenShots End Namespace ' end Namespace suite4.net