This commit is contained in:
EggMan20339 2024-02-07 08:56:04 -05:00
parent b7cdc094f2
commit 07b8175dbd
3 changed files with 39 additions and 1 deletions

Binary file not shown.

View File

@ -70,7 +70,7 @@ namespace Chapter6
// mnuFileExit // mnuFileExit
// //
this.mnuFileExit.Name = "mnuFileExit"; this.mnuFileExit.Name = "mnuFileExit";
this.mnuFileExit.Size = new System.Drawing.Size(152, 22); this.mnuFileExit.Size = new System.Drawing.Size(93, 22);
this.mnuFileExit.Text = "Exit"; this.mnuFileExit.Text = "Exit";
this.mnuFileExit.Click += new System.EventHandler(this.mnuFileExit_Click_1); this.mnuFileExit.Click += new System.EventHandler(this.mnuFileExit_Click_1);
// //
@ -86,12 +86,14 @@ namespace Chapter6
this.mnuEditCalculate.Name = "mnuEditCalculate"; this.mnuEditCalculate.Name = "mnuEditCalculate";
this.mnuEditCalculate.Size = new System.Drawing.Size(153, 22); this.mnuEditCalculate.Size = new System.Drawing.Size(153, 22);
this.mnuEditCalculate.Text = "Calculate"; this.mnuEditCalculate.Text = "Calculate";
this.mnuEditCalculate.Click += mnuEditCalculate_Click;
// //
// mnuEditSummary // mnuEditSummary
// //
this.mnuEditSummary.Name = "mnuEditSummary"; this.mnuEditSummary.Name = "mnuEditSummary";
this.mnuEditSummary.Size = new System.Drawing.Size(153, 22); this.mnuEditSummary.Size = new System.Drawing.Size(153, 22);
this.mnuEditSummary.Text = "Summary"; this.mnuEditSummary.Text = "Summary";
this.mnuEditSummary.Click += new System.EventHandler(this.mnuEditSummary_Click);
// //
// mnuEditShowStudents // mnuEditShowStudents
// //

View File

@ -19,5 +19,41 @@ namespace Chapter6
{ {
Close(); 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;
}
} }
} }