Exemplo n.º 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();
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 3
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;
        }