Пример #1
0
        private void ToolStripButton5_ButtonClick(object sender, EventArgs e)
        {
            AddPersonal ap2 = new AddPersonal();

            ap2.MdiParent = this;
            ap2.Show();
        }
Пример #2
0
        private void جدیدToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddPersonal ap = new AddPersonal();

            //  ap.FormClosing+= (s1,e1)
            //  {
            ////
            //      this.جدیدToolStripMenuItem.Enabled=true;

            //  }
            //      this.جدیدToolStripMenuItem.Enabled=false;

            ap.MdiParent = this;
            ap.Show();
        }