From 02ad8d2c267d6fa9eb8292a0990ca5e32ed63449 Mon Sep 17 00:00:00 2001 From: Adam McCane Date: Wed, 14 Feb 2024 15:35:00 -0500 Subject: [PATCH] Added context menu to the refill form. --- .../frmRefill.Designer.cs | 38 +++++++++++++++++++ Louis'-Pharmacy_CNSA212-FP/frmRefill.resx | 3 ++ 2 files changed, 41 insertions(+) diff --git a/Louis'-Pharmacy_CNSA212-FP/frmRefill.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmRefill.Designer.cs index 24b9a40..4a3608a 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmRefill.Designer.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmRefill.Designer.cs @@ -29,6 +29,7 @@ namespace Louis__Pharmacy_CNSA212_FP /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmRefill)); this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); @@ -49,7 +50,12 @@ namespace Louis__Pharmacy_CNSA212_FP this.patientid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.medicationid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.rxnumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.cmuAdd = new System.Windows.Forms.ToolStripMenuItem(); + this.cmuUpdate = new System.Windows.Forms.ToolStripMenuItem(); + this.cmuDelete = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.contextMenuStrip1.SuspendLayout(); this.SuspendLayout(); // // bindingNavigatorAddNewItem @@ -160,6 +166,33 @@ namespace Louis__Pharmacy_CNSA212_FP this.rxnumber.HeaderText = "Rx Number"; this.rxnumber.Name = "rxnumber"; // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.cmuAdd, + this.cmuUpdate, + this.cmuDelete}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(181, 92); + // + // cmuAdd + // + this.cmuAdd.Name = "cmuAdd"; + this.cmuAdd.Size = new System.Drawing.Size(180, 22); + this.cmuAdd.Text = "Add"; + // + // cmuUpdate + // + this.cmuUpdate.Name = "cmuUpdate"; + this.cmuUpdate.Size = new System.Drawing.Size(180, 22); + this.cmuUpdate.Text = "Update"; + // + // cmuDelete + // + this.cmuDelete.Name = "cmuDelete"; + this.cmuDelete.Size = new System.Drawing.Size(180, 22); + this.cmuDelete.Text = "Delete"; + // // frmRefill // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -172,6 +205,7 @@ namespace Louis__Pharmacy_CNSA212_FP this.Text = "Louis\' Pharmacy - Prescription Refill"; this.Load += new System.EventHandler(this.frmRefill_Load); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.contextMenuStrip1.ResumeLayout(false); this.ResumeLayout(false); } @@ -210,5 +244,9 @@ namespace Louis__Pharmacy_CNSA212_FP private System.Windows.Forms.DataGridViewTextBoxColumn patientid; private System.Windows.Forms.DataGridViewTextBoxColumn medicationid; private System.Windows.Forms.DataGridViewTextBoxColumn rxnumber; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem cmuAdd; + private System.Windows.Forms.ToolStripMenuItem cmuUpdate; + private System.Windows.Forms.ToolStripMenuItem cmuDelete; } } \ No newline at end of file diff --git a/Louis'-Pharmacy_CNSA212-FP/frmRefill.resx b/Louis'-Pharmacy_CNSA212-FP/frmRefill.resx index a0d70f5..e194b91 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmRefill.resx +++ b/Louis'-Pharmacy_CNSA212-FP/frmRefill.resx @@ -132,6 +132,9 @@ True + + 17, 17 +