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 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> //------------------------------------------------------------------------------ using System; using System.Windows.Forms; namespace suite4.net { public class ScreenShots : System.Windows.Forms.Form { private System.Windows.Forms.TextBox txtFirstName; private System.Windows.Forms.TextBox txtTitle; private System.Windows.Forms.Label lblWorkEmail; private System.Windows.Forms.TextBox txtPostalCode; private System.Windows.Forms.TabControl tabTabControl1; private System.Windows.Forms.Label lblFirstName; private System.Windows.Forms.DateTimePicker dtpHireDate; private System.Windows.Forms.Label lblWorkFax_; private System.Windows.Forms.TabPage Picture; private System.Windows.Forms.Label lblpriv_Email; private System.Windows.Forms.TextBox txtHomePhone_; private System.Windows.Forms.DateTimePicker dtpBirthDate; private System.Windows.Forms.TextBox txtCountry; private System.Windows.Forms.GroupBox Address; private System.Windows.Forms.Label lblBirthDate; private System.Windows.Forms.TextBox txtRegion; private System.Windows.Forms.TextBox txtNotes; private System.Windows.Forms.TextBox txtTitleOfCourtesy; private System.Windows.Forms.TextBox txtCity; private System.Windows.Forms.TextBox txtLastName; private System.Windows.Forms.TextBox txtWorkFax_; private System.Windows.Forms.TextBox txtWorkEmail; private System.Windows.Forms.Label lblHireDate; private System.Windows.Forms.Label lblCountry; private System.Windows.Forms.TextBox txtExtension; private System.Windows.Forms.TextBox txtPhotoPath; private System.Windows.Forms.Label lblStreet; private System.Windows.Forms.Label lblNotes; private System.Windows.Forms.TextBox txtHomeEmail; private System.Windows.Forms.TextBox txtReportsTo; private System.Windows.Forms.Label lblReportsTo; private System.Windows.Forms.TextBox txtWorkPhone_; private System.Windows.Forms.TextBox txtEmployeeID; private System.Windows.Forms.Label lblRegion; private System.Windows.Forms.TabPage Name_Address; private System.Windows.Forms.Label lblpriv_Phone_; private System.Windows.Forms.TabPage Communication; private System.Windows.Forms.Label lblTitle; private System.Windows.Forms.Label lblPostalCode; private System.Windows.Forms.Label lblEmployeeID; private System.Windows.Forms.TabPage Security; private System.Windows.Forms.Label lblLastName; private System.Windows.Forms.PictureBox picPictureBox1; private System.Windows.Forms.Label lblTitleOfCourtesy; private System.Windows.Forms.Label lblExt_; private System.Windows.Forms.Label lblPhotoPath; private System.Windows.Forms.Label lblWorkPhone_; private System.Windows.Forms.Label lblCity; private System.Windows.Forms.TextBox txtStreet; private suite4.net.Northwind.EmployeesRow _EmployeesRowData; #region ScreenShots() public ScreenShots() { this.InitializeComponent(); } // end public ScreenShots() #endregion #region suite4.net.Northwind.EmployeesRow EmployeesRowData public virtual suite4.net.Northwind.EmployeesRow EmployeesRowData { get{return this._EmployeesRowData;} set { this._EmployeesRowData = value; this.InitializeDataSource(this._EmployeesRowData); } // end set } // end public virtual suite4.net.Northwind.EmployeesRow EmployeesRowData #endregion #region InitializeComponent() private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ScreenShots)); #region Assign instances this.txtFirstName = new System.Windows.Forms.TextBox(); this.txtTitle = new System.Windows.Forms.TextBox(); this.lblWorkEmail = new System.Windows.Forms.Label(); this.txtPostalCode = new System.Windows.Forms.TextBox(); this.tabTabControl1 = new System.Windows.Forms.TabControl(); this.lblFirstName = new System.Windows.Forms.Label(); this.dtpHireDate = new System.Windows.Forms.DateTimePicker(); this.lblWorkFax_ = new System.Windows.Forms.Label(); this.Picture = new System.Windows.Forms.TabPage(); this.lblpriv_Email = new System.Windows.Forms.Label(); this.txtHomePhone_ = new System.Windows.Forms.TextBox(); this.dtpBirthDate = new System.Windows.Forms.DateTimePicker(); this.txtCountry = new System.Windows.Forms.TextBox(); this.Address = new System.Windows.Forms.GroupBox(); this.lblBirthDate = new System.Windows.Forms.Label(); this.txtRegion = new System.Windows.Forms.TextBox(); this.txtNotes = new System.Windows.Forms.TextBox(); this.txtTitleOfCourtesy = new System.Windows.Forms.TextBox(); this.txtCity = new System.Windows.Forms.TextBox(); this.txtLastName = new System.Windows.Forms.TextBox(); this.txtWorkFax_ = new System.Windows.Forms.TextBox(); this.txtWorkEmail = new System.Windows.Forms.TextBox(); this.lblHireDate = new System.Windows.Forms.Label(); this.lblCountry = new System.Windows.Forms.Label(); this.txtExtension = new System.Windows.Forms.TextBox(); this.txtPhotoPath = new System.Windows.Forms.TextBox(); this.lblStreet = new System.Windows.Forms.Label(); this.lblNotes = new System.Windows.Forms.Label(); this.txtHomeEmail = new System.Windows.Forms.TextBox(); this.txtReportsTo = new System.Windows.Forms.TextBox(); this.lblReportsTo = new System.Windows.Forms.Label(); this.txtWorkPhone_ = new System.Windows.Forms.TextBox(); this.txtEmployeeID = new System.Windows.Forms.TextBox(); this.lblRegion = new System.Windows.Forms.Label(); this.Name_Address = new System.Windows.Forms.TabPage(); this.lblpriv_Phone_ = new System.Windows.Forms.Label(); this.Communication = new System.Windows.Forms.TabPage(); this.lblTitle = new System.Windows.Forms.Label(); this.lblPostalCode = new System.Windows.Forms.Label(); this.lblEmployeeID = new System.Windows.Forms.Label(); this.Security = new System.Windows.Forms.TabPage(); this.lblLastName = new System.Windows.Forms.Label(); this.picPictureBox1 = new System.Windows.Forms.PictureBox(); this.lblTitleOfCourtesy = new System.Windows.Forms.Label(); this.lblExt_ = new System.Windows.Forms.Label(); this.lblPhotoPath = new System.Windows.Forms.Label(); this.lblWorkPhone_ = new System.Windows.Forms.Label(); this.lblCity = new System.Windows.Forms.Label(); this.txtStreet = new System.Windows.Forms.TextBox(); #endregion this.tabTabControl1.SuspendLayout(); this.Picture.SuspendLayout(); this.Address.SuspendLayout(); this.Name_Address.SuspendLayout(); this.Communication.SuspendLayout(); this.Security.SuspendLayout(); this.SuspendLayout(); #region txtFirstName this.txtFirstName.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtFirstName.ForeColor = System.Drawing.Color.Black; this.txtFirstName.Location = new System.Drawing.Point(88, 88); this.txtFirstName.MaxLength = 50; this.txtFirstName.Name = "txtFirstName"; this.txtFirstName.Size = new System.Drawing.Size(166, 20); this.txtFirstName.TabIndex = 11; this.txtFirstName.Text = "FirstName"; #endregion #region txtTitle this.txtTitle.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtTitle.ForeColor = System.Drawing.Color.Black; this.txtTitle.Location = new System.Drawing.Point(88, 16); this.txtTitle.MaxLength = 30; this.txtTitle.Name = "txtTitle"; this.txtTitle.Size = new System.Drawing.Size(96, 20); this.txtTitle.TabIndex = 5; this.txtTitle.Text = "Title"; #endregion #region lblWorkEmail this.lblWorkEmail.AutoSize = true; this.lblWorkEmail.Location = new System.Drawing.Point(8, 66); this.lblWorkEmail.Name = "lblWorkEmail"; this.lblWorkEmail.Size = new System.Drawing.Size(61, 16); this.lblWorkEmail.TabIndex = 8; this.lblWorkEmail.Text = "Work email"; this.lblWorkEmail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region txtPostalCode this.txtPostalCode.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtPostalCode.ForeColor = System.Drawing.Color.Black; this.txtPostalCode.Location = new System.Drawing.Point(80, 66); this.txtPostalCode.MaxLength = 50; this.txtPostalCode.Name = "txtPostalCode"; this.txtPostalCode.Size = new System.Drawing.Size(160, 20); this.txtPostalCode.TabIndex = 18; this.txtPostalCode.Text = "PostalCode"; #endregion this.tabTabControl1.Controls.Add(this.Name_Address); this.tabTabControl1.Controls.Add(this.Communication); this.tabTabControl1.Controls.Add(this.Security); this.tabTabControl1.Controls.Add(this.Picture); #region tabTabControl1 this.tabTabControl1.Location = new System.Drawing.Point(8, 40); this.tabTabControl1.Name = "tabTabControl1"; this.tabTabControl1.SelectedIndex = 0; this.tabTabControl1.Size = new System.Drawing.Size(272, 288); this.tabTabControl1.TabIndex = 7; this.tabTabControl1.Text = ""; #endregion #region lblFirstName this.lblFirstName.AutoSize = true; this.lblFirstName.Location = new System.Drawing.Point(8, 88); this.lblFirstName.Name = "lblFirstName"; this.lblFirstName.Size = new System.Drawing.Size(56, 16); this.lblFirstName.TabIndex = 10; this.lblFirstName.Text = "FirstName"; this.lblFirstName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region dtpHireDate this.dtpHireDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpHireDate.Location = new System.Drawing.Point(80, 38); this.dtpHireDate.Name = "dtpHireDate"; this.dtpHireDate.Size = new System.Drawing.Size(136, 20); this.dtpHireDate.TabIndex = 6; #endregion #region lblWorkFax_ this.lblWorkFax_.AutoSize = true; this.lblWorkFax_.Location = new System.Drawing.Point(8, 42); this.lblWorkFax_.Name = "lblWorkFax_"; this.lblWorkFax_.Size = new System.Drawing.Size(62, 16); this.lblWorkFax_.TabIndex = 6; this.lblWorkFax_.Text = "Work Fax #"; this.lblWorkFax_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion this.Picture.Controls.Add(this.picPictureBox1); this.Picture.Controls.Add(this.txtPhotoPath); this.Picture.Controls.Add(this.lblPhotoPath); #region Picture this.Picture.Location = new System.Drawing.Point(4, 22); this.Picture.Name = "Picture"; this.Picture.Size = new System.Drawing.Size(264, 262); this.Picture.TabIndex = 3; this.Picture.Text = "Picture"; #endregion #region lblpriv_Email this.lblpriv_Email.AutoSize = true; this.lblpriv_Email.Location = new System.Drawing.Point(8, 114); this.lblpriv_Email.Name = "lblpriv_Email"; this.lblpriv_Email.Size = new System.Drawing.Size(56, 16); this.lblpriv_Email.TabIndex = 12; this.lblpriv_Email.Text = "priv. email"; this.lblpriv_Email.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region txtHomePhone_ this.txtHomePhone_.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtHomePhone_.ForeColor = System.Drawing.Color.Black; this.txtHomePhone_.Location = new System.Drawing.Point(88, 88); this.txtHomePhone_.MaxLength = 50; this.txtHomePhone_.Name = "txtHomePhone_"; this.txtHomePhone_.Size = new System.Drawing.Size(96, 20); this.txtHomePhone_.TabIndex = 11; this.txtHomePhone_.Text = "Home Phone #"; #endregion #region dtpBirthDate this.dtpBirthDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpBirthDate.Location = new System.Drawing.Point(80, 9); this.dtpBirthDate.Name = "dtpBirthDate"; this.dtpBirthDate.Size = new System.Drawing.Size(136, 20); this.dtpBirthDate.TabIndex = 4; #endregion #region txtCountry this.txtCountry.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtCountry.ForeColor = System.Drawing.Color.Black; this.txtCountry.Location = new System.Drawing.Point(80, 114); this.txtCountry.MaxLength = 50; this.txtCountry.Name = "txtCountry"; this.txtCountry.Size = new System.Drawing.Size(160, 20); this.txtCountry.TabIndex = 22; this.txtCountry.Text = "Country"; #endregion this.Address.Controls.Add(this.txtCountry); this.Address.Controls.Add(this.lblCountry); this.Address.Controls.Add(this.txtRegion); this.Address.Controls.Add(this.lblRegion); this.Address.Controls.Add(this.txtPostalCode); this.Address.Controls.Add(this.lblPostalCode); this.Address.Controls.Add(this.txtCity); this.Address.Controls.Add(this.lblCity); this.Address.Controls.Add(this.txtStreet); this.Address.Controls.Add(this.lblStreet); #region Address this.Address.Location = new System.Drawing.Point(8, 116); this.Address.Name = "Address"; this.Address.Size = new System.Drawing.Size(248, 141); this.Address.TabIndex = 12; this.Address.TabStop = false; this.Address.Text = "Address"; #endregion #region lblBirthDate this.lblBirthDate.Location = new System.Drawing.Point(8, 8); this.lblBirthDate.Name = "lblBirthDate"; this.lblBirthDate.Size = new System.Drawing.Size(56, 23); this.lblBirthDate.TabIndex = 3; this.lblBirthDate.Text = "BirthDate"; this.lblBirthDate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region txtRegion this.txtRegion.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtRegion.ForeColor = System.Drawing.Color.Black; this.txtRegion.Location = new System.Drawing.Point(80, 90); this.txtRegion.MaxLength = 50; this.txtRegion.Name = "txtRegion"; this.txtRegion.Size = new System.Drawing.Size(160, 20); this.txtRegion.TabIndex = 20; this.txtRegion.Text = "Region"; #endregion #region txtNotes this.txtNotes.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtNotes.ForeColor = System.Drawing.Color.Black; this.txtNotes.Location = new System.Drawing.Point(8, 104); this.txtNotes.MaxLength = 50; this.txtNotes.Multiline = true; this.txtNotes.Name = "txtNotes"; this.txtNotes.Size = new System.Drawing.Size(248, 152); this.txtNotes.TabIndex = 10; this.txtNotes.Text = "Notes"; #endregion #region txtTitleOfCourtesy this.txtTitleOfCourtesy.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtTitleOfCourtesy.ForeColor = System.Drawing.Color.Black; this.txtTitleOfCourtesy.Location = new System.Drawing.Point(88, 40); this.txtTitleOfCourtesy.MaxLength = 30; this.txtTitleOfCourtesy.Name = "txtTitleOfCourtesy"; this.txtTitleOfCourtesy.Size = new System.Drawing.Size(96, 20); this.txtTitleOfCourtesy.TabIndex = 7; this.txtTitleOfCourtesy.TabStop = false; this.txtTitleOfCourtesy.Text = "TitleOfCourtesy"; #endregion #region txtCity this.txtCity.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtCity.ForeColor = System.Drawing.Color.Black; this.txtCity.Location = new System.Drawing.Point(80, 42); this.txtCity.MaxLength = 50; this.txtCity.Name = "txtCity"; this.txtCity.Size = new System.Drawing.Size(160, 20); this.txtCity.TabIndex = 16; this.txtCity.Text = "City"; #endregion #region txtLastName this.txtLastName.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtLastName.ForeColor = System.Drawing.Color.Black; this.txtLastName.Location = new System.Drawing.Point(88, 64); this.txtLastName.MaxLength = 50; this.txtLastName.Name = "txtLastName"; this.txtLastName.Size = new System.Drawing.Size(166, 20); this.txtLastName.TabIndex = 9; this.txtLastName.Text = "LastName"; #endregion #region txtWorkFax_ this.txtWorkFax_.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtWorkFax_.ForeColor = System.Drawing.Color.Black; this.txtWorkFax_.Location = new System.Drawing.Point(88, 40); this.txtWorkFax_.MaxLength = 50; this.txtWorkFax_.Name = "txtWorkFax_"; this.txtWorkFax_.Size = new System.Drawing.Size(96, 20); this.txtWorkFax_.TabIndex = 7; this.txtWorkFax_.Text = "Work Fax #"; #endregion #region txtWorkEmail this.txtWorkEmail.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtWorkEmail.ForeColor = System.Drawing.Color.Black; this.txtWorkEmail.Location = new System.Drawing.Point(88, 64); this.txtWorkEmail.MaxLength = 50; this.txtWorkEmail.Name = "txtWorkEmail"; this.txtWorkEmail.Size = new System.Drawing.Size(96, 20); this.txtWorkEmail.TabIndex = 9; this.txtWorkEmail.Text = "Work email"; #endregion #region lblHireDate this.lblHireDate.Location = new System.Drawing.Point(8, 40); this.lblHireDate.Name = "lblHireDate"; this.lblHireDate.Size = new System.Drawing.Size(56, 16); this.lblHireDate.TabIndex = 5; this.lblHireDate.Text = "HireDate"; this.lblHireDate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region lblCountry this.lblCountry.AutoSize = true; this.lblCountry.Location = new System.Drawing.Point(8, 116); this.lblCountry.Name = "lblCountry"; this.lblCountry.Size = new System.Drawing.Size(44, 16); this.lblCountry.TabIndex = 21; this.lblCountry.Text = "Country"; this.lblCountry.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region txtExtension this.txtExtension.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtExtension.ForeColor = System.Drawing.Color.Black; this.txtExtension.Location = new System.Drawing.Point(216, 16); this.txtExtension.MaxLength = 50; this.txtExtension.Name = "txtExtension"; this.txtExtension.Size = new System.Drawing.Size(40, 20); this.txtExtension.TabIndex = 5; this.txtExtension.Text = "Extension"; #endregion #region txtPhotoPath this.txtPhotoPath.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtPhotoPath.ForeColor = System.Drawing.Color.Black; this.txtPhotoPath.Location = new System.Drawing.Point(64, 6); this.txtPhotoPath.MaxLength = 50; this.txtPhotoPath.Name = "txtPhotoPath"; this.txtPhotoPath.Size = new System.Drawing.Size(192, 20); this.txtPhotoPath.TabIndex = 5; this.txtPhotoPath.Text = "PhotoPath"; #endregion #region lblStreet this.lblStreet.AutoSize = true; this.lblStreet.Location = new System.Drawing.Point(8, 20); this.lblStreet.Name = "lblStreet"; this.lblStreet.Size = new System.Drawing.Size(34, 16); this.lblStreet.TabIndex = 13; this.lblStreet.Text = "Street"; this.lblStreet.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region lblNotes this.lblNotes.Location = new System.Drawing.Point(8, 88); this.lblNotes.Name = "lblNotes"; this.lblNotes.Size = new System.Drawing.Size(56, 16); this.lblNotes.TabIndex = 9; this.lblNotes.Text = "Notes"; this.lblNotes.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region txtHomeEmail this.txtHomeEmail.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtHomeEmail.ForeColor = System.Drawing.Color.Black; this.txtHomeEmail.Location = new System.Drawing.Point(88, 112); this.txtHomeEmail.MaxLength = 50; this.txtHomeEmail.Name = "txtHomeEmail"; this.txtHomeEmail.Size = new System.Drawing.Size(96, 20); this.txtHomeEmail.TabIndex = 13; this.txtHomeEmail.Text = "Home email"; #endregion #region txtReportsTo this.txtReportsTo.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtReportsTo.ForeColor = System.Drawing.Color.Black; this.txtReportsTo.Location = new System.Drawing.Point(80, 62); this.txtReportsTo.MaxLength = 50; this.txtReportsTo.Name = "txtReportsTo"; this.txtReportsTo.Size = new System.Drawing.Size(176, 20); this.txtReportsTo.TabIndex = 8; this.txtReportsTo.Text = "ReportsTo"; #endregion #region lblReportsTo this.lblReportsTo.Location = new System.Drawing.Point(8, 64); this.lblReportsTo.Name = "lblReportsTo"; this.lblReportsTo.Size = new System.Drawing.Size(72, 16); this.lblReportsTo.TabIndex = 7; this.lblReportsTo.Text = "ReportsTo"; this.lblReportsTo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region txtWorkPhone_ this.txtWorkPhone_.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtWorkPhone_.ForeColor = System.Drawing.Color.Black; this.txtWorkPhone_.Location = new System.Drawing.Point(88, 16); this.txtWorkPhone_.MaxLength = 50; this.txtWorkPhone_.Name = "txtWorkPhone_"; this.txtWorkPhone_.Size = new System.Drawing.Size(96, 20); this.txtWorkPhone_.TabIndex = 3; this.txtWorkPhone_.Text = "Work Phone #"; #endregion #region txtEmployeeID this.txtEmployeeID.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtEmployeeID.ForeColor = System.Drawing.Color.Black; this.txtEmployeeID.Location = new System.Drawing.Point(88, 11); this.txtEmployeeID.MaxLength = 12; this.txtEmployeeID.Name = "txtEmployeeID"; this.txtEmployeeID.ReadOnly = true; this.txtEmployeeID.Size = new System.Drawing.Size(96, 20); this.txtEmployeeID.TabIndex = 1; this.txtEmployeeID.Text = "EmployeeID"; #endregion #region lblRegion this.lblRegion.AutoSize = true; this.lblRegion.Location = new System.Drawing.Point(8, 92); this.lblRegion.Name = "lblRegion"; this.lblRegion.Size = new System.Drawing.Size(40, 16); this.lblRegion.TabIndex = 19; this.lblRegion.Text = "Region"; this.lblRegion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion this.Name_Address.Controls.Add(this.txtTitleOfCourtesy); this.Name_Address.Controls.Add(this.lblTitleOfCourtesy); this.Name_Address.Controls.Add(this.txtTitle); this.Name_Address.Controls.Add(this.lblTitle); this.Name_Address.Controls.Add(this.Address); this.Name_Address.Controls.Add(this.txtFirstName); this.Name_Address.Controls.Add(this.lblFirstName); this.Name_Address.Controls.Add(this.txtLastName); this.Name_Address.Controls.Add(this.lblLastName); #region Name_Address this.Name_Address.Location = new System.Drawing.Point(4, 22); this.Name_Address.Name = "Name_Address"; this.Name_Address.Size = new System.Drawing.Size(264, 262); this.Name_Address.TabIndex = 3; this.Name_Address.Text = "Name/Address"; #endregion #region lblpriv_Phone_ this.lblpriv_Phone_.AutoSize = true; this.lblpriv_Phone_.Location = new System.Drawing.Point(8, 90); this.lblpriv_Phone_.Name = "lblpriv_Phone_"; this.lblpriv_Phone_.Size = new System.Drawing.Size(71, 16); this.lblpriv_Phone_.TabIndex = 10; this.lblpriv_Phone_.Text = "priv. Phone #"; this.lblpriv_Phone_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion this.Communication.Controls.Add(this.txtExtension); this.Communication.Controls.Add(this.txtHomeEmail); this.Communication.Controls.Add(this.txtHomePhone_); this.Communication.Controls.Add(this.lblpriv_Email); this.Communication.Controls.Add(this.lblpriv_Phone_); this.Communication.Controls.Add(this.txtWorkEmail); this.Communication.Controls.Add(this.txtWorkFax_); this.Communication.Controls.Add(this.lblWorkEmail); this.Communication.Controls.Add(this.lblWorkFax_); this.Communication.Controls.Add(this.txtWorkPhone_); this.Communication.Controls.Add(this.lblWorkPhone_); this.Communication.Controls.Add(this.lblExt_); #region Communication this.Communication.Location = new System.Drawing.Point(4, 22); this.Communication.Name = "Communication"; this.Communication.Size = new System.Drawing.Size(264, 262); this.Communication.TabIndex = 1; this.Communication.Text = "Communication"; #endregion #region lblTitle this.lblTitle.AutoSize = true; this.lblTitle.Location = new System.Drawing.Point(8, 16); this.lblTitle.Name = "lblTitle"; this.lblTitle.Size = new System.Drawing.Size(26, 16); this.lblTitle.TabIndex = 4; this.lblTitle.Text = "Title"; this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region lblPostalCode this.lblPostalCode.AutoSize = true; this.lblPostalCode.Location = new System.Drawing.Point(8, 68); this.lblPostalCode.Name = "lblPostalCode"; this.lblPostalCode.Size = new System.Drawing.Size(63, 16); this.lblPostalCode.TabIndex = 17; this.lblPostalCode.Text = "PostalCode"; this.lblPostalCode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region lblEmployeeID this.lblEmployeeID.AutoSize = true; this.lblEmployeeID.Location = new System.Drawing.Point(16, 13); this.lblEmployeeID.Name = "lblEmployeeID"; this.lblEmployeeID.Size = new System.Drawing.Size(66, 16); this.lblEmployeeID.TabIndex = 0; this.lblEmployeeID.Text = "EmployeeID"; this.lblEmployeeID.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion this.Security.Controls.Add(this.txtNotes); this.Security.Controls.Add(this.txtReportsTo); this.Security.Controls.Add(this.lblNotes); this.Security.Controls.Add(this.lblReportsTo); this.Security.Controls.Add(this.dtpHireDate); this.Security.Controls.Add(this.lblHireDate); this.Security.Controls.Add(this.dtpBirthDate); this.Security.Controls.Add(this.lblBirthDate); #region Security this.Security.Location = new System.Drawing.Point(4, 22); this.Security.Name = "Security"; this.Security.Size = new System.Drawing.Size(264, 262); this.Security.TabIndex = 2; this.Security.Text = "Security"; #endregion #region lblLastName this.lblLastName.AutoSize = true; this.lblLastName.Location = new System.Drawing.Point(8, 64); this.lblLastName.Name = "lblLastName"; this.lblLastName.Size = new System.Drawing.Size(56, 16); this.lblLastName.TabIndex = 8; this.lblLastName.Text = "LastName"; this.lblLastName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region picPictureBox1 this.picPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("picPictureBox1.Image"))); this.picPictureBox1.Location = new System.Drawing.Point(48, 40); this.picPictureBox1.Name = "picPictureBox1"; this.picPictureBox1.Size = new System.Drawing.Size(168, 208); this.picPictureBox1.TabIndex = 6; this.picPictureBox1.TabStop = false; this.picPictureBox1.Text = ""; #endregion #region lblTitleOfCourtesy this.lblTitleOfCourtesy.AutoSize = true; this.lblTitleOfCourtesy.Location = new System.Drawing.Point(8, 40); this.lblTitleOfCourtesy.Name = "lblTitleOfCourtesy"; this.lblTitleOfCourtesy.Size = new System.Drawing.Size(83, 16); this.lblTitleOfCourtesy.TabIndex = 6; this.lblTitleOfCourtesy.Text = "TitleOfCourtesy"; this.lblTitleOfCourtesy.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region lblExt_ this.lblExt_.Location = new System.Drawing.Point(192, 16); this.lblExt_.Name = "lblExt_"; this.lblExt_.Size = new System.Drawing.Size(24, 20); this.lblExt_.TabIndex = 4; this.lblExt_.Text = "Ext."; this.lblExt_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region lblPhotoPath this.lblPhotoPath.Location = new System.Drawing.Point(8, 8); this.lblPhotoPath.Name = "lblPhotoPath"; this.lblPhotoPath.Size = new System.Drawing.Size(64, 16); this.lblPhotoPath.TabIndex = 4; this.lblPhotoPath.Text = "PhotoPath"; this.lblPhotoPath.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region lblWorkPhone_ this.lblWorkPhone_.AutoSize = true; this.lblWorkPhone_.Location = new System.Drawing.Point(8, 18); this.lblWorkPhone_.Name = "lblWorkPhone_"; this.lblWorkPhone_.Size = new System.Drawing.Size(76, 16); this.lblWorkPhone_.TabIndex = 2; this.lblWorkPhone_.Text = "Work Phone #"; this.lblWorkPhone_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region lblCity this.lblCity.AutoSize = true; this.lblCity.Location = new System.Drawing.Point(8, 44); this.lblCity.Name = "lblCity"; this.lblCity.Size = new System.Drawing.Size(24, 16); this.lblCity.TabIndex = 15; this.lblCity.Text = "City"; this.lblCity.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; #endregion #region txtStreet this.txtStreet.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192))); this.txtStreet.ForeColor = System.Drawing.Color.Black; this.txtStreet.Location = new System.Drawing.Point(80, 18); this.txtStreet.MaxLength = 50; this.txtStreet.Name = "txtStreet"; this.txtStreet.Size = new System.Drawing.Size(160, 20); this.txtStreet.TabIndex = 14; this.txtStreet.Text = "Street"; #endregion #region this this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(296, 342); this.Controls.Add(this.txtEmployeeID); this.Controls.Add(this.lblEmployeeID); this.Controls.Add(this.tabTabControl1); this.Name = "ScreenShots"; this.Text = "Form1"; #endregion this.tabTabControl1.ResumeLayout(false); this.Picture.ResumeLayout(false); this.Address.ResumeLayout(false); this.Name_Address.ResumeLayout(false); this.Communication.ResumeLayout(false); this.Security.ResumeLayout(false); this.ResumeLayout(false); } // end private void InitializeComponent() #endregion #region void InitializeDataSource(suite4.net.Northwind.EmployeesRow employeesRowData) public void InitializeDataSource(suite4.net.Northwind.EmployeesRow employeesRowData) { this.SuspendLayout(); // Clear DataBindings for all components. this.txtFirstName.DataBindings.Clear(); this.txtTitle.DataBindings.Clear(); this.txtPostalCode.DataBindings.Clear(); this.txtHomePhone_.DataBindings.Clear(); this.txtCountry.DataBindings.Clear(); this.txtRegion.DataBindings.Clear(); this.txtNotes.DataBindings.Clear(); this.txtTitleOfCourtesy.DataBindings.Clear(); this.txtCity.DataBindings.Clear(); this.txtLastName.DataBindings.Clear(); this.txtWorkFax_.DataBindings.Clear(); this.txtWorkEmail.DataBindings.Clear(); this.txtExtension.DataBindings.Clear(); this.txtPhotoPath.DataBindings.Clear(); this.txtHomeEmail.DataBindings.Clear(); this.txtReportsTo.DataBindings.Clear(); this.txtWorkPhone_.DataBindings.Clear(); this.txtEmployeeID.DataBindings.Clear(); this.txtStreet.DataBindings.Clear(); this._EmployeesRowData = employeesRowData; if((this._EmployeesRowData != null)) { this.txtFirstName.DataBindings.Add("Text", this._EmployeesRowData, "FirstName"); this.txtTitle.DataBindings.Add("Text", this._EmployeesRowData, "Title"); this.txtPostalCode.DataBindings.Add("Text", this._EmployeesRowData, "PostalCode"); this.txtHomePhone_.DataBindings.Add("Text", this._EmployeesRowData, "HomePhone"); this.txtCountry.DataBindings.Add("Text", this._EmployeesRowData, "Country"); this.txtRegion.DataBindings.Add("Text", this._EmployeesRowData, "Region"); this.txtNotes.DataBindings.Add("Text", this._EmployeesRowData, "Notes"); this.txtTitleOfCourtesy.DataBindings.Add("Text", this._EmployeesRowData, "TitleOfCourtesy"); this.txtCity.DataBindings.Add("Text", this._EmployeesRowData, "City"); this.txtLastName.DataBindings.Add("Text", this._EmployeesRowData, "LastName"); this.txtWorkFax_.DataBindings.Add("Text", this._EmployeesRowData, "HomePhone"); this.txtWorkEmail.DataBindings.Add("Text", this._EmployeesRowData, "HomePhone"); this.txtExtension.DataBindings.Add("Text", this._EmployeesRowData, "Extension"); this.txtPhotoPath.DataBindings.Add("Text", this._EmployeesRowData, "PhotoPath"); this.txtHomeEmail.DataBindings.Add("Text", this._EmployeesRowData, "HomePhone"); this.txtReportsTo.DataBindings.Add("Text", this._EmployeesRowData, "ReportsTo"); this.txtWorkPhone_.DataBindings.Add("Text", this._EmployeesRowData, "HomePhone"); this.txtEmployeeID.DataBindings.Add("Text", this._EmployeesRowData, "EmployeeID"); this.txtStreet.DataBindings.Add("Text", this._EmployeesRowData, "Address"); } // end if((this._EmployeesRowData != null)) this.ResumeLayout(false); } // end public void InitializeDataSource(suite4.net.Northwind.EmployeesRow employeesRowData) #endregion } // end public class ScreenShots } // end namespace suite4.net