CNSA-212-FP/Louis'-Pharmacy_CNSA212-FP/frmMain.cs

67 lines
1.8 KiB
C#
Raw Normal View History

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)
{
frmInfo formInfo = new frmInfo();
formInfo.MdiParent = this;
formInfo.StartPosition = FormStartPosition.CenterScreen;
formInfo.Show();
formInfo.Focus();
mnuNavigationView.Checked = true;
}
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;
}
}
}