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.
code samples
//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
using System;
namespace suite4.net
{
    public class ScreenShots : System.Web.UI.UserControl
    {
        private const string COLOR = "#ffffff";
        private const string BACK_COLOR_ON = "#ffffff";
        private const string BACK_COLOR_OFF = "#ffffff";
        private const string BORDER_STYLE_ON = "solid";
        private const string BORDER_STYLE_OFF = "none";
        private const string BORDER_COLOR_OFF = "#ffffff";
        private const string BORDER_COLOR_ON = "#000000";
        private const string BORDER_WIDTH = "1px";
        private const string PADDING_WIDTH = "2px";
        protected System.Web.UI.WebControls.Table TableMain;
        protected System.Web.UI.WebControls.TextBox txtEmployeeID;
        protected System.Web.UI.WebControls.Label lblEmployeeID;
        protected System.Web.UI.HtmlControls.HtmlTable tabTabControl1_Table;
        protected System.Web.UI.HtmlControls.HtmlTableRow tabTabControl1_TableRow;
        protected System.Web.UI.HtmlControls.HtmlTable Name_Address_Content;
        protected System.Web.UI.WebControls.TextBox txtTitleOfCourtesy;
        protected System.Web.UI.WebControls.Label lblTitleOfCourtesy;
        protected System.Web.UI.WebControls.TextBox txtTitle;
        protected System.Web.UI.WebControls.Label lblTitle;
        protected System.Web.UI.WebControls.TextBox txtCountry;
        protected System.Web.UI.WebControls.Label lblCountry;
        protected System.Web.UI.WebControls.TextBox txtRegion;
        protected System.Web.UI.WebControls.Label lblRegion;
        protected System.Web.UI.WebControls.TextBox txtPostalCode;
        protected System.Web.UI.WebControls.Label lblPostalCode;
        protected System.Web.UI.WebControls.TextBox txtCity;
        protected System.Web.UI.WebControls.Label lblCity;
        protected System.Web.UI.WebControls.TextBox txtStreet;
        protected System.Web.UI.WebControls.Label lblStreet;
        protected System.Web.UI.HtmlControls.HtmlGenericControl Address;
        protected System.Web.UI.WebControls.TextBox txtFirstName;
        protected System.Web.UI.WebControls.Label lblFirstName;
        protected System.Web.UI.WebControls.TextBox txtLastName;
        protected System.Web.UI.WebControls.Label lblLastName;
        protected System.Web.UI.HtmlControls.HtmlTableCell Name_Address_Header;
        protected System.Web.UI.HtmlControls.HtmlTable Communication_Content;
        protected System.Web.UI.WebControls.TextBox txtExtension;
        protected System.Web.UI.WebControls.TextBox txtHomeEmail;
        protected System.Web.UI.WebControls.TextBox txtHomePhone_;
        protected System.Web.UI.WebControls.Label lblpriv_Email;
        protected System.Web.UI.WebControls.Label lblpriv_Phone_;
        protected System.Web.UI.WebControls.TextBox txtWorkEmail;
        protected System.Web.UI.WebControls.TextBox txtWorkFax_;
        protected System.Web.UI.WebControls.Label lblWorkEmail;
        protected System.Web.UI.WebControls.Label lblWorkFax_;
        protected System.Web.UI.WebControls.TextBox txtWorkPhone_;
        protected System.Web.UI.WebControls.Label lblWorkPhone_;
        protected System.Web.UI.WebControls.Label lblExt_;
        protected System.Web.UI.HtmlControls.HtmlTableCell Communication_Header;
        protected System.Web.UI.HtmlControls.HtmlTable Security_Content;
        protected System.Web.UI.WebControls.TextBox txtNotes;
        protected System.Web.UI.WebControls.TextBox txtReportsTo;
        protected System.Web.UI.WebControls.Label lblNotes;
        protected System.Web.UI.WebControls.Label lblReportsTo;
        protected System.Web.UI.WebControls.Label lblHireDate;
        protected System.Web.UI.WebControls.Label lblBirthDate;
        protected System.Web.UI.HtmlControls.HtmlTableCell Security_Header;
        protected System.Web.UI.HtmlControls.HtmlTable Picture_Content;
        protected System.Web.UI.WebControls.Image picPictureBox1;
        protected System.Web.UI.WebControls.TextBox txtPhotoPath;
        protected System.Web.UI.WebControls.Label lblPhotoPath;
        protected System.Web.UI.HtmlControls.HtmlTableCell Picture_Header;
        protected System.Web.UI.HtmlControls.HtmlTableCell tabTabControl1_HeaderFill;
        protected System.Web.UI.HtmlControls.HtmlGenericControl tabTabControl1;
        protected System.Web.UI.HtmlControls.HtmlAnchor Name_Address_Button;
        protected System.Web.UI.HtmlControls.HtmlAnchor Communication_Button;
        protected System.Web.UI.HtmlControls.HtmlAnchor Security_Button;
        protected System.Web.UI.HtmlControls.HtmlAnchor Picture_Button;
        protected suite4.net.Northwind.EmployeesRow _dataEmployeesRow;
        #region suite4.net.Northwind.EmployeesRow DataEmployeesRow
        public virtual suite4.net.Northwind.EmployeesRow DataEmployeesRow
        {
            get{return this._dataEmployeesRow;}
            set
            {
                this._dataEmployeesRow = value;
                this.InitializeDataSource(this._dataEmployeesRow);
            } // end set
        } // end public virtual suite4.net.Northwind.EmployeesRow DataEmployeesRow
        #endregion
        #region void InitializeComponent()
        private void InitializeComponent()
        {
            #region Assign instances
            this.Load += new System.EventHandler(this.Page_Load);
            #endregion
        } // end private void InitializeComponent()
        #endregion
        #region void OnInit(System.EventArgs e)
        protected override void OnInit(System.EventArgs e)
        {
            this.InitializeComponent();
            base.OnInit(e);
        } // end protected override void OnInit(System.EventArgs e)
        #endregion
        #region void Page_Load(object sender, System.EventArgs e)
        private void Page_Load(object sender, System.EventArgs e)
        {
            if((this.txtEmployeeID != null))
            {
                this.InitializeTabControl();
            } // end if((this.txtEmployeeID != null))
            if(this._IsInitialized)
            {
                return;
            } // end if(this._IsInitialized)
            this._IsInitialized = true;
            if((this.txtEmployeeID != null))
            {
                return;
            } // end if((this.txtEmployeeID != null))
        } // end private void Page_Load(object sender, System.EventArgs e)
        #endregion
        #region void InitializeTabControl()
        private void InitializeTabControl()
        {
            this.Name_Address_Header.InnerHtml = "&nbsp;Name/Address&nbsp;";
            this.Name_Address_Header.Attributes.Add("style", this.GetHeaderStyle(true, false));
            this.Communication_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Security_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Picture_Header.Attributes.Add("style", this.GetHeaderStyle(false, true));
            // 
            // Name_Address_Button
            // 
            if((this.Name_Address_Button == null))
            {
                this.Name_Address_Button = new System.Web.UI.HtmlControls.HtmlAnchor();
            } // end if((this.Name_Address_Button == null))
            this.Name_Address_Button.ID = "Name_Address_Button";
            this.Name_Address_Button.InnerHtml = "&nbsp;Name/Address&nbsp;";
            this.Name_Address_Button.Visible = false;
            this.Name_Address_Button.Attributes.Add("style", this.GetCommandStyle());
            // 
            // Communication_Button
            // 
            if((this.Communication_Button == null))
            {
                this.Communication_Button = new System.Web.UI.HtmlControls.HtmlAnchor();
            } // end if((this.Communication_Button == null))
            this.Communication_Button.ID = "Communication_Button";
            this.Communication_Button.InnerHtml = "&nbsp;Communication&nbsp;";
            this.Communication_Button.Attributes.Add("style", this.GetCommandStyle());
            // 
            // Security_Button
            // 
            if((this.Security_Button == null))
            {
                this.Security_Button = new System.Web.UI.HtmlControls.HtmlAnchor();
            } // end if((this.Security_Button == null))
            this.Security_Button.ID = "Security_Button";
            this.Security_Button.InnerHtml = "&nbsp;Security&nbsp;";
            this.Security_Button.Attributes.Add("style", this.GetCommandStyle());
            // 
            // Picture_Button
            // 
            if((this.Picture_Button == null))
            {
                this.Picture_Button = new System.Web.UI.HtmlControls.HtmlAnchor();
            } // end if((this.Picture_Button == null))
            this.Picture_Button.ID = "Picture_Button";
            this.Picture_Button.InnerHtml = "&nbsp;Picture&nbsp;";
            this.Picture_Button.Attributes.Add("style", this.GetCommandStyle());
            // 
            // create event listener to HtmlAnchor
            // 
            this.Name_Address_Button.ServerClick += new System.EventHandler(this.OnName_Address_ButtonClick);
            this.Communication_Button.ServerClick += new System.EventHandler(this.OnCommunication_ButtonClick);
            this.Security_Button.ServerClick += new System.EventHandler(this.OnSecurity_ButtonClick);
            this.Picture_Button.ServerClick += new System.EventHandler(this.OnPicture_ButtonClick);
            // 
            // add HtmlAnchor to header
            // 
            this.Name_Address_Header.Controls.Add(this.Name_Address_Button);
            this.Communication_Header.Controls.Add(this.Communication_Button);
            this.Security_Header.Controls.Add(this.Security_Button);
            this.Picture_Header.Controls.Add(this.Picture_Button);
            // 
            // hide TabPage Content and set style
            // 
            this.Name_Address_Content.Visible = true;
            this.Communication_Content.Visible = false;
            this.Security_Content.Visible = false;
            this.Picture_Content.Visible = false;
            this.Name_Address_Content.Attributes.Add("style", this.GetContentStyle(true));
            this.Communication_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Security_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Picture_Content.Attributes.Add("style", this.GetContentStyle(false));
        } // end private void InitializeTabControl()
        #endregion
        #region void OnName_Address_ButtonClick(object sender, System.EventArgs e)
        private void OnName_Address_ButtonClick(object sender, System.EventArgs e)
        {
            // 
            // set visibility and style for Name_Address
            // 
            this.Name_Address_Header.Controls.Clear();
            this.Name_Address_Header.InnerHtml = "&nbsp;Name/Address&nbsp;";
            this.Name_Address_Header.Attributes.Add("style", this.GetHeaderStyle(true, false));
            this.Name_Address_Button.Visible = false;
            // 
            // set visibility and style for Communication
            // 
            this.Communication_Header.Controls.Clear();
            this.Communication_Header.InnerHtml = "";
            this.Communication_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Communication_Button.InnerHtml = "&nbsp;Communication&nbsp;";
            this.Communication_Button.Visible = true;
            // 
            // set visibility and style for Security
            // 
            this.Security_Header.Controls.Clear();
            this.Security_Header.InnerHtml = "";
            this.Security_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Security_Button.InnerHtml = "&nbsp;Security&nbsp;";
            this.Security_Button.Visible = true;
            // 
            // set visibility and style for Picture
            // 
            this.Picture_Header.Controls.Clear();
            this.Picture_Header.InnerHtml = "";
            this.Picture_Header.Attributes.Add("style", this.GetHeaderStyle(false, true));
            this.Picture_Button.InnerHtml = "&nbsp;Picture&nbsp;";
            this.Picture_Button.Visible = true;
            // 
            // add HtmlAnchor to header
            // 
            this.Communication_Header.Controls.Add(this.Communication_Button);
            this.Security_Header.Controls.Add(this.Security_Button);
            this.Picture_Header.Controls.Add(this.Picture_Button);
            // 
            // hide TabPage Content and set style
            // 
            this.Name_Address_Content.Visible = true;
            this.Communication_Content.Visible = false;
            this.Security_Content.Visible = false;
            this.Picture_Content.Visible = false;
            this.Name_Address_Content.Attributes.Add("style", this.GetContentStyle(true));
            this.Communication_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Security_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Picture_Content.Attributes.Add("style", this.GetContentStyle(false));
        } // end private void OnName_Address_ButtonClick(object sender, System.EventArgs e)
        #endregion
        #region void OnCommunication_ButtonClick(object sender, System.EventArgs e)
        private void OnCommunication_ButtonClick(object sender, System.EventArgs e)
        {
            // 
            // set visibility and style for Name_Address
            // 
            this.Name_Address_Header.Controls.Clear();
            this.Name_Address_Header.InnerHtml = "";
            this.Name_Address_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Name_Address_Button.InnerHtml = "&nbsp;Name/Address&nbsp;";
            this.Name_Address_Button.Visible = true;
            // 
            // set visibility and style for Communication
            // 
            this.Communication_Header.Controls.Clear();
            this.Communication_Header.InnerHtml = "&nbsp;Communication&nbsp;";
            this.Communication_Header.Attributes.Add("style", this.GetHeaderStyle(true, false));
            this.Communication_Button.Visible = false;
            // 
            // set visibility and style for Security
            // 
            this.Security_Header.Controls.Clear();
            this.Security_Header.InnerHtml = "";
            this.Security_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Security_Button.InnerHtml = "&nbsp;Security&nbsp;";
            this.Security_Button.Visible = true;
            // 
            // set visibility and style for Picture
            // 
            this.Picture_Header.Controls.Clear();
            this.Picture_Header.InnerHtml = "";
            this.Picture_Header.Attributes.Add("style", this.GetHeaderStyle(false, true));
            this.Picture_Button.InnerHtml = "&nbsp;Picture&nbsp;";
            this.Picture_Button.Visible = true;
            // 
            // add HtmlAnchor to header
            // 
            this.Name_Address_Header.Controls.Add(this.Name_Address_Button);
            this.Security_Header.Controls.Add(this.Security_Button);
            this.Picture_Header.Controls.Add(this.Picture_Button);
            // 
            // hide TabPage Content and set style
            // 
            this.Name_Address_Content.Visible = false;
            this.Communication_Content.Visible = true;
            this.Security_Content.Visible = false;
            this.Picture_Content.Visible = false;
            this.Name_Address_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Communication_Content.Attributes.Add("style", this.GetContentStyle(true));
            this.Security_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Picture_Content.Attributes.Add("style", this.GetContentStyle(false));
        } // end private void OnCommunication_ButtonClick(object sender, System.EventArgs e)
        #endregion
        #region void OnSecurity_ButtonClick(object sender, System.EventArgs e)
        private void OnSecurity_ButtonClick(object sender, System.EventArgs e)
        {
            // 
            // set visibility and style for Name_Address
            // 
            this.Name_Address_Header.Controls.Clear();
            this.Name_Address_Header.InnerHtml = "";
            this.Name_Address_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Name_Address_Button.InnerHtml = "&nbsp;Name/Address&nbsp;";
            this.Name_Address_Button.Visible = true;
            // 
            // set visibility and style for Communication
            // 
            this.Communication_Header.Controls.Clear();
            this.Communication_Header.InnerHtml = "";
            this.Communication_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Communication_Button.InnerHtml = "&nbsp;Communication&nbsp;";
            this.Communication_Button.Visible = true;
            // 
            // set visibility and style for Security
            // 
            this.Security_Header.Controls.Clear();
            this.Security_Header.InnerHtml = "&nbsp;Security&nbsp;";
            this.Security_Header.Attributes.Add("style", this.GetHeaderStyle(true, false));
            this.Security_Button.Visible = false;
            // 
            // set visibility and style for Picture
            // 
            this.Picture_Header.Controls.Clear();
            this.Picture_Header.InnerHtml = "";
            this.Picture_Header.Attributes.Add("style", this.GetHeaderStyle(false, true));
            this.Picture_Button.InnerHtml = "&nbsp;Picture&nbsp;";
            this.Picture_Button.Visible = true;
            // 
            // add HtmlAnchor to header
            // 
            this.Name_Address_Header.Controls.Add(this.Name_Address_Button);
            this.Communication_Header.Controls.Add(this.Communication_Button);
            this.Picture_Header.Controls.Add(this.Picture_Button);
            // 
            // hide TabPage Content and set style
            // 
            this.Name_Address_Content.Visible = false;
            this.Communication_Content.Visible = false;
            this.Security_Content.Visible = true;
            this.Picture_Content.Visible = false;
            this.Name_Address_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Communication_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Security_Content.Attributes.Add("style", this.GetContentStyle(true));
            this.Picture_Content.Attributes.Add("style", this.GetContentStyle(false));
        } // end private void OnSecurity_ButtonClick(object sender, System.EventArgs e)
        #endregion
        #region void OnPicture_ButtonClick(object sender, System.EventArgs e)
        private void OnPicture_ButtonClick(object sender, System.EventArgs e)
        {
            // 
            // set visibility and style for Name_Address
            // 
            this.Name_Address_Header.Controls.Clear();
            this.Name_Address_Header.InnerHtml = "";
            this.Name_Address_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Name_Address_Button.InnerHtml = "&nbsp;Name/Address&nbsp;";
            this.Name_Address_Button.Visible = true;
            // 
            // set visibility and style for Communication
            // 
            this.Communication_Header.Controls.Clear();
            this.Communication_Header.InnerHtml = "";
            this.Communication_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Communication_Button.InnerHtml = "&nbsp;Communication&nbsp;";
            this.Communication_Button.Visible = true;
            // 
            // set visibility and style for Security
            // 
            this.Security_Header.Controls.Clear();
            this.Security_Header.InnerHtml = "";
            this.Security_Header.Attributes.Add("style", this.GetHeaderStyle(false, false));
            this.Security_Button.InnerHtml = "&nbsp;Security&nbsp;";
            this.Security_Button.Visible = true;
            // 
            // set visibility and style for Picture
            // 
            this.Picture_Header.Controls.Clear();
            this.Picture_Header.InnerHtml = "&nbsp;Picture&nbsp;";
            this.Picture_Header.Attributes.Add("style", this.GetHeaderStyle(true, true));
            this.Picture_Button.Visible = false;
            // 
            // add HtmlAnchor to header
            // 
            this.Name_Address_Header.Controls.Add(this.Name_Address_Button);
            this.Communication_Header.Controls.Add(this.Communication_Button);
            this.Security_Header.Controls.Add(this.Security_Button);
            // 
            // hide TabPage Content and set style
            // 
            this.Name_Address_Content.Visible = false;
            this.Communication_Content.Visible = false;
            this.Security_Content.Visible = false;
            this.Picture_Content.Visible = true;
            this.Name_Address_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Communication_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Security_Content.Attributes.Add("style", this.GetContentStyle(false));
            this.Picture_Content.Attributes.Add("style", this.GetContentStyle(true));
        } // end private void OnPicture_ButtonClick(object sender, System.EventArgs e)
        #endregion
        #region string GetCommandStyle()
        private string GetCommandStyle()
        {
            System.Text.StringBuilder 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 private string GetCommandStyle()
        #endregion
        #region string GetContentStyle(bool visible)
        private string GetContentStyle(bool visible)
        {
            System.Text.StringBuilder 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)
            {
                stringBuilder.AppendFormat("VISIBILITY:{0}; ", "visible");
            } // end if(visible)
            else
            {
                stringBuilder.AppendFormat("VISIBILITY:{0}; ", "hidden");
            } // end else if(visible)
            return stringBuilder.ToString();
        } // end private string GetContentStyle(bool visible)
        #endregion
        #region string GetHeaderStyle(bool active, bool last)
        private string GetHeaderStyle(bool active, bool last)
        {
            System.Text.StringBuilder 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)
            {
                stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-RIGHT", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON);
            } // end if(last)
            else
            {
                stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-RIGHT", BORDER_COLOR_OFF, BORDER_WIDTH, BORDER_STYLE_ON);
            } // end else if(last)
            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)
            {
                stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-BOTTOM", BORDER_COLOR_OFF, BORDER_WIDTH, BORDER_STYLE_ON);
            } // end if(active)
            else
            {
                stringBuilder.AppendFormat("{0}:{1} {2} {3}; ", "BORDER-BOTTOM", BORDER_COLOR_ON, BORDER_WIDTH, BORDER_STYLE_ON);
            } // end else if(active)
            return stringBuilder.ToString();
        } // end private string GetHeaderStyle(bool active, bool last)
        #endregion
        #region void InitializeDataSource(suite4.net.Northwind.EmployeesRow dataEmployeesRow)
        public virtual void InitializeDataSource(suite4.net.Northwind.EmployeesRow dataEmployeesRow)
        {
            if((dataEmployeesRow != null))
            {
                this.txtEmployeeID.Text = dataEmployeesRow.EmployeeID.ToString();
                this.txtTitleOfCourtesy.Text = dataEmployeesRow.TitleOfCourtesy;
                this.txtTitle.Text = dataEmployeesRow.Title;
                this.txtCountry.Text = dataEmployeesRow.Country;
                this.txtRegion.Text = dataEmployeesRow.Region;
                this.txtPostalCode.Text = dataEmployeesRow.PostalCode;
                this.txtCity.Text = dataEmployeesRow.City;
                this.txtStreet.Text = dataEmployeesRow.Address;
                this.txtFirstName.Text = dataEmployeesRow.FirstName;
                this.txtLastName.Text = dataEmployeesRow.LastName;
                this.txtExtension.Text = dataEmployeesRow.Extension;
                this.txtHomeEmail.Text = dataEmployeesRow.HomePhone;
                this.txtHomePhone_.Text = dataEmployeesRow.HomePhone;
                this.txtWorkEmail.Text = dataEmployeesRow.HomePhone;
                this.txtWorkFax_.Text = dataEmployeesRow.HomePhone;
                this.txtWorkPhone_.Text = dataEmployeesRow.HomePhone;
                this.txtNotes.Text = dataEmployeesRow.Notes;
                this.txtReportsTo.Text = dataEmployeesRow.ReportsTo.ToString();
                this.txtPhotoPath.Text = dataEmployeesRow.PhotoPath;
            } // end if((dataEmployeesRow != null))
        } // end public virtual void InitializeDataSource(suite4.net.Northwind.EmployeesRow dataEmployeesRow)
        #endregion
        #region void Save(suite4.net.Northwind.EmployeesRow dataEmployeesRow)
        public virtual void Save(suite4.net.Northwind.EmployeesRow dataEmployeesRow)
        {
            if((dataEmployeesRow != null))
            {
                try
                {
                    dataEmployeesRow.EmployeeID = int.Parse(this.txtEmployeeID.Text);
                } // end try
                catch(System.Exception ex)
                {
                    // Please tpye your own Exception messages here.
                } // end catch(System.Exception ex)
                dataEmployeesRow.TitleOfCourtesy = this.txtTitleOfCourtesy.Text;
                dataEmployeesRow.Title = this.txtTitle.Text;
                dataEmployeesRow.Country = this.txtCountry.Text;
                dataEmployeesRow.Region = this.txtRegion.Text;
                dataEmployeesRow.PostalCode = this.txtPostalCode.Text;
                dataEmployeesRow.City = this.txtCity.Text;
                dataEmployeesRow.Address = this.txtStreet.Text;
                dataEmployeesRow.FirstName = this.txtFirstName.Text;
                dataEmployeesRow.LastName = this.txtLastName.Text;
                dataEmployeesRow.Extension = this.txtExtension.Text;
                dataEmployeesRow.HomePhone = this.txtHomeEmail.Text;
                dataEmployeesRow.HomePhone = this.txtHomePhone_.Text;
                dataEmployeesRow.HomePhone = this.txtWorkEmail.Text;
                dataEmployeesRow.HomePhone = this.txtWorkFax_.Text;
                dataEmployeesRow.HomePhone = this.txtWorkPhone_.Text;
                dataEmployeesRow.Notes = this.txtNotes.Text;
                try
                {
                    dataEmployeesRow.ReportsTo = int.Parse(this.txtReportsTo.Text);
                } // end try
                catch(System.Exception ex)
                {
                    // Please tpye your own Exception messages here.
                } // end catch(System.Exception ex)
                dataEmployeesRow.PhotoPath = this.txtPhotoPath.Text;
            } // end if((dataEmployeesRow != null))
        } // end public virtual void Save(suite4.net.Northwind.EmployeesRow dataEmployeesRow)
        #endregion
    } // end public class ScreenShots
} // end namespace suite4.net