From e0d893f0177b870414833a3e18bb08915a214c03 Mon Sep 17 00:00:00 2001 From: Adam McCane Date: Fri, 16 Feb 2024 12:46:38 -0500 Subject: [PATCH] Added button, labels, and text boxes to the add refill form. --- .../Louis'-Pharmacy_CNSA212-FP.csproj | 3 + .../frmRefillAdd.Designer.cs | 132 +++++++++++++++++- Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.resx | 120 ++++++++++++++++ 3 files changed, 254 insertions(+), 1 deletion(-) create mode 100644 Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.resx diff --git a/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj b/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj index 48fa102..f79590e 100644 --- a/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj +++ b/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj @@ -125,6 +125,9 @@ frmRefill.cs + + frmRefillAdd.cs + frmWelcome.cs diff --git a/Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.Designer.cs index 2f7396e..120a0ff 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.Designer.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.Designer.cs @@ -28,12 +28,142 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + this.lblRefillID = new System.Windows.Forms.Label(); + this.lblRefillDate = new System.Windows.Forms.Label(); + this.lblPatientID = new System.Windows.Forms.Label(); + this.lblMedicationID = new System.Windows.Forms.Label(); + this.lblRxNumber = new System.Windows.Forms.Label(); + this.txtRefillID = new System.Windows.Forms.TextBox(); + this.txtRefillDate = new System.Windows.Forms.TextBox(); + this.txtPatientID = new System.Windows.Forms.TextBox(); + this.txtMedicationID = new System.Windows.Forms.TextBox(); + this.txtRxNumber = new System.Windows.Forms.TextBox(); + this.btnAdd = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // lblRefillID + // + this.lblRefillID.AutoSize = true; + this.lblRefillID.Location = new System.Drawing.Point(103, 75); + this.lblRefillID.Name = "lblRefillID"; + this.lblRefillID.Size = new System.Drawing.Size(47, 13); + this.lblRefillID.TabIndex = 0; + this.lblRefillID.Text = "Refill ID:"; + // + // lblRefillDate + // + this.lblRefillDate.AutoSize = true; + this.lblRefillDate.Location = new System.Drawing.Point(103, 146); + this.lblRefillDate.Name = "lblRefillDate"; + this.lblRefillDate.Size = new System.Drawing.Size(59, 13); + this.lblRefillDate.TabIndex = 1; + this.lblRefillDate.Text = "Refill Date:"; + // + // lblPatientID + // + this.lblPatientID.AutoSize = true; + this.lblPatientID.Location = new System.Drawing.Point(103, 221); + this.lblPatientID.Name = "lblPatientID"; + this.lblPatientID.Size = new System.Drawing.Size(57, 13); + this.lblPatientID.TabIndex = 2; + this.lblPatientID.Text = "Patient ID:"; + // + // lblMedicationID + // + this.lblMedicationID.AutoSize = true; + this.lblMedicationID.Location = new System.Drawing.Point(425, 75); + this.lblMedicationID.Name = "lblMedicationID"; + this.lblMedicationID.Size = new System.Drawing.Size(76, 13); + this.lblMedicationID.TabIndex = 3; + this.lblMedicationID.Text = "Medication ID:"; + // + // lblRxNumber + // + this.lblRxNumber.AutoSize = true; + this.lblRxNumber.Location = new System.Drawing.Point(425, 146); + this.lblRxNumber.Name = "lblRxNumber"; + this.lblRxNumber.Size = new System.Drawing.Size(63, 13); + this.lblRxNumber.TabIndex = 4; + this.lblRxNumber.Text = "Rx Number:"; + // + // txtRefillID + // + this.txtRefillID.Location = new System.Drawing.Point(173, 75); + this.txtRefillID.Name = "txtRefillID"; + this.txtRefillID.Size = new System.Drawing.Size(100, 20); + this.txtRefillID.TabIndex = 5; + // + // txtRefillDate + // + this.txtRefillDate.Location = new System.Drawing.Point(173, 146); + this.txtRefillDate.Name = "txtRefillDate"; + this.txtRefillDate.Size = new System.Drawing.Size(100, 20); + this.txtRefillDate.TabIndex = 6; + // + // txtPatientID + // + this.txtPatientID.Location = new System.Drawing.Point(173, 221); + this.txtPatientID.Name = "txtPatientID"; + this.txtPatientID.Size = new System.Drawing.Size(100, 20); + this.txtPatientID.TabIndex = 7; + // + // txtMedicationID + // + this.txtMedicationID.Location = new System.Drawing.Point(517, 75); + this.txtMedicationID.Name = "txtMedicationID"; + this.txtMedicationID.Size = new System.Drawing.Size(100, 20); + this.txtMedicationID.TabIndex = 8; + // + // txtRxNumber + // + this.txtRxNumber.Location = new System.Drawing.Point(517, 146); + this.txtRxNumber.Name = "txtRxNumber"; + this.txtRxNumber.Size = new System.Drawing.Size(100, 20); + this.txtRxNumber.TabIndex = 9; + // + // btnAdd + // + this.btnAdd.Location = new System.Drawing.Point(322, 358); + this.btnAdd.Name = "btnAdd"; + this.btnAdd.Size = new System.Drawing.Size(75, 23); + this.btnAdd.TabIndex = 10; + this.btnAdd.UseVisualStyleBackColor = true; + // + // frmRefillAdd + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.btnAdd); + this.Controls.Add(this.txtRxNumber); + this.Controls.Add(this.txtMedicationID); + this.Controls.Add(this.txtPatientID); + this.Controls.Add(this.txtRefillDate); + this.Controls.Add(this.txtRefillID); + this.Controls.Add(this.lblRxNumber); + this.Controls.Add(this.lblMedicationID); + this.Controls.Add(this.lblPatientID); + this.Controls.Add(this.lblRefillDate); + this.Controls.Add(this.lblRefillID); + this.Name = "frmRefillAdd"; this.Text = "frmRefillAdd"; + this.ResumeLayout(false); + this.PerformLayout(); + } #endregion + + private System.Windows.Forms.Label lblRefillID; + private System.Windows.Forms.Label lblRefillDate; + private System.Windows.Forms.Label lblPatientID; + private System.Windows.Forms.Label lblMedicationID; + private System.Windows.Forms.Label lblRxNumber; + private System.Windows.Forms.TextBox txtRefillID; + private System.Windows.Forms.TextBox txtRefillDate; + private System.Windows.Forms.TextBox txtPatientID; + private System.Windows.Forms.TextBox txtMedicationID; + private System.Windows.Forms.TextBox txtRxNumber; + private System.Windows.Forms.Button btnAdd; } } \ No newline at end of file diff --git a/Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.resx b/Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Louis'-Pharmacy_CNSA212-FP/frmRefillAdd.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file