From e8955c84f3ca156d500a3a1e99d74dabb91952a4 Mon Sep 17 00:00:00 2001 From: Adam McCane Date: Fri, 9 Feb 2024 13:56:41 -0500 Subject: [PATCH] Changed some of the text in the about box. --- Louis'-Pharmacy_CNSA212-FP/frmAbout.Designer.cs | 7 ++++--- Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs | 3 ++- Louis'-Pharmacy_CNSA212-FP/frmMain.cs | 10 ++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Louis'-Pharmacy_CNSA212-FP/frmAbout.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmAbout.Designer.cs index aa6960d..7a62a35 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmAbout.Designer.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmAbout.Designer.cs @@ -86,7 +86,7 @@ this.labelProductName.Name = "labelProductName"; this.labelProductName.Size = new System.Drawing.Size(271, 17); this.labelProductName.TabIndex = 19; - this.labelProductName.Text = "Product Name"; + this.labelProductName.Text = "Can\'t Come up with Name Right Now"; this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // labelVersion @@ -122,7 +122,7 @@ this.labelCompanyName.Name = "labelCompanyName"; this.labelCompanyName.Size = new System.Drawing.Size(271, 17); this.labelCompanyName.TabIndex = 22; - this.labelCompanyName.Text = "Company Name"; + this.labelCompanyName.Text = "Louis\' Pharmacy"; this.labelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // textBoxDescription @@ -137,7 +137,8 @@ this.textBoxDescription.Size = new System.Drawing.Size(271, 126); this.textBoxDescription.TabIndex = 23; this.textBoxDescription.TabStop = false; - this.textBoxDescription.Text = "Description"; + this.textBoxDescription.Text = "This application is designed to efficiently update and add information into our d" + + "atabase."; // // okButton // diff --git a/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs index fdf3e97..0c35598 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs @@ -154,8 +154,9 @@ // mnuHelpAbout // this.mnuHelpAbout.Name = "mnuHelpAbout"; - this.mnuHelpAbout.Size = new System.Drawing.Size(107, 22); + this.mnuHelpAbout.Size = new System.Drawing.Size(180, 22); this.mnuHelpAbout.Text = "About"; + this.mnuHelpAbout.Click += new System.EventHandler(this.mnuHelpAbout_Click); // // frmMain // diff --git a/Louis'-Pharmacy_CNSA212-FP/frmMain.cs b/Louis'-Pharmacy_CNSA212-FP/frmMain.cs index 477991d..07e84a7 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmMain.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmMain.cs @@ -104,5 +104,15 @@ namespace Louis__Pharmacy_CNSA212_FP childform.Close(); } } + + private void mnuHelpAbout_Click(object sender, EventArgs e) + { + frmAbout about = new frmAbout(); + + about.MdiParent = this; + about.StartPosition = FormStartPosition.CenterScreen; + about.Show(); + about.Focus(); + } } }