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

121 lines
3.4 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)
{
2024-02-21 00:27:38 -05:00
// frmWelcome formWelcome = new frmWelcome();
2024-02-21 00:27:38 -05:00
frmInfo formWelcome = new frmInfo();
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)
{
2024-02-16 08:37:53 -05:00
// 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)
{
2024-02-16 08:37:53 -05:00
// 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)
{
2024-02-20 23:57:48 -05:00
//frmRefill formRefill = new frmRefill();
2024-02-20 23:57:48 -05:00
//formRefill.MdiParent = this;
//formRefill.StartPosition = FormStartPosition.CenterScreen;
//formRefill.Show();
//formRefill.Focus();
2024-02-21 00:27:38 -05:00
// 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();
}
}
}