CNSA-212-Personal/Chapter6/frmMain.cs

92 lines
2.1 KiB
C#
Raw Normal View History

2024-02-07 08:42:57 -05:00
using System;
using System.Windows.Forms;
namespace Chapter6
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}
private void mnuFileExit_Click(object sender, EventArgs e)
{
Close();
}
private void mnuFileExit_Click_1(object sender, EventArgs e)
{
Close();
}
2024-02-07 08:56:04 -05:00
private void mnuEditCalculate_Click(object sender, EventArgs e)
{
frmCalculate aform = new frmCalculate();
mnuFile.Visible = true;
mnuEditSummary.Enabled = true;
aform.MdiParent = this;
aform.StartPosition = FormStartPosition.CenterParent;
aform.Show();
aform.Focus();
mnuEditCalculate.Checked = true;
}
private void mnuEditSummary_Click(object sender, EventArgs e)
{
frmSummary aform = new frmSummary();
mnuFile.Visible = true;
2024-02-07 09:30:20 -05:00
2024-02-07 08:56:04 -05:00
aform.MdiParent = this;
aform.StartPosition = FormStartPosition.CenterParent;
aform.Show();
aform.Focus();
2024-02-07 09:30:20 -05:00
mnuEditSummary.Checked = true;
2024-02-07 08:56:04 -05:00
}
2024-02-07 09:30:20 -05:00
private void mnuHelpAbout_Click(object sender, EventArgs e)
{
frmAbout aform = new frmAbout();
mnuFile.Visible = true;
aform.MdiParent = this;
aform.StartPosition = FormStartPosition.CenterParent;
aform.Show();
aform.Focus();
mnuHelpAbout.Checked = true;
}
private void mnuWindowVertical_Click(object sender, EventArgs e)
{
this.LayoutMdi(MdiLayout.TileVertical);
}
private void munWindowHorizontal_Click(object sender, EventArgs e)
{
LayoutMdi(MdiLayout.TileHorizontal);
}
private void mnuWindowsCascade_Click(object sender, EventArgs e)
{
LayoutMdi(MdiLayout.Cascade);
}
2024-02-07 08:42:57 -05:00
}
}