119 lines
3.3 KiB
C#
119 lines
3.3 KiB
C#
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();
|
|
}
|
|
|
|
private void frmMain_Load(object sender, EventArgs e)
|
|
{
|
|
frmWelcome formWelcome = new frmWelcome();
|
|
|
|
formWelcome.MdiParent = this;
|
|
formWelcome.StartPosition = FormStartPosition.CenterScreen;
|
|
formWelcome.Show();
|
|
formWelcome.Focus();
|
|
}
|
|
|
|
private void mnuNavigationView_Click(object sender, EventArgs e)
|
|
{
|
|
mnuNavigationView.Checked = true;
|
|
|
|
frmInfo formInfo = new frmInfo();
|
|
|
|
formInfo.MdiParent = this;
|
|
formInfo.StartPosition = FormStartPosition.CenterScreen;
|
|
formInfo.Show();
|
|
formInfo.Focus();
|
|
|
|
|
|
}
|
|
|
|
private void mnuNavigationAUPaPh_Click(object sender, EventArgs e)
|
|
{
|
|
frmPatientPhysician formPaPh = new frmPatientPhysician();
|
|
|
|
formPaPh.MdiParent = this;
|
|
formPaPh.StartPosition = FormStartPosition.CenterScreen;
|
|
formPaPh.Show();
|
|
formPaPh.Focus();
|
|
|
|
mnuNavigationAUPaPh.Checked = true;
|
|
}
|
|
|
|
private void mnuNavigationAUPres_Click(object sender, EventArgs e)
|
|
{
|
|
frmPrescription formPrescription = new frmPrescription();
|
|
|
|
formPrescription.MdiParent = this;
|
|
formPrescription.StartPosition = FormStartPosition.CenterScreen;
|
|
formPrescription.Show();
|
|
formPrescription.Focus();
|
|
|
|
mnuNavigationAUPres.Checked = true;
|
|
}
|
|
|
|
private void mnuNavigationAURRefill_Click(object sender, EventArgs e)
|
|
{
|
|
frmRefill formRefill = new frmRefill();
|
|
|
|
formRefill.MdiParent = this;
|
|
formRefill.StartPosition = FormStartPosition.CenterScreen;
|
|
formRefill.Show();
|
|
formRefill.Focus();
|
|
|
|
mnuNavigationAURRefill.Checked = true;
|
|
}
|
|
|
|
private void mnuWindowArrangeIcons_Click(object sender, EventArgs e)
|
|
{
|
|
this.LayoutMdi(MdiLayout.ArrangeIcons);
|
|
}
|
|
|
|
private void mnuWindowCascade_Click(object sender, EventArgs e)
|
|
{
|
|
this.LayoutMdi(MdiLayout.Cascade);
|
|
}
|
|
|
|
private void mnuWindowHorizontal_Click(object sender, EventArgs e)
|
|
{
|
|
this.LayoutMdi(MdiLayout.TileHorizontal);
|
|
}
|
|
|
|
private void mnuWindowVertical_Click(object sender, EventArgs e)
|
|
{
|
|
this.LayoutMdi(MdiLayout.TileVertical);
|
|
}
|
|
|
|
private void mnuWindowCloseAll_Click(object sender, EventArgs e)
|
|
{
|
|
foreach (Form childform in this.MdiChildren)
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|