From 15f30ce8f8d256e90ac522e720ec90113ca22df9 Mon Sep 17 00:00:00 2001 From: kougyokugentou <41278462+kougyokugentou@users.noreply.github.com> Date: Mon, 18 Jan 2021 20:43:59 -0800 Subject: [PATCH] Initial design of admin form. --- frmAdminForm.Designer.cs | 64 +++++++++++++++++++++++++++++++++++++++- frmAdminForm.resx | 3 ++ 2 files changed, 66 insertions(+), 1 deletion(-) diff --git a/frmAdminForm.Designer.cs b/frmAdminForm.Designer.cs index 0783713..deb4b35 100644 --- a/frmAdminForm.Designer.cs +++ b/frmAdminForm.Designer.cs @@ -29,20 +29,82 @@ namespace GreatHomeChildcare /// private void InitializeComponent() { + this.btnReports = new System.Windows.Forms.Button(); + this.btnClose = new System.Windows.Forms.Button(); + this.sqLiteCommand1 = new System.Data.SQLite.SQLiteCommand(); + this.btnAdd = new System.Windows.Forms.Button(); + this.dgvChildren = new System.Windows.Forms.DataGridView(); + ((System.ComponentModel.ISupportInitialize)(this.dgvChildren)).BeginInit(); this.SuspendLayout(); // + // btnReports + // + this.btnReports.Location = new System.Drawing.Point(12, 89); + this.btnReports.Name = "btnReports"; + this.btnReports.Size = new System.Drawing.Size(112, 32); + this.btnReports.TabIndex = 1; + this.btnReports.Text = "Reports"; + this.btnReports.UseVisualStyleBackColor = true; + // + // btnClose + // + this.btnClose.Location = new System.Drawing.Point(12, 28); + this.btnClose.Name = "btnClose"; + this.btnClose.Size = new System.Drawing.Size(151, 40); + this.btnClose.TabIndex = 2; + this.btnClose.Text = "Back to sign in page"; + this.btnClose.UseVisualStyleBackColor = true; + // + // sqLiteCommand1 + // + this.sqLiteCommand1.CommandText = null; + // + // btnAdd + // + this.btnAdd.Location = new System.Drawing.Point(12, 146); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(140, 50); + this.btnAdd.TabIndex = 3; + this.btnAdd.Text = "Add New Child"; + this.btnAdd.UseVisualStyleBackColor = true; + // + // dgvChildren + // + this.dgvChildren.AllowUserToAddRows = false; + this.dgvChildren.AllowUserToDeleteRows = false; + this.dgvChildren.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvChildren.Location = new System.Drawing.Point(217, 36); + this.dgvChildren.MultiSelect = false; + this.dgvChildren.Name = "dgvChildren"; + this.dgvChildren.ReadOnly = true; + this.dgvChildren.RowHeadersWidth = 51; + this.dgvChildren.RowTemplate.Height = 24; + this.dgvChildren.Size = new System.Drawing.Size(571, 392); + this.dgvChildren.TabIndex = 4; + // // frmAdminForm // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.dgvChildren); + this.Controls.Add(this.btnAdd); + this.Controls.Add(this.btnClose); + this.Controls.Add(this.btnReports); this.Name = "frmAdminForm"; - this.Text = "frmAdminForm"; + this.Text = "Administration : Great Home Childcare"; this.Load += new System.EventHandler(this.frmAdminForm_Load); + ((System.ComponentModel.ISupportInitialize)(this.dgvChildren)).EndInit(); this.ResumeLayout(false); } #endregion + + private System.Windows.Forms.Button btnReports; + private System.Windows.Forms.Button btnClose; + private System.Data.SQLite.SQLiteCommand sqLiteCommand1; + private System.Windows.Forms.Button btnAdd; + private System.Windows.Forms.DataGridView dgvChildren; } } \ No newline at end of file diff --git a/frmAdminForm.resx b/frmAdminForm.resx index 1af7de1..ff35c0b 100644 --- a/frmAdminForm.resx +++ b/frmAdminForm.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file