Esempio n. 1
0
        public MDIParent1()
        {
            InitializeComponent();
            Form wellcome = new FormWellcome(this);

            wellcome.MdiParent = this;
            wellcome.Show();
            childFormNumber++;
            //Form openf = new FormOpen(this);
            //openf.MdiParent = this;
            //openf.Show();
        }
Esempio n. 2
0
 private void משחקחדשToolStripMenuItem_Click(object sender, EventArgs e)
 {
     isOpenSaveGame = false;
     isOpenNewGame  = true;
     if (ActiveMdiChild != null && ActiveMdiChild.Name == "FormAttributes")
     {
         //להעתיק את כל הקטע הזה
         ActiveMdiChild.Controls[8].Visible = true;  //label1
         ActiveMdiChild.Controls[2].Enabled = true;  //groupBox1
         ActiveMdiChild.Controls[9].Visible = false; //groupBox2
         ActiveMdiChild.Controls[0].Visible = false; //groupBox3
         ActiveMdiChild.Controls[3].Visible = false; //pnlplayer1
         ActiveMdiChild.Controls[4].Visible = false; //pnlplayer2
         ActiveMdiChild.Controls[5].Visible = false; //pnlplayer4
         ActiveMdiChild.Controls[6].Visible = false; //pnlplayer3
         ActiveMdiChild.Controls[7].Visible = false; //btnOkNamesKinds
     }
     else if (ActiveMdiChild != null && ActiveMdiChild.Name == "FormGame")
     {
         if (!isNetworkGame)
         {
             Form fs = new FormSaveGame(ActiveMdiChild);
             fs.Show();
         }
         else
         {
             ActiveMdiChild.Close();
         }
     }
     else if (ActiveMdiChild == null)
     {
         Form fw = new FormWellcome(this);
         fw.MdiParent = this;
         fw.Show();
     }
 }