diff --git a/frmChildCrud.Designer.cs b/frmChildCrud.Designer.cs index 967f2f6..d488033 100644 --- a/frmChildCrud.Designer.cs +++ b/frmChildCrud.Designer.cs @@ -45,6 +45,12 @@ this.addressTextBox = new System.Windows.Forms.TextBox(); this.lblGuardians = new System.Windows.Forms.Label(); this.dgvGuardians = new System.Windows.Forms.DataGridView(); + this.id = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.isAdmin = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.LastName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.FirstName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PhoneNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.EmailAddress = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.btnAddExistingGuardian = new System.Windows.Forms.Button(); this.btnEditGuardian = new System.Windows.Forms.Button(); this.btnDeleteGuardian = new System.Windows.Forms.Button(); @@ -61,12 +67,6 @@ this.cbExistingGuardians = new System.Windows.Forms.ComboBox(); this.btnNewGuardian = new System.Windows.Forms.Button(); this.childBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.id = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.isAdmin = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.LastName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.FirstName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PhoneNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.EmailAddress = new System.Windows.Forms.DataGridViewTextBoxColumn(); firstNameLabel = new System.Windows.Forms.Label(); lastNameLabel = new System.Windows.Forms.Label(); raceLabel = new System.Windows.Forms.Label(); @@ -191,6 +191,7 @@ // genderComboBox // this.genderComboBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.childBindingSource, "gender", true)); + this.genderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.genderComboBox.FormattingEnabled = true; this.genderComboBox.Location = new System.Drawing.Point(174, 107); this.genderComboBox.Name = "genderComboBox"; @@ -237,6 +238,56 @@ this.dgvGuardians.Size = new System.Drawing.Size(979, 106); this.dgvGuardians.TabIndex = 12; // + // id + // + this.id.HeaderText = "id"; + this.id.MinimumWidth = 6; + this.id.Name = "id"; + this.id.ReadOnly = true; + this.id.Visible = false; + this.id.Width = 125; + // + // isAdmin + // + this.isAdmin.HeaderText = "isAdmin"; + this.isAdmin.MinimumWidth = 6; + this.isAdmin.Name = "isAdmin"; + this.isAdmin.ReadOnly = true; + this.isAdmin.Visible = false; + this.isAdmin.Width = 125; + // + // LastName + // + this.LastName.HeaderText = "LastName"; + this.LastName.MinimumWidth = 6; + this.LastName.Name = "LastName"; + this.LastName.ReadOnly = true; + this.LastName.Width = 125; + // + // FirstName + // + this.FirstName.HeaderText = "FirstName"; + this.FirstName.MinimumWidth = 6; + this.FirstName.Name = "FirstName"; + this.FirstName.ReadOnly = true; + this.FirstName.Width = 125; + // + // PhoneNumber + // + this.PhoneNumber.HeaderText = "PhoneNumber"; + this.PhoneNumber.MinimumWidth = 6; + this.PhoneNumber.Name = "PhoneNumber"; + this.PhoneNumber.ReadOnly = true; + this.PhoneNumber.Width = 125; + // + // EmailAddress + // + this.EmailAddress.HeaderText = "EmailAddress"; + this.EmailAddress.MinimumWidth = 6; + this.EmailAddress.Name = "EmailAddress"; + this.EmailAddress.ReadOnly = true; + this.EmailAddress.Width = 125; + // // btnAddExistingGuardian // this.btnAddExistingGuardian.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -386,6 +437,7 @@ this.cbExistingGuardians.Name = "cbExistingGuardians"; this.cbExistingGuardians.Size = new System.Drawing.Size(171, 24); this.cbExistingGuardians.TabIndex = 26; + this.cbExistingGuardians.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.cbExistingGuardians_KeyPress); // // btnNewGuardian // @@ -404,56 +456,6 @@ // this.childBindingSource.DataSource = typeof(GreatHomeChildcare.Models.Child); // - // id - // - this.id.HeaderText = "id"; - this.id.MinimumWidth = 6; - this.id.Name = "id"; - this.id.ReadOnly = true; - this.id.Visible = false; - this.id.Width = 125; - // - // isAdmin - // - this.isAdmin.HeaderText = "isAdmin"; - this.isAdmin.MinimumWidth = 6; - this.isAdmin.Name = "isAdmin"; - this.isAdmin.ReadOnly = true; - this.isAdmin.Visible = false; - this.isAdmin.Width = 125; - // - // LastName - // - this.LastName.HeaderText = "LastName"; - this.LastName.MinimumWidth = 6; - this.LastName.Name = "LastName"; - this.LastName.ReadOnly = true; - this.LastName.Width = 125; - // - // FirstName - // - this.FirstName.HeaderText = "FirstName"; - this.FirstName.MinimumWidth = 6; - this.FirstName.Name = "FirstName"; - this.FirstName.ReadOnly = true; - this.FirstName.Width = 125; - // - // PhoneNumber - // - this.PhoneNumber.HeaderText = "PhoneNumber"; - this.PhoneNumber.MinimumWidth = 6; - this.PhoneNumber.Name = "PhoneNumber"; - this.PhoneNumber.ReadOnly = true; - this.PhoneNumber.Width = 125; - // - // EmailAddress - // - this.EmailAddress.HeaderText = "EmailAddress"; - this.EmailAddress.MinimumWidth = 6; - this.EmailAddress.Name = "EmailAddress"; - this.EmailAddress.ReadOnly = true; - this.EmailAddress.Width = 125; - // // frmChildCrud // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); diff --git a/frmChildCrud.resx b/frmChildCrud.resx index 65c1011..ea853c6 100644 --- a/frmChildCrud.resx +++ b/frmChildCrud.resx @@ -136,14 +136,14 @@ False - 205, 17 + 256, 21 AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABG - DwAAAk1TRnQBSQFMAgEBCQEAATgBAQE4AQEBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + DwAAAk1TRnQBSQFMAgEBCQEAAUgBAQFIAQEBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA @@ -215,7 +215,25 @@ False - 17, 17 + 21, 21 + + + True + + + True + + + True + + + True + + + True + + + True True @@ -236,10 +254,10 @@ True - 362, 17 + 453, 21 - 553, 16 + 691, 20 @@ -1266,4 +1284,7 @@ AAAAAElFTkSuQmCC + + 21, 21 + \ No newline at end of file