示例#1
0
文件: frmMenu.cs 项目: Gcrouzet/CDA
        /// <summary>
        /// form Additionneur
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void additionneurToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Additionneur addi = new Additionneur();

            addi.Text     += " N° " + iAddiotionneur++;
            addi.MdiParent = this;
            addi.Show();
            toolStripStatusLabelDerniereOperation.Text = "Additionneur";
        }
        private void additionneurButton_Click(object sender, EventArgs e)
        {
            actionLabel.Text = additionButton.Text;
            Additionneur child = new Additionneur();

            nombre          = Application.OpenForms.OfType <Additionneur>().Count();
            child.Text     += " N°" + (nombre + 1);
            child.MdiParent = this;
            child.Show();
        }