59 lines
1.3 KiB
C#
59 lines
1.3 KiB
C#
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();
|
|
}
|
|
|
|
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;
|
|
mnuEditSummary.Enabled = true;
|
|
|
|
|
|
aform.MdiParent = this;
|
|
aform.StartPosition = FormStartPosition.CenterParent;
|
|
aform.Show();
|
|
aform.Focus();
|
|
|
|
mnuEditCalculate.Checked = true;
|
|
|
|
}
|
|
}
|
|
} |