Crud form design changes

This commit is contained in:
kougyokugentou 2021-01-22 23:17:30 -08:00
parent 25db3a9f7d
commit e8b9d3f50e
2 changed files with 96 additions and 70 deletions

117
frmChildCrud.Designer.cs generated
View File

@ -34,9 +34,12 @@
System.Windows.Forms.Label raceLabel;
System.Windows.Forms.Label genderLabel;
System.Windows.Forms.Label photoLabel;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmChildCrud));
System.Windows.Forms.Label addressLabel;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmChildCrud));
System.Windows.Forms.Label dOBLabel;
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.firstNameTextBox = new System.Windows.Forms.TextBox();
this.childBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.lastNameTextBox = new System.Windows.Forms.TextBox();
this.raceTextBox = new System.Windows.Forms.TextBox();
this.genderComboBox = new System.Windows.Forms.ComboBox();
@ -49,7 +52,6 @@
this.PhoneNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.EmailAddress = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnAddGuardian = new System.Windows.Forms.Button();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.btnEditGuardian = new System.Windows.Forms.Button();
this.btnDeleteGuardian = new System.Windows.Forms.Button();
this.btnPhotoFromCam = new System.Windows.Forms.Button();
@ -59,19 +61,20 @@
this.btnCancel = new System.Windows.Forms.Button();
this.idNumericUpDown = new System.Windows.Forms.NumericUpDown();
this.openFileDialogPhotoFromDisk = new System.Windows.Forms.OpenFileDialog();
this.childBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.frmChildCrudBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
this.dOBMonthCalendar = new System.Windows.Forms.MonthCalendar();
firstNameLabel = new System.Windows.Forms.Label();
lastNameLabel = new System.Windows.Forms.Label();
raceLabel = new System.Windows.Forms.Label();
genderLabel = new System.Windows.Forms.Label();
photoLabel = new System.Windows.Forms.Label();
addressLabel = new System.Windows.Forms.Label();
dOBLabel = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.childBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvGuardians)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.photoPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.idNumericUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.childBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.frmChildCrudBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
this.SuspendLayout();
//
// firstNameLabel
@ -113,12 +116,37 @@
// photoLabel
//
photoLabel.AutoSize = true;
photoLabel.Location = new System.Drawing.Point(374, 1);
photoLabel.Location = new System.Drawing.Point(704, -1);
photoLabel.Name = "photoLabel";
photoLabel.Size = new System.Drawing.Size(48, 17);
photoLabel.TabIndex = 21;
photoLabel.Text = "photo:";
//
// addressLabel
//
addressLabel.AutoSize = true;
addressLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
addressLabel.ImageIndex = 1;
addressLabel.ImageList = this.imageList1;
addressLabel.Location = new System.Drawing.Point(12, 165);
addressLabel.Name = "addressLabel";
addressLabel.Size = new System.Drawing.Size(84, 17);
addressLabel.TabIndex = 9;
addressLabel.Text = " Address:";
//
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.imageList1.Images.SetKeyName(0, "AddButton_16x.png");
this.imageList1.Images.SetKeyName(1, "Address_16x.png");
this.imageList1.Images.SetKeyName(2, "Camera_16x.png");
this.imageList1.Images.SetKeyName(3, "Cancel_16x.png");
this.imageList1.Images.SetKeyName(4, "DeleteUser_16x.png");
this.imageList1.Images.SetKeyName(5, "Edit_16x.png");
this.imageList1.Images.SetKeyName(6, "SaveClose_16x.png");
this.imageList1.Images.SetKeyName(7, "OpenfileDialog_16x.png");
//
// firstNameTextBox
//
this.firstNameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.childBindingSource, "FirstName", true));
@ -127,6 +155,10 @@
this.firstNameTextBox.Size = new System.Drawing.Size(100, 22);
this.firstNameTextBox.TabIndex = 2;
//
// childBindingSource
//
this.childBindingSource.DataSource = typeof(GreatHomeChildcare.Models.Child);
//
// lastNameTextBox
//
this.lastNameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.childBindingSource, "LastName", true));
@ -186,7 +218,7 @@
this.dgvGuardians.ReadOnly = true;
this.dgvGuardians.RowHeadersWidth = 51;
this.dgvGuardians.RowTemplate.Height = 24;
this.dgvGuardians.Size = new System.Drawing.Size(807, 106);
this.dgvGuardians.Size = new System.Drawing.Size(979, 106);
this.dgvGuardians.TabIndex = 12;
//
// id
@ -243,19 +275,6 @@
this.btnAddGuardian.UseVisualStyleBackColor = true;
this.btnAddGuardian.Click += new System.EventHandler(this.btnAddGuardian_Click);
//
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.imageList1.Images.SetKeyName(0, "AddButton_16x.png");
this.imageList1.Images.SetKeyName(1, "Address_16x.png");
this.imageList1.Images.SetKeyName(2, "Camera_16x.png");
this.imageList1.Images.SetKeyName(3, "Cancel_16x.png");
this.imageList1.Images.SetKeyName(4, "DeleteUser_16x.png");
this.imageList1.Images.SetKeyName(5, "Edit_16x.png");
this.imageList1.Images.SetKeyName(6, "SaveClose_16x.png");
this.imageList1.Images.SetKeyName(7, "OpenfileDialog_16x.png");
//
// btnEditGuardian
//
this.btnEditGuardian.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -287,7 +306,7 @@
this.btnPhotoFromCam.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnPhotoFromCam.ImageIndex = 2;
this.btnPhotoFromCam.ImageList = this.imageList1;
this.btnPhotoFromCam.Location = new System.Drawing.Point(325, 204);
this.btnPhotoFromCam.Location = new System.Drawing.Point(655, 202);
this.btnPhotoFromCam.Name = "btnPhotoFromCam";
this.btnPhotoFromCam.Size = new System.Drawing.Size(146, 42);
this.btnPhotoFromCam.TabIndex = 18;
@ -300,7 +319,7 @@
this.btnPhotoFromDisk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnPhotoFromDisk.ImageIndex = 7;
this.btnPhotoFromDisk.ImageList = this.imageList1;
this.btnPhotoFromDisk.Location = new System.Drawing.Point(323, 263);
this.btnPhotoFromDisk.Location = new System.Drawing.Point(653, 261);
this.btnPhotoFromDisk.Name = "btnPhotoFromDisk";
this.btnPhotoFromDisk.Size = new System.Drawing.Size(147, 41);
this.btnPhotoFromDisk.TabIndex = 19;
@ -313,7 +332,7 @@
this.btnSave.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnSave.ImageIndex = 6;
this.btnSave.ImageList = this.imageList1;
this.btnSave.Location = new System.Drawing.Point(675, 61);
this.btnSave.Location = new System.Drawing.Point(847, 60);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(147, 43);
this.btnSave.TabIndex = 21;
@ -325,7 +344,7 @@
//
this.photoPictureBox.DataBindings.Add(new System.Windows.Forms.Binding("Image", this.childBindingSource, "photo", true));
this.photoPictureBox.Image = global::GreatHomeChildcare.Properties.Resources.child;
this.photoPictureBox.Location = new System.Drawing.Point(323, 21);
this.photoPictureBox.Location = new System.Drawing.Point(653, 19);
this.photoPictureBox.Name = "photoPictureBox";
this.photoPictureBox.Size = new System.Drawing.Size(156, 161);
this.photoPictureBox.TabIndex = 22;
@ -336,7 +355,7 @@
this.btnCancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnCancel.ImageIndex = 3;
this.btnCancel.ImageList = this.imageList1;
this.btnCancel.Location = new System.Drawing.Point(675, 12);
this.btnCancel.Location = new System.Drawing.Point(847, 11);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(147, 43);
this.btnCancel.TabIndex = 23;
@ -347,7 +366,7 @@
// idNumericUpDown
//
this.idNumericUpDown.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.childBindingSource, "id", true));
this.idNumericUpDown.Location = new System.Drawing.Point(733, 126);
this.idNumericUpDown.Location = new System.Drawing.Point(905, 125);
this.idNumericUpDown.Name = "idNumericUpDown";
this.idNumericUpDown.ReadOnly = true;
this.idNumericUpDown.Size = new System.Drawing.Size(76, 22);
@ -355,35 +374,38 @@
this.idNumericUpDown.TabStop = false;
this.idNumericUpDown.Visible = false;
//
// addressLabel
//
addressLabel.AutoSize = true;
addressLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
addressLabel.ImageIndex = 1;
addressLabel.ImageList = this.imageList1;
addressLabel.Location = new System.Drawing.Point(12, 165);
addressLabel.Name = "addressLabel";
addressLabel.Size = new System.Drawing.Size(84, 17);
addressLabel.TabIndex = 9;
addressLabel.Text = " Address:";
//
// openFileDialogPhotoFromDisk
//
this.openFileDialogPhotoFromDisk.FileName = "openFileDialog1";
//
// childBindingSource
// errorProvider1
//
this.childBindingSource.DataSource = typeof(GreatHomeChildcare.Models.Child);
this.errorProvider1.ContainerControl = this;
//
// frmChildCrudBindingSource
// dOBLabel
//
this.frmChildCrudBindingSource.DataSource = typeof(GreatHomeChildcare.frmChildCrud);
dOBLabel.AutoSize = true;
dOBLabel.Location = new System.Drawing.Point(425, 19);
dOBLabel.Name = "dOBLabel";
dOBLabel.Size = new System.Drawing.Size(42, 17);
dOBLabel.TabIndex = 24;
dOBLabel.Text = "DOB:";
//
// dOBMonthCalendar
//
this.dOBMonthCalendar.DataBindings.Add(new System.Windows.Forms.Binding("SelectionRange", this.childBindingSource, "DOB", true));
this.dOBMonthCalendar.Location = new System.Drawing.Point(339, 45);
this.dOBMonthCalendar.MaxSelectionCount = 1;
this.dOBMonthCalendar.Name = "dOBMonthCalendar";
this.dOBMonthCalendar.TabIndex = 25;
//
// frmChildCrud
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(834, 608);
this.ClientSize = new System.Drawing.Size(1004, 608);
this.Controls.Add(dOBLabel);
this.Controls.Add(this.dOBMonthCalendar);
this.Controls.Add(this.idNumericUpDown);
this.Controls.Add(this.btnCancel);
this.Controls.Add(photoLabel);
@ -409,11 +431,11 @@
this.Name = "frmChildCrud";
this.Text = "Child Management : Great Home Childcare";
this.Load += new System.EventHandler(this.frmChildCrud_Load);
((System.ComponentModel.ISupportInitialize)(this.childBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvGuardians)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.photoPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.idNumericUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.childBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.frmChildCrudBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -439,12 +461,13 @@
private System.Windows.Forms.PictureBox photoPictureBox;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.NumericUpDown idNumericUpDown;
private System.Windows.Forms.BindingSource frmChildCrudBindingSource;
private System.Windows.Forms.DataGridViewTextBoxColumn id;
private System.Windows.Forms.DataGridViewTextBoxColumn LastName;
private System.Windows.Forms.DataGridViewTextBoxColumn FirstName;
private System.Windows.Forms.DataGridViewTextBoxColumn PhoneNumber;
private System.Windows.Forms.DataGridViewTextBoxColumn EmailAddress;
private System.Windows.Forms.OpenFileDialog openFileDialogPhotoFromDisk;
private System.Windows.Forms.ErrorProvider errorProvider1;
private System.Windows.Forms.MonthCalendar dOBMonthCalendar;
}
}

View File

@ -132,23 +132,8 @@
<metadata name="photoLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="childBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LastName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="FirstName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PhoneNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="EmailAddress.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
<metadata name="addressLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>205, 17</value>
@ -158,7 +143,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACO
DgAAAk1TRnQBSQFMAgEBCAEAAYABAAGAAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
DgAAAk1TRnQBSQFMAgEBCAEAAYgBAAGIAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
@ -223,13 +208,31 @@
AeMBwwX/Ae8B9ws=
</value>
</data>
<metadata name="addressLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
<metadata name="childBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LastName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="FirstName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PhoneNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="EmailAddress.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="openFileDialogPhotoFromDisk.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>581, 17</value>
<value>362, 17</value>
</metadata>
<metadata name="frmChildCrudBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>599, 17</value>
<metadata name="errorProvider1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>626, 17</value>
</metadata>
<metadata name="dOBLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>