private void FormSkillProject_Leave(object sender, EventArgs e) { FormIndex FI = (FormIndex)this.MdiParent; FI.accesRapide(); this.Close(); }
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; } }
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; }
private void FormFaireUnDon_Enter(object sender, EventArgs e) { FormIndex form = (FormIndex)this.MdiParent; this.WindowState = FormWindowState.Maximized; }
protected void LB_Click(object sender, EventArgs e) { Label lbl = sender as Label; List <String> Item2 = new List <String>(); string dt = DateTime.Today.ToShortDateString(); if (lbl.Text == Destination[0].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetCalculatrice FPC = new FormsCompetence.FormProjetCalculatrice(); FPC.MdiParent = form; FPC.Show(); } if (lbl.Text == Destination[1].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetBarreProgCirculaire FPC = new FormsCompetence.FormProjetBarreProgCirculaire(); FPC.MdiParent = form; FPC.Show(); } if (lbl.Text == Destination[2].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetBoutonAnime FPC = new FormsCompetence.FormProjetBoutonAnime("arborescence"); FPC.MdiParent = form; FPC.Show(); } if (lbl.Text == Destination[3].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetCodeSourceSiteWeb FPC = new FormsCompetence.FormProjetCodeSourceSiteWeb("arborescence"); FPC.MdiParent = form; FPC.Show(); } if (lbl.Text == Destination[4].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetFormulaireContactPersonnalise FPC = new FormsCompetence.FormProjetFormulaireContactPersonnalise(); FPC.MdiParent = form; FPC.Show(); } if (lbl.Text == Destination[5].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetImageFlottante FPC = new FormsCompetence.FormProjetImageFlottante(); FPC.MdiParent = form; FPC.Show(); } if (lbl.Text == Destination[6].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetInfoBulle FPC = new FormsCompetence.FormProjetInfoBulle(); FPC.MdiParent = form; FPC.Show(); } if (lbl.Text == Destination[7].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); DialogResult DR = MessageBox.Show(LangueElement[175] + "\n" + LangueElement[176], LangueElement[177], MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (DR == DialogResult.Yes) { System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.FileName = "http://dimitryrobin.fr/Portfolio/AddFindPlayer.php"; p.Start(); } } if (lbl.Text == Destination[8].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormsCompetence.FormProjetMorpion FPC = new FormsCompetence.FormProjetMorpion("arborescence"); FormIndex form = (FormIndex)this.MdiParent; FPC.MdiParent = form; FPC.Show(); } if (lbl.Text == Destination[9].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); recommence: string value = "Pseudonyme"; bool check = false; if (Fonction.InputBoxLogin("Pendu", LangueElement[172], ref value, ref check) == DialogResult.OK) { if (check == false) { if (value != "Pseudonyme" && value != "" && value != " " && value != " " && value != " " && value != " " && value != " ") { nouvJoueur = new Joueur(value); lesJoueurs.Add(nouvJoueur); nouvJoueur.ModifNbPartie(); nouvJoueur.AfficherJoueur(); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetPendu FPC = new FormsCompetence.FormProjetPendu(value, nouvJoueur, lesJoueurs, "arborescence"); FPC.MdiParent = form; FPC.Show(); } else { MessageBox.Show(LangueElement[174], LangueElement[173], MessageBoxButtons.OK, MessageBoxIcon.Warning); goto recommence; } } else { nouvJoueur = new Joueur("Guest"); lesJoueurs.Add(nouvJoueur); nouvJoueur.ModifNbPartie(); nouvJoueur.AfficherJoueur(); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetPendu FPC = new FormsCompetence.FormProjetPendu("Guest", nouvJoueur, lesJoueurs, "arborescence"); FPC.MdiParent = form; FPC.Show(); } } } if (lbl.Text == Destination[10].ToString()) { Fonction.ecrireFichier("", "", "", "", "", "", lbl.Text, dt); FormIndex form = (FormIndex)this.MdiParent; FormsCompetence.FormProjetSnake FPC = new FormsCompetence.FormProjetSnake(); FPC.MdiParent = form; FPC.Show(); } }