diff --git a/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj b/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj index 023bee6..85ac6fe 100644 --- a/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj +++ b/Louis'-Pharmacy_CNSA212-FP/Louis'-Pharmacy_CNSA212-FP.csproj @@ -58,6 +58,12 @@ frmInfo.cs + + Form + + + frmMain.cs + Form @@ -84,6 +90,9 @@ frmInfo.cs + + frmMain.cs + frmPrescription.cs diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs index dd20708..5ac08ae 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs @@ -30,34 +30,28 @@ namespace Louis__Pharmacy_CNSA212_FP private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmInfo)); - this.mnusNavigation = new System.Windows.Forms.MenuStrip(); - this.navigationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.addUpdatePatientAndPhysicianToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.refillInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.prescriptionInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tbcInfo = new System.Windows.Forms.TabControl(); this.tbpPatient = new System.Windows.Forms.TabPage(); this.splcPatient = new System.Windows.Forms.SplitContainer(); + this.btnPatientSearch = new System.Windows.Forms.Button(); this.txtPatientLast = new System.Windows.Forms.TextBox(); this.txtPatientFirst = new System.Windows.Forms.TextBox(); this.lblPatientLast = new System.Windows.Forms.Label(); this.lblPatientFirst = new System.Windows.Forms.Label(); this.tbpPrescription = new System.Windows.Forms.TabPage(); this.splcPrescription = new System.Windows.Forms.SplitContainer(); + this.btnPrescriptionSearch = new System.Windows.Forms.Button(); + this.txtPrescriptionLast = new System.Windows.Forms.TextBox(); + this.txtRxNumber = new System.Windows.Forms.TextBox(); + this.lblPrescriptionLast = new System.Windows.Forms.Label(); + this.lblRxNumber = new System.Windows.Forms.Label(); this.tbpPhysician = new System.Windows.Forms.TabPage(); this.splcPhysician = new System.Windows.Forms.SplitContainer(); - this.lblRxNumber = new System.Windows.Forms.Label(); - this.lblPrescriptionLast = new System.Windows.Forms.Label(); - this.btnPatientSearch = new System.Windows.Forms.Button(); - this.txtRxNumber = new System.Windows.Forms.TextBox(); - this.txtPrescriptionLast = new System.Windows.Forms.TextBox(); - this.btnPrescriptionSearch = new System.Windows.Forms.Button(); - this.lblPhysicianFirst = new System.Windows.Forms.Label(); - this.lblPhysicianLast = new System.Windows.Forms.Label(); - this.txtPhysicianFirst = new System.Windows.Forms.TextBox(); - this.txtPhysicianLast = new System.Windows.Forms.TextBox(); this.btnPhysicianSearch = new System.Windows.Forms.Button(); - this.mnusNavigation.SuspendLayout(); + this.txtPhysicianLast = new System.Windows.Forms.TextBox(); + this.txtPhysicianFirst = new System.Windows.Forms.TextBox(); + this.lblPhysicianLast = new System.Windows.Forms.Label(); + this.lblPhysicianFirst = new System.Windows.Forms.Label(); this.tbcInfo.SuspendLayout(); this.tbpPatient.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splcPatient)).BeginInit(); @@ -73,53 +67,15 @@ namespace Louis__Pharmacy_CNSA212_FP this.splcPhysician.SuspendLayout(); this.SuspendLayout(); // - // mnusNavigation - // - this.mnusNavigation.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.navigationToolStripMenuItem}); - this.mnusNavigation.Location = new System.Drawing.Point(0, 0); - this.mnusNavigation.Name = "mnusNavigation"; - this.mnusNavigation.Size = new System.Drawing.Size(690, 24); - this.mnusNavigation.TabIndex = 0; - this.mnusNavigation.Text = "Navigation"; - // - // navigationToolStripMenuItem - // - this.navigationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.addUpdatePatientAndPhysicianToolStripMenuItem, - this.refillInfoToolStripMenuItem, - this.prescriptionInfoToolStripMenuItem}); - this.navigationToolStripMenuItem.Name = "navigationToolStripMenuItem"; - this.navigationToolStripMenuItem.Size = new System.Drawing.Size(77, 20); - this.navigationToolStripMenuItem.Text = "Navigation"; - // - // addUpdatePatientAndPhysicianToolStripMenuItem - // - this.addUpdatePatientAndPhysicianToolStripMenuItem.Name = "addUpdatePatientAndPhysicianToolStripMenuItem"; - this.addUpdatePatientAndPhysicianToolStripMenuItem.Size = new System.Drawing.Size(255, 22); - this.addUpdatePatientAndPhysicianToolStripMenuItem.Text = "Add/Update Patient and Physician"; - // - // refillInfoToolStripMenuItem - // - this.refillInfoToolStripMenuItem.Name = "refillInfoToolStripMenuItem"; - this.refillInfoToolStripMenuItem.Size = new System.Drawing.Size(255, 22); - this.refillInfoToolStripMenuItem.Text = "Refill Info"; - // - // prescriptionInfoToolStripMenuItem - // - this.prescriptionInfoToolStripMenuItem.Name = "prescriptionInfoToolStripMenuItem"; - this.prescriptionInfoToolStripMenuItem.Size = new System.Drawing.Size(255, 22); - this.prescriptionInfoToolStripMenuItem.Text = "Prescription Info"; - // // tbcInfo // this.tbcInfo.Controls.Add(this.tbpPatient); this.tbcInfo.Controls.Add(this.tbpPrescription); this.tbcInfo.Controls.Add(this.tbpPhysician); - this.tbcInfo.Location = new System.Drawing.Point(12, 27); + this.tbcInfo.Location = new System.Drawing.Point(12, 12); this.tbcInfo.Name = "tbcInfo"; this.tbcInfo.SelectedIndex = 0; - this.tbcInfo.Size = new System.Drawing.Size(666, 341); + this.tbcInfo.Size = new System.Drawing.Size(666, 356); this.tbcInfo.TabIndex = 1; // // tbpPatient @@ -127,7 +83,7 @@ namespace Louis__Pharmacy_CNSA212_FP this.tbpPatient.Controls.Add(this.splcPatient); this.tbpPatient.Location = new System.Drawing.Point(4, 22); this.tbpPatient.Name = "tbpPatient"; - this.tbpPatient.Size = new System.Drawing.Size(658, 315); + this.tbpPatient.Size = new System.Drawing.Size(658, 330); this.tbpPatient.TabIndex = 3; this.tbpPatient.Text = "Patient Info"; this.tbpPatient.UseVisualStyleBackColor = true; @@ -146,10 +102,20 @@ namespace Louis__Pharmacy_CNSA212_FP this.splcPatient.Panel1.Controls.Add(this.txtPatientFirst); this.splcPatient.Panel1.Controls.Add(this.lblPatientLast); this.splcPatient.Panel1.Controls.Add(this.lblPatientFirst); - this.splcPatient.Size = new System.Drawing.Size(658, 315); - this.splcPatient.SplitterDistance = 159; + this.splcPatient.Size = new System.Drawing.Size(658, 330); + this.splcPatient.SplitterDistance = 166; this.splcPatient.TabIndex = 0; // + // btnPatientSearch + // + this.btnPatientSearch.BackColor = System.Drawing.Color.Transparent; + this.btnPatientSearch.Location = new System.Drawing.Point(50, 119); + this.btnPatientSearch.Name = "btnPatientSearch"; + this.btnPatientSearch.Size = new System.Drawing.Size(75, 23); + this.btnPatientSearch.TabIndex = 4; + this.btnPatientSearch.Text = "Search"; + this.btnPatientSearch.UseVisualStyleBackColor = false; + // // txtPatientLast // this.txtPatientLast.Location = new System.Drawing.Point(141, 67); @@ -210,6 +176,47 @@ namespace Louis__Pharmacy_CNSA212_FP this.splcPrescription.SplitterDistance = 160; this.splcPrescription.TabIndex = 0; // + // btnPrescriptionSearch + // + this.btnPrescriptionSearch.Location = new System.Drawing.Point(64, 117); + this.btnPrescriptionSearch.Name = "btnPrescriptionSearch"; + this.btnPrescriptionSearch.Size = new System.Drawing.Size(75, 23); + this.btnPrescriptionSearch.TabIndex = 4; + this.btnPrescriptionSearch.Text = "Search"; + this.btnPrescriptionSearch.UseVisualStyleBackColor = true; + // + // txtPrescriptionLast + // + this.txtPrescriptionLast.Location = new System.Drawing.Point(184, 74); + this.txtPrescriptionLast.Name = "txtPrescriptionLast"; + this.txtPrescriptionLast.Size = new System.Drawing.Size(100, 20); + this.txtPrescriptionLast.TabIndex = 3; + // + // txtRxNumber + // + this.txtRxNumber.Location = new System.Drawing.Point(184, 25); + this.txtRxNumber.Name = "txtRxNumber"; + this.txtRxNumber.Size = new System.Drawing.Size(100, 20); + this.txtRxNumber.TabIndex = 2; + // + // lblPrescriptionLast + // + this.lblPrescriptionLast.AutoSize = true; + this.lblPrescriptionLast.Location = new System.Drawing.Point(61, 74); + this.lblPrescriptionLast.Name = "lblPrescriptionLast"; + this.lblPrescriptionLast.Size = new System.Drawing.Size(61, 13); + this.lblPrescriptionLast.TabIndex = 1; + this.lblPrescriptionLast.Text = "Last Name:"; + // + // lblRxNumber + // + this.lblRxNumber.AutoSize = true; + this.lblRxNumber.Location = new System.Drawing.Point(61, 25); + this.lblRxNumber.Name = "lblRxNumber"; + this.lblRxNumber.Size = new System.Drawing.Size(63, 13); + this.lblRxNumber.TabIndex = 0; + this.lblRxNumber.Text = "Rx Number:"; + // // tbpPhysician // this.tbpPhysician.Controls.Add(this.splcPhysician); @@ -240,65 +247,28 @@ namespace Louis__Pharmacy_CNSA212_FP this.splcPhysician.SplitterDistance = 158; this.splcPhysician.TabIndex = 0; // - // lblRxNumber + // btnPhysicianSearch // - this.lblRxNumber.AutoSize = true; - this.lblRxNumber.Location = new System.Drawing.Point(61, 25); - this.lblRxNumber.Name = "lblRxNumber"; - this.lblRxNumber.Size = new System.Drawing.Size(63, 13); - this.lblRxNumber.TabIndex = 0; - this.lblRxNumber.Text = "Rx Number:"; + this.btnPhysicianSearch.Location = new System.Drawing.Point(62, 116); + this.btnPhysicianSearch.Name = "btnPhysicianSearch"; + this.btnPhysicianSearch.Size = new System.Drawing.Size(75, 23); + this.btnPhysicianSearch.TabIndex = 4; + this.btnPhysicianSearch.Text = "Search"; + this.btnPhysicianSearch.UseVisualStyleBackColor = true; // - // lblPrescriptionLast + // txtPhysicianLast // - this.lblPrescriptionLast.AutoSize = true; - this.lblPrescriptionLast.Location = new System.Drawing.Point(61, 74); - this.lblPrescriptionLast.Name = "lblPrescriptionLast"; - this.lblPrescriptionLast.Size = new System.Drawing.Size(61, 13); - this.lblPrescriptionLast.TabIndex = 1; - this.lblPrescriptionLast.Text = "Last Name:"; + this.txtPhysicianLast.Location = new System.Drawing.Point(126, 78); + this.txtPhysicianLast.Name = "txtPhysicianLast"; + this.txtPhysicianLast.Size = new System.Drawing.Size(100, 20); + this.txtPhysicianLast.TabIndex = 3; // - // btnPatientSearch + // txtPhysicianFirst // - this.btnPatientSearch.BackColor = System.Drawing.Color.Transparent; - this.btnPatientSearch.Location = new System.Drawing.Point(50, 119); - this.btnPatientSearch.Name = "btnPatientSearch"; - this.btnPatientSearch.Size = new System.Drawing.Size(75, 23); - this.btnPatientSearch.TabIndex = 4; - this.btnPatientSearch.Text = "Search"; - this.btnPatientSearch.UseVisualStyleBackColor = false; - // - // txtRxNumber - // - this.txtRxNumber.Location = new System.Drawing.Point(184, 25); - this.txtRxNumber.Name = "txtRxNumber"; - this.txtRxNumber.Size = new System.Drawing.Size(100, 20); - this.txtRxNumber.TabIndex = 2; - // - // txtPrescriptionLast - // - this.txtPrescriptionLast.Location = new System.Drawing.Point(184, 74); - this.txtPrescriptionLast.Name = "txtPrescriptionLast"; - this.txtPrescriptionLast.Size = new System.Drawing.Size(100, 20); - this.txtPrescriptionLast.TabIndex = 3; - // - // btnPrescriptionSearch - // - this.btnPrescriptionSearch.Location = new System.Drawing.Point(64, 117); - this.btnPrescriptionSearch.Name = "btnPrescriptionSearch"; - this.btnPrescriptionSearch.Size = new System.Drawing.Size(75, 23); - this.btnPrescriptionSearch.TabIndex = 4; - this.btnPrescriptionSearch.Text = "Search"; - this.btnPrescriptionSearch.UseVisualStyleBackColor = true; - // - // lblPhysicianFirst - // - this.lblPhysicianFirst.AutoSize = true; - this.lblPhysicianFirst.Location = new System.Drawing.Point(47, 34); - this.lblPhysicianFirst.Name = "lblPhysicianFirst"; - this.lblPhysicianFirst.Size = new System.Drawing.Size(60, 13); - this.lblPhysicianFirst.TabIndex = 0; - this.lblPhysicianFirst.Text = "First Name:"; + this.txtPhysicianFirst.Location = new System.Drawing.Point(126, 34); + this.txtPhysicianFirst.Name = "txtPhysicianFirst"; + this.txtPhysicianFirst.Size = new System.Drawing.Size(100, 20); + this.txtPhysicianFirst.TabIndex = 2; // // lblPhysicianLast // @@ -309,28 +279,14 @@ namespace Louis__Pharmacy_CNSA212_FP this.lblPhysicianLast.TabIndex = 1; this.lblPhysicianLast.Text = "Last Name:"; // - // txtPhysicianFirst + // lblPhysicianFirst // - this.txtPhysicianFirst.Location = new System.Drawing.Point(126, 34); - this.txtPhysicianFirst.Name = "txtPhysicianFirst"; - this.txtPhysicianFirst.Size = new System.Drawing.Size(100, 20); - this.txtPhysicianFirst.TabIndex = 2; - // - // txtPhysicianLast - // - this.txtPhysicianLast.Location = new System.Drawing.Point(126, 78); - this.txtPhysicianLast.Name = "txtPhysicianLast"; - this.txtPhysicianLast.Size = new System.Drawing.Size(100, 20); - this.txtPhysicianLast.TabIndex = 3; - // - // btnPhysicianSearch - // - this.btnPhysicianSearch.Location = new System.Drawing.Point(62, 116); - this.btnPhysicianSearch.Name = "btnPhysicianSearch"; - this.btnPhysicianSearch.Size = new System.Drawing.Size(75, 23); - this.btnPhysicianSearch.TabIndex = 4; - this.btnPhysicianSearch.Text = "Search"; - this.btnPhysicianSearch.UseVisualStyleBackColor = true; + this.lblPhysicianFirst.AutoSize = true; + this.lblPhysicianFirst.Location = new System.Drawing.Point(47, 34); + this.lblPhysicianFirst.Name = "lblPhysicianFirst"; + this.lblPhysicianFirst.Size = new System.Drawing.Size(60, 13); + this.lblPhysicianFirst.TabIndex = 0; + this.lblPhysicianFirst.Text = "First Name:"; // // frmInfo // @@ -338,15 +294,11 @@ namespace Louis__Pharmacy_CNSA212_FP this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(690, 380); this.Controls.Add(this.tbcInfo); - this.Controls.Add(this.mnusNavigation); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MainMenuStrip = this.mnusNavigation; this.Margin = new System.Windows.Forms.Padding(2); this.Name = "frmInfo"; this.Text = "Louis\' Pharmacy - View Patient / Prescription Info"; this.Load += new System.EventHandler(this.frmInfo_Load); - this.mnusNavigation.ResumeLayout(false); - this.mnusNavigation.PerformLayout(); this.tbcInfo.ResumeLayout(false); this.tbpPatient.ResumeLayout(false); this.splcPatient.Panel1.ResumeLayout(false); @@ -364,17 +316,10 @@ namespace Louis__Pharmacy_CNSA212_FP ((System.ComponentModel.ISupportInitialize)(this.splcPhysician)).EndInit(); this.splcPhysician.ResumeLayout(false); this.ResumeLayout(false); - this.PerformLayout(); } #endregion - - private System.Windows.Forms.MenuStrip mnusNavigation; - private System.Windows.Forms.ToolStripMenuItem navigationToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem addUpdatePatientAndPhysicianToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem refillInfoToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem prescriptionInfoToolStripMenuItem; private System.Windows.Forms.TabControl tbcInfo; private System.Windows.Forms.TabPage tbpPhysician; private System.Windows.Forms.SplitContainer splcPhysician; diff --git a/Louis'-Pharmacy_CNSA212-FP/frmInfo.resx b/Louis'-Pharmacy_CNSA212-FP/frmInfo.resx index 17aa33b..66296d6 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmInfo.resx +++ b/Louis'-Pharmacy_CNSA212-FP/frmInfo.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 17, 17 - diff --git a/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs b/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs new file mode 100644 index 0000000..56f0dd7 --- /dev/null +++ b/Louis'-Pharmacy_CNSA212-FP/frmMain.Designer.cs @@ -0,0 +1,93 @@ +namespace Louis__Pharmacy_CNSA212_FP +{ + partial class frmMain + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.navigationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.menuStrip1.SuspendLayout(); + this.SuspendLayout(); + // + // menuStrip1 + // + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.navigationToolStripMenuItem, + this.helpToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(800, 24); + this.menuStrip1.TabIndex = 0; + this.menuStrip1.Text = "menuStrip1"; + // + // navigationToolStripMenuItem + // + this.navigationToolStripMenuItem.Name = "navigationToolStripMenuItem"; + this.navigationToolStripMenuItem.Size = new System.Drawing.Size(77, 20); + this.navigationToolStripMenuItem.Text = "Navigation"; + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.aboutToolStripMenuItem}); + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Text = "Help"; + // + // aboutToolStripMenuItem + // + this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.aboutToolStripMenuItem.Text = "About"; + // + // frmMain + // + 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.menuStrip1); + this.IsMdiContainer = true; + this.MainMenuStrip = this.menuStrip1; + this.Name = "frmMain"; + this.Text = "frmMain"; + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.ToolStripMenuItem navigationToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; + } +} \ No newline at end of file diff --git a/Louis'-Pharmacy_CNSA212-FP/frmMain.cs b/Louis'-Pharmacy_CNSA212-FP/frmMain.cs new file mode 100644 index 0000000..8c9d377 --- /dev/null +++ b/Louis'-Pharmacy_CNSA212-FP/frmMain.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Louis__Pharmacy_CNSA212_FP +{ + public partial class frmMain : Form + { + public frmMain() + { + InitializeComponent(); + } + } +} diff --git a/Louis'-Pharmacy_CNSA212-FP/frmMain.resx b/Louis'-Pharmacy_CNSA212-FP/frmMain.resx new file mode 100644 index 0000000..d5494e3 --- /dev/null +++ b/Louis'-Pharmacy_CNSA212-FP/frmMain.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 17, 17 + + \ No newline at end of file