示例#1
0
 private void btnAjouter_Click(object sender, EventArgs e)
 {
     FormJeu formJeu = new FormJeu();
     if (formJeu.ShowDialog() == DialogResult.OK)
     {
         RefreshListe();
     }
 }
示例#2
0
        private void btnModifier_Click(object sender, EventArgs e)
        {
            if (lsvJeuAvecType.SelectedItems.Count == 1)
            {
                FormJeu formJeu = new FormJeu((int)lsvJeuAvecType.SelectedItems[0].Tag);

                if (formJeu.ShowDialog() == DialogResult.OK)
                {
                    this.RefreshListe();
                }

            }
            else
            {
                MessageBox.Show("Veuillez choisir une équipe parmis la liste.", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }