Пример #1
0
        private void miniaturesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sfsfToolStripMenuItem.BackColor            = Color.Transparent;
            affichageToolStripMenuItem.BackColor       = Color.SandyBrown;
            afficToolStripMenuItem.BackColor           = Color.Transparent;
            commentÇaMarcheToolStripMenuItem.BackColor = Color.Transparent;
            listeToolStripMenuItem.BackColor           = Color.Transparent;
            miniaturesToolStripMenuItem.BackColor      = Color.Transparent;
            quiSommesNousToolStripMenuItem.BackColor   = Color.Transparent;
            quitterToolStripMenuItem.BackColor         = Color.Transparent;
            suggestionToolStripMenuItem.BackColor      = Color.Transparent;
            paramètreToolStripMenuItem.BackColor       = Color.Transparent;

            listeToolStripMenuItem.Enabled        = true;
            miniaturesToolStripMenuItem.Enabled   = false;
            arborescenceToolStripMenuItem.Enabled = true;


            FormArborescence FA = new FormArborescence();

            FA.Close();

            FormListe FL = new FormListe();

            FL.Close();

            FormMiniature FM = new FormMiniature();

            FM.MdiParent = this;
            FM.Show();
        }
Пример #2
0
        private void quiSommesNousToolStripMenuItem_Click(object sender, EventArgs e)
        {
            para = 4;

            if (sfsfToolStripMenuItem.Enabled == true) // Dehors
            {
                nb = 1;
            }
            else // Dedans
            {
                nb = 2;
            }

            sfsfToolStripMenuItem.BackColor            = Color.Transparent;
            affichageToolStripMenuItem.BackColor       = Color.Transparent;
            afficToolStripMenuItem.BackColor           = Color.Transparent;
            commentÇaMarcheToolStripMenuItem.BackColor = Color.Transparent;
            listeToolStripMenuItem.BackColor           = Color.Transparent;
            miniaturesToolStripMenuItem.BackColor      = Color.Transparent;
            quiSommesNousToolStripMenuItem.BackColor   = Color.SandyBrown;
            quitterToolStripMenuItem.BackColor         = Color.Transparent;
            suggestionToolStripMenuItem.BackColor      = Color.Transparent;
            paramètreToolStripMenuItem.BackColor       = Color.Transparent;

            pictureBox1.Visible = false;

            QuitterToolStripMenuItem.Enabled         = false;
            sfsfToolStripMenuItem.Enabled            = false;
            affichageToolStripMenuItem.Enabled       = false;
            afficToolStripMenuItem.Enabled           = false;
            commentÇaMarcheToolStripMenuItem.Enabled = false;
            quiSommesNousToolStripMenuItem.Enabled   = false;
            suggestionToolStripMenuItem.Enabled      = false;


            if (ListeToolStripMenuItem.Enabled == false)
            {
                FormListe FL = new FormListe();
                FL.Close();
            }

            if (MiniaturesToolStripMenuItem.Enabled == false)
            {
                FormMiniature FM = new FormMiniature();
                FM.Close();
            }

            if (ArborescenceToolStripMenuItem.Enabled == false)
            {
                FormArborescence FA = new FormArborescence();
                FA.Close();
            }

            FormQuiSuisJe FQSJ = new FormQuiSuisJe();

            FQSJ.MdiParent = this;

            FQSJ.Show();
        }
Пример #3
0
        private void quitterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            accesRapide();

            sfsfToolStripMenuItem.BackColor            = Color.Transparent;
            affichageToolStripMenuItem.BackColor       = Color.Transparent;
            afficToolStripMenuItem.BackColor           = Color.Transparent;
            commentÇaMarcheToolStripMenuItem.BackColor = Color.Transparent;
            listeToolStripMenuItem.BackColor           = Color.Transparent;
            miniaturesToolStripMenuItem.BackColor      = Color.Transparent;
            quiSommesNousToolStripMenuItem.BackColor   = Color.Transparent;
            suggestionToolStripMenuItem.BackColor      = Color.Transparent;
            paramètreToolStripMenuItem.BackColor       = Color.Transparent;

            MessageBox.Show(LangueElement[16] + "\n" + LangueElement[17], LangueElement[18], MessageBoxButtons.OK, MessageBoxIcon.Information);

            affichageToolStripMenuItem.Enabled  = false;
            sfsfToolStripMenuItem.Enabled       = true;
            suggestionToolStripMenuItem.Enabled = false;
            quitterToolStripMenuItem.Enabled    = false;
            pictureBox1.Visible = true;

            listeToolStripMenuItem.Enabled        = false;
            miniaturesToolStripMenuItem.Enabled   = true;
            arborescenceToolStripMenuItem.Enabled = true;

            /*
             * if(listeToolStripMenuItem.Enabled==false)
             * {
             *  FormListe FL = new FormListe();
             *  FL.Close();
             * }
             *
             * if (miniaturesToolStripMenuItem.Enabled == false)
             * {
             *  FormMiniature FM = new FormMiniature();
             *  FM.Close();
             * }
             *
             * if(arborescenceToolStripMenuItem.Enabled== false)
             * {
             *  FormArborescence FA = new FormArborescence();
             *  FA.Close();
             * }
             */

            FormArborescence FA = new FormArborescence();

            FA.Close();
            FormMiniature FM = new FormMiniature();

            FM.Close();
            FormListe FL = new FormListe();

            FL.Close();

            Application.Exit();
        }