コード例 #1
0
ファイル: formMDI.cs プロジェクト: jsoques/openmiracle
 /// <summary>
 /// Calls frmPartyBalance form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void partyBalanceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         frmPartyBalance frm = new frmPartyBalance();
         frmPartyBalance open = Application.OpenForms["frmPartyBalance"] as frmPartyBalance;
         if (open == null)
         {
             frm.MdiParent = this;
             frm.Show();
         }
         else
         {
             open.Activate();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("MDI 118: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }