Example #1
0
        private void arborescenceToolStripMenuItem_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   = true;
            arborescenceToolStripMenuItem.Enabled = false;

            FormListe FL = new FormListe();

            FL.Close();

            FormMiniature FM = new FormMiniature();

            FM.Close();

            FormArborescence FA = new FormArborescence();

            FA.MdiParent = this;
            FA.Show();
        }
Example #2
0
        private void btnRetourFUD_Click(object sender, EventArgs e)
        {
            FormIndex FI = (FormIndex)this.MdiParent;

            if (FI.nb == 1) // dehors
            {
                FI.SfsfToolStripMenuItem.Enabled            = true;
                FI.AfficToolStripMenuItem.Enabled           = true;
                FI.CommentÇaMarcheToolStripMenuItem.Enabled = true;
                FI.QuiSommesNousToolStripMenuItem.Enabled   = true;

                this.Close();

                FI.AfficToolStripMenuItem.BackColor = Color.Transparent;


                FI.PictureBox1.Visible = true;
                var pos = FI.PointToScreen(FI.LblCreateur.Location);
                pos = FI.PictureBox1.PointToClient(pos);
                FI.LblCreateur.Parent    = FI.PictureBox1;
                FI.LblCreateur.Location  = pos;
                FI.LblCreateur.BackColor = Color.Transparent;
            }
            else // dedans
            {
                FI.QuitterToolStripMenuItem.Enabled         = true;
                FI.AffichageToolStripMenuItem.Enabled       = true;
                FI.AfficToolStripMenuItem.Enabled           = true;
                FI.CommentÇaMarcheToolStripMenuItem.Enabled = true;
                FI.QuiSommesNousToolStripMenuItem.Enabled   = true;
                FI.SuggestionToolStripMenuItem.Enabled      = true;

                if (FI.ListeToolStripMenuItem.Enabled == false)
                {
                    FormListe FL = new FormListe();
                    FL.MdiParent = FI;
                    FL.Show();
                }

                if (FI.MiniaturesToolStripMenuItem.Enabled == false)
                {
                    FormMiniature FM = new FormMiniature();
                    FM.MdiParent = FI;
                    FM.Show();
                }

                if (FI.ArborescenceToolStripMenuItem.Enabled == false)
                {
                    FormArborescence FA = new FormArborescence();
                    FA.MdiParent = FI;
                    FA.Show();
                }

                this.Close();

                FI.AfficToolStripMenuItem.BackColor     = Color.Transparent;
                FI.AffichageToolStripMenuItem.BackColor = Color.SandyBrown;
            }
        }
Example #3
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();
        }
Example #4
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();
        }
Example #5
0
        private void btnRetourSuggestion_Click(object sender, EventArgs e)
        {
            FormIndex FI = (FormIndex)this.MdiParent;

            FI.AffichageToolStripMenuItem.Enabled       = true;
            FI.AfficToolStripMenuItem.Enabled           = true;
            FI.CommentÇaMarcheToolStripMenuItem.Enabled = true;
            FI.QuiSommesNousToolStripMenuItem.Enabled   = true;
            FI.SuggestionToolStripMenuItem.Enabled      = true;

            if (FI.ListeToolStripMenuItem.Enabled == false)
            {
                FormListe FL = new FormListe();
                FL.MdiParent = FI;
                FL.Show();
            }

            if (FI.MiniaturesToolStripMenuItem.Enabled == false)
            {
                FormMiniature FM = new FormMiniature();
                FM.MdiParent = FI;
                FM.Show();
            }

            if (FI.ArborescenceToolStripMenuItem.Enabled == false)
            {
                FormArborescence FA = new FormArborescence();
                FA.MdiParent = FI;
                FA.Show();
            }

            this.Close();

            FI.SuggestionToolStripMenuItem.BackColor = Color.Transparent;
            FI.AffichageToolStripMenuItem.BackColor  = Color.SandyBrown;
        }