Esempio n. 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();
        }
Esempio 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;
            }
        }
Esempio n. 3
0
        private void sfsfToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // MessageBox.Show("Bienvenue ☺", "Connexion", MessageBoxButtons.OK, MessageBoxIcon.Information);

            /*
             * var request = WebRequest.Create("http://image.noelshack.com/fichiers/2015/47/1447964240-yuyukyuk.jpg");
             * using (var response = request.GetResponse())
             * using (var stream = response.GetResponseStream())
             * menuStrip1.BackgroundImage = Bitmap.FromStream(stream);
             */

            procedure();


            FormMiniature FM = new FormMiniature();

            FM.MdiParent = this;

            FM.Show();
        }
Esempio n. 4
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;
        }