Exemple #1
0
 public frmGestJeu()
 {
     InitializeComponent();
     this.btnAjout.Click += new EventHandler(ajoutJeu_Click);
     this.btnDetails.Click += new EventHandler(detailsJeu_Click);
     ButtonsVisible(true);
     tri = 0;
     presentRow = 0;
     cj = new ctrlJeu();
     chargerColonnes();
 }
Exemple #2
0
        public frmGestJeu()
        {
            InitializeComponent();
            this.btnAjout.Click += new EventHandler(ajoutJeu_Click);
            this.btnDetails.Click += new EventHandler(detailsJeu_Click);
            this.btnRecherche.Click += new EventHandler(btnRecherche_Click);
            this.btnX.Click += new EventHandler(btnX_Click);
            this.txtRecherche.KeyDown += new KeyEventHandler(txtRecherche_KeyDown);

            ButtonsVisible(true);
            tri = 0;
            presentRow = 0;
            cj = new ctrlJeu();
            chargerColonnes();
            chargerDonnees();
        }
Exemple #3
0
        //      avec authentification
        public frmGestJeu(string _us)
        {
            InitializeComponent();
            this.btnAjout.Click += new EventHandler(ajoutJeu_Click);
            this.btnDetails.Click += new EventHandler(detailsJeu_Click);
            this.btnRecherche.Click += new EventHandler(btnRecherche_Click);
            this.btnX.Click += new EventHandler(btnX_Click);
            this.txtRecherche.KeyDown += new KeyEventHandler(txtRecherche_KeyDown);

            ButtonsVisible(true);
            tri = 0;
            presentRow = 0;
            cj = new ctrlJeu();
            UserNm = _us;
            droitUser();
        }
Exemple #4
0
        private void frmDetJeu_Load(object sender, EventArgs e)
        {
            cj = new ctrlJeu();
            this.btnAnnuler.Location = new Point(955, 580);
            this.btnActiverModif.Location = new Point(this.btnActiverModif.Location.X, 580);
            this.btnEnregistrer.Location = new Point(this.btnEnregistrer.Location.X, 580);
            this.btnSupprimer.Location = new Point(this.btnSupprimer.Location.X, 580);
            this.btnCopier.Location = new Point(975, 10);
            this.btnAnnuler.Click += new EventHandler(btnAnnuler_Click);
            this.btnEnregistrer.Click += new EventHandler(btnEnregistrer_Click);
            this.btnSupprimer.Click += new EventHandler(btnSupprimer_Click);
            this.btnActiverModif.Click += new EventHandler(btnActiverModif_Click);
            this.btnCopier.Click += new EventHandler(btnCopier_Click);

            foreach (var t in RequeteSql.getAllTheme())
            {
                TreeNode tn = tvAllTheme.Nodes.Add(t.NomTheme);
                tn.Tag = t;
            }
            foreach (var p in RequeteSql.getPlateforme())
            {
                TreeNode tn = tvAllPlateforme.Nodes.Add(p.NomPlateforme);
                tn.Tag = p;
            }
            foreach (var g in RequeteSql.getAllGenre())
            {
                cboxGenre.Items.Add(g.NomGenre);

            }
            foreach (var m in RequeteSql.getAllMode())
            {
                cboxMode.Items.Add(m.NomMode);
            }
            foreach (var c in rClassificationSQL.getAllClassification())
            {
                cboxCote.Items.Add(c.CoteESRB);
            }
        }