Gestion de dvd

Description

Il permet de pouvoir gérer une liste de dvd.
Ma base de données est dans un fichier access.
Je consulte les dvd, j'insère des dvd, je modifie des dvd, et je fais un listing global des dvd.

C'est une version béta :).

Mais bon, il ne reste pas grand chose a faire si vous voulez la modifier.

Source / Exemple :

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Data.OleDb;
using System.Globalization; 
using System.IO;
using System.Windows.Forms;




namespace DvdTheque
{
    /// <summary>
    /// #####################################################
    /// #					DvdTheque						#
    /// #													#
    /// # Permet de :										#
    ///	#	- Consulter une liste de DVD					#
    ///	#	- Faire des saisies								#
    ///	#	- Des recherches sur les DVD					#
    ///	#	- Modifier des Dvd								#
    ///	#	- Afficher une liste totale des enregistrements #
    ///	#													#
    ///	#####################################################
    /// </summary>
    public class DvdTheque : System.Windows.Forms.Form
    {
        /// <summary>
        /// Les différents objets utilisés pour la création de ce projet
        /// </summary>
        private System.ComponentModel.Container components = null;
        private System.Windows.Forms.TabPage TabSaisieEntree;
        private System.Windows.Forms.TabPage TabConsultation;
        private System.Windows.Forms.TabControl Onglets;
		private System.Windows.Forms.MainMenu BarreDeMenu;
		private System.Windows.Forms.PictureBox myPictureBox;
		private System.Windows.Forms.StatusBar mystatusBar;
		private System.Windows.Forms.MenuItem menuDvdtheque;
		private System.Windows.Forms.MenuItem menuExit;
		private System.Windows.Forms.TabPage TabRecherche;
		private System.Windows.Forms.TabPage TabVisualisationGlobale;
		private System.Windows.Forms.MenuItem menuInterrogation;
		private System.Windows.Forms.MenuItem menuApropos;
		private System.Windows.Forms.Label lblAnneeConsult;
		private System.Windows.Forms.Label lblGenreConsult;
		private System.Windows.Forms.Label lblDureeConsult;
		private System.Windows.Forms.Label lblTitreConsult;
		private System.Windows.Forms.Label lblRealisateurConsult;
		private System.Windows.Forms.Label lblActeurConsult;
		private System.Windows.Forms.Label lblEditeurConsult;
		private System.Windows.Forms.Label lblGenreSaisie;
		private System.Windows.Forms.Label lblAnneeSaisie;
		private System.Windows.Forms.Label lblActeurSaisie;
		private System.Windows.Forms.Label lblEditeurSaisie;
		private System.Windows.Forms.Label lblTitreSaisie;
		private System.Windows.Forms.Label lblRealisateurSaisie;
		private System.Windows.Forms.TextBox txtGenreConsult;
		private System.Windows.Forms.TextBox txtAnneeConsult;
		private System.Windows.Forms.TextBox txtDureeConsult;
		private System.Windows.Forms.TextBox txtTitreConsult;
		private System.Windows.Forms.TextBox txtRealisateurConsult;
		private System.Windows.Forms.TextBox txtActeurConsult;
		private System.Windows.Forms.TextBox txtEditeurConsult;
		private System.Windows.Forms.Label lblDureeSaisie;
		private System.Windows.Forms.TextBox txtSaisieDuree;
		private System.Windows.Forms.TextBox txtSaisieRealisateur;
		private System.Windows.Forms.TextBox txtSaisieGenre;
		private System.Windows.Forms.TextBox txtSaisieAnnee;
		private System.Windows.Forms.TextBox txtSaisieActeur;
		private System.Windows.Forms.TextBox txtSaisieEditeur;
		private System.Windows.Forms.TextBox txtSaisieTitre;
		private System.Windows.Forms.TabPage tabModification;
		private System.Data.OleDb.OleDbConnection oleDbConnect;
		private System.Windows.Forms.TextBox txtDureeModification;
		private System.Windows.Forms.TextBox txtRealisateurModification;
		private System.Windows.Forms.TextBox txtGenreModification;
		private System.Windows.Forms.TextBox txtAnneeModification;
		private System.Windows.Forms.TextBox txtActeurModification;
		private System.Windows.Forms.TextBox txtEditeurModification;
		private System.Windows.Forms.TextBox txtTitreModification;
		private System.Windows.Forms.Label lblDureeModification;
		private System.Windows.Forms.Label lblActeurModification;
		private System.Windows.Forms.Label lblEditeurModification;
		private System.Windows.Forms.Label lblTitreModification;
		private System.Windows.Forms.Label lblRealisateurModification;
		private System.Windows.Forms.Label lblGenreModification;
		private System.Windows.Forms.Label lblAnneeModification;
		private System.Windows.Forms.ComboBox cmbChoixRecherche;
		private System.Windows.Forms.TextBox txtToSearch;
		private System.Windows.Forms.Button btnGetResultSearch;
		private System.Windows.Forms.GroupBox gpbSaisieEntrees;
		private System.Windows.Forms.GroupBox gpbConsulter;
		private System.Windows.Forms.GroupBox gbpSearch;
		private System.Windows.Forms.GroupBox gpbModification;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.PictureBox pictureBox2;
		private System.Windows.Forms.PictureBox pictureBox3;
		private System.Windows.Forms.DataGrid dtgResultSearch;
		private System.Windows.Forms.Button btnConsultationSuivant;
		private System.Windows.Forms.Button btnConsultationPrecedent;
		private System.Windows.Forms.Button btnInsert;
		private System.Windows.Forms.Button btnUpdate;
		private System.Windows.Forms.Button btnPrecedentModif;
		private System.Windows.Forms.Button btnSuivantModif;
		private System.Windows.Forms.TextBox txtID;
		private System.Windows.Forms.DataGrid dtgshowAllData;
		private System.Windows.Forms.Button btnVisualisationGlobale;
		
		/// <summary>
		/// Elements additionnels ajoutés
		/// </summary>

		private int rowAffected;
		protected int m_IndexDataSet=0;
		private OleDbDataAdapter dtaTakeAll;
		protected DataSet m_DataSet;
		private DataSet dtsTakeAll;
		private OleDbCommand command;
		private string query;

		
		
		/// <summary>
		/// Constructeur
		/// </summary>
        public DvdTheque()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            InitialiseUtilisateur();
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

		
		
		
		/// <summary>
		/// Permet d'initialiser certains élements de l'interface
		/// </summary>
        public void InitialiseUtilisateur()
        {
			//Je l'utilise pour Initiliser l'interface
			//ou plutot, l'Onglet Consultation
            TabConsultation_Enter(null, new EventArgs());
        }

        
		
		
		/// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if (components != null) 
                {
                    components.Dispose();
                }
            }
            base.Dispose( disposing );
        }

        
		
		
		#region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DvdTheque));
			this.btnConsultationSuivant = new System.Windows.Forms.Button();
			this.txtEditeurConsult = new System.Windows.Forms.TextBox();
			this.TabRecherche = new System.Windows.Forms.TabPage();
			this.dtgResultSearch = new System.Windows.Forms.DataGrid();
			this.gbpSearch = new System.Windows.Forms.GroupBox();
			this.btnGetResultSearch = new System.Windows.Forms.Button();
			this.txtToSearch = new System.Windows.Forms.TextBox();
			this.cmbChoixRecherche = new System.Windows.Forms.ComboBox();
			this.TabSaisieEntree = new System.Windows.Forms.TabPage();
			this.pictureBox3 = new System.Windows.Forms.PictureBox();
			this.gpbSaisieEntrees = new System.Windows.Forms.GroupBox();
			this.btnInsert = new System.Windows.Forms.Button();
			this.txtSaisieAnnee = new System.Windows.Forms.TextBox();
			this.lblActeurSaisie = new System.Windows.Forms.Label();
			this.txtSaisieTitre = new System.Windows.Forms.TextBox();
			this.txtSaisieEditeur = new System.Windows.Forms.TextBox();
			this.lblTitreSaisie = new System.Windows.Forms.Label();
			this.lblGenreSaisie = new System.Windows.Forms.Label();
			this.lblAnneeSaisie = new System.Windows.Forms.Label();
			this.txtSaisieRealisateur = new System.Windows.Forms.TextBox();
			this.txtSaisieDuree = new System.Windows.Forms.TextBox();
			this.lblEditeurSaisie = new System.Windows.Forms.Label();
			this.lblRealisateurSaisie = new System.Windows.Forms.Label();
			this.txtSaisieGenre = new System.Windows.Forms.TextBox();
			this.lblDureeSaisie = new System.Windows.Forms.Label();
			this.txtSaisieActeur = new System.Windows.Forms.TextBox();
			this.TabConsultation = new System.Windows.Forms.TabPage();
			this.pictureBox2 = new System.Windows.Forms.PictureBox();
			this.gpbConsulter = new System.Windows.Forms.GroupBox();
			this.btnConsultationPrecedent = new System.Windows.Forms.Button();
			this.txtActeurConsult = new System.Windows.Forms.TextBox();
			this.lblTitreConsult = new System.Windows.Forms.Label();
			this.txtDureeConsult = new System.Windows.Forms.TextBox();
			this.txtGenreConsult = new System.Windows.Forms.TextBox();
			this.lblDureeConsult = new System.Windows.Forms.Label();
			this.txtAnneeConsult = new System.Windows.Forms.TextBox();
			this.txtRealisateurConsult = new System.Windows.Forms.TextBox();
			this.lblRealisateurConsult = new System.Windows.Forms.Label();
			this.lblEditeurConsult = new System.Windows.Forms.Label();
			this.lblAnneeConsult = new System.Windows.Forms.Label();
			this.lblGenreConsult = new System.Windows.Forms.Label();
			this.lblActeurConsult = new System.Windows.Forms.Label();
			this.txtTitreConsult = new System.Windows.Forms.TextBox();
			this.Onglets = new System.Windows.Forms.TabControl();
			this.tabModification = new System.Windows.Forms.TabPage();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.gpbModification = new System.Windows.Forms.GroupBox();
			this.txtID = new System.Windows.Forms.TextBox();
			this.btnPrecedentModif = new System.Windows.Forms.Button();
			this.btnSuivantModif = new System.Windows.Forms.Button();
			this.btnUpdate = new System.Windows.Forms.Button();
			this.txtDureeModification = new System.Windows.Forms.TextBox();
			this.lblDureeModification = new System.Windows.Forms.Label();
			this.txtRealisateurModification = new System.Windows.Forms.TextBox();
			this.txtGenreModification = new System.Windows.Forms.TextBox();
			this.txtAnneeModification = new System.Windows.Forms.TextBox();
			this.txtActeurModification = new System.Windows.Forms.TextBox();
			this.lblActeurModification = new System.Windows.Forms.Label();
			this.txtEditeurModification = new System.Windows.Forms.TextBox();
			this.txtTitreModification = new System.Windows.Forms.TextBox();
			this.lblEditeurModification = new System.Windows.Forms.Label();
			this.lblTitreModification = new System.Windows.Forms.Label();
			this.lblRealisateurModification = new System.Windows.Forms.Label();
			this.lblGenreModification = new System.Windows.Forms.Label();
			this.lblAnneeModification = new System.Windows.Forms.Label();
			this.TabVisualisationGlobale = new System.Windows.Forms.TabPage();
			this.dtgshowAllData = new System.Windows.Forms.DataGrid();
			this.btnVisualisationGlobale = new System.Windows.Forms.Button();
			this.mystatusBar = new System.Windows.Forms.StatusBar();
			this.BarreDeMenu = new System.Windows.Forms.MainMenu();
			this.menuDvdtheque = new System.Windows.Forms.MenuItem();
			this.menuExit = new System.Windows.Forms.MenuItem();
			this.menuInterrogation = new System.Windows.Forms.MenuItem();
			this.menuApropos = new System.Windows.Forms.MenuItem();
			this.myPictureBox = new System.Windows.Forms.PictureBox();
			this.oleDbConnect = new System.Data.OleDb.OleDbConnection();
			this.TabRecherche.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dtgResultSearch)).BeginInit();
			this.gbpSearch.SuspendLayout();
			this.TabSaisieEntree.SuspendLayout();
			this.gpbSaisieEntrees.SuspendLayout();
			this.TabConsultation.SuspendLayout();
			this.gpbConsulter.SuspendLayout();
			this.Onglets.SuspendLayout();
			this.tabModification.SuspendLayout();
			this.gpbModification.SuspendLayout();
			this.TabVisualisationGlobale.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dtgshowAllData)).BeginInit();
			this.SuspendLayout();
			// 
			// btnConsultationSuivant
			// 
			this.btnConsultationSuivant.Location = new System.Drawing.Point(271, 136);
			this.btnConsultationSuivant.Name = "btnConsultationSuivant";
			this.btnConsultationSuivant.TabIndex = 11;
			this.btnConsultationSuivant.Text = "Suivant >>";
			this.btnConsultationSuivant.Click += new System.EventHandler(this.btnConsultationSuivant_Click);
			// 
			// txtEditeurConsult
			// 
			this.txtEditeurConsult.Location = new System.Drawing.Point(16, 224);
			this.txtEditeurConsult.Name = "txtEditeurConsult";
			this.txtEditeurConsult.ReadOnly = true;
			this.txtEditeurConsult.Size = new System.Drawing.Size(208, 20);
			this.txtEditeurConsult.TabIndex = 6;
			this.txtEditeurConsult.Text = "";
			// 
			// TabRecherche
			// 
			this.TabRecherche.Controls.AddRange(new System.Windows.Forms.Control[] {
																					   this.dtgResultSearch,
																					   this.gbpSearch});
			this.TabRecherche.Location = new System.Drawing.Point(4, 22);
			this.TabRecherche.Name = "TabRecherche";
			this.TabRecherche.Size = new System.Drawing.Size(616, 270);
			this.TabRecherche.TabIndex = 3;
			this.TabRecherche.Text = "Recherche";
			// 
			// dtgResultSearch
			// 
			this.dtgResultSearch.DataMember = "";
			this.dtgResultSearch.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dtgResultSearch.Location = new System.Drawing.Point(228, 8);
			this.dtgResultSearch.Name = "dtgResultSearch";
			this.dtgResultSearch.Size = new System.Drawing.Size(376, 256);
			this.dtgResultSearch.TabIndex = 1;
			// 
			// gbpSearch
			// 
			this.gbpSearch.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.btnGetResultSearch,
																					this.txtToSearch,
																					this.cmbChoixRecherche});
			this.gbpSearch.Location = new System.Drawing.Point(8, 4);
			this.gbpSearch.Name = "gbpSearch";
			this.gbpSearch.Size = new System.Drawing.Size(196, 252);
			this.gbpSearch.TabIndex = 0;
			this.gbpSearch.TabStop = false;
			this.gbpSearch.Text = "Rechercher";
			// 
			// btnGetResultSearch
			// 
			this.btnGetResultSearch.Location = new System.Drawing.Point(56, 176);
			this.btnGetResultSearch.Name = "btnGetResultSearch";
			this.btnGetResultSearch.TabIndex = 2;
			this.btnGetResultSearch.Text = "Search!!";
			this.btnGetResultSearch.Click += new System.EventHandler(this.btnGetResultSearch_Click);
			// 
			// txtToSearch
			// 
			this.txtToSearch.Location = new System.Drawing.Point(44, 112);
			this.txtToSearch.Name = "txtToSearch";
			this.txtToSearch.TabIndex = 1;
			this.txtToSearch.Text = "";
			// 
			// cmbChoixRecherche
			// 
			this.cmbChoixRecherche.Items.AddRange(new object[] {
																   "Titre",
																   "Realisateur",
																   "Acteur",
																   "Annee",
																   "Genre"});
			this.cmbChoixRecherche.Location = new System.Drawing.Point(12, 28);
			this.cmbChoixRecherche.Name = "cmbChoixRecherche";
			this.cmbChoixRecherche.Size = new System.Drawing.Size(164, 21);
			this.cmbChoixRecherche.TabIndex = 0;
			// 
			// TabSaisieEntree
			// 
			this.TabSaisieEntree.AutoScroll = true;
			this.TabSaisieEntree.Controls.AddRange(new System.Windows.Forms.Control[] {
																						  this.pictureBox3,
																						  this.gpbSaisieEntrees});
			this.TabSaisieEntree.Location = new System.Drawing.Point(4, 22);
			this.TabSaisieEntree.Name = "TabSaisieEntree";
			this.TabSaisieEntree.Size = new System.Drawing.Size(616, 270);
			this.TabSaisieEntree.TabIndex = 1;
			this.TabSaisieEntree.Text = "Saisie des entrées";
			// 
			// pictureBox3
			// 
			this.pictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.pictureBox3.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox3.Image")));
			this.pictureBox3.Location = new System.Drawing.Point(408, 12);
			this.pictureBox3.Name = "pictureBox3";
			this.pictureBox3.Size = new System.Drawing.Size(200, 244);
			this.pictureBox3.TabIndex = 53;
			this.pictureBox3.TabStop = false;
			// 
			// gpbSaisieEntrees
			// 
			this.gpbSaisieEntrees.Controls.AddRange(new System.Windows.Forms.Control[] {
																						   this.btnInsert,
																						   this.txtSaisieAnnee,
																						   this.lblActeurSaisie,
																						   this.txtSaisieTitre,
																						   this.txtSaisieEditeur,
																						   this.lblTitreSaisie,
																						   this.lblGenreSaisie,
																						   this.lblAnneeSaisie,
																						   this.txtSaisieRealisateur,
																						   this.txtSaisieDuree,
																						   this.lblEditeurSaisie,
																						   this.lblRealisateurSaisie,
																						   this.txtSaisieGenre,
																						   this.lblDureeSaisie,
																						   this.txtSaisieActeur});
			this.gpbSaisieEntrees.Location = new System.Drawing.Point(8, 4);
			this.gpbSaisieEntrees.Name = "gpbSaisieEntrees";
			this.gpbSaisieEntrees.Size = new System.Drawing.Size(384, 252);
			this.gpbSaisieEntrees.TabIndex = 36;
			this.gpbSaisieEntrees.TabStop = false;
			this.gpbSaisieEntrees.Text = "Saisir";
			// 
			// btnInsert
			// 
			this.btnInsert.Location = new System.Drawing.Point(252, 124);
			this.btnInsert.Name = "btnInsert";
			this.btnInsert.TabIndex = 11;
			this.btnInsert.Text = "Insert Into Db";
			this.btnInsert.Click += new System.EventHandler(this.btnInsert_Click);
			// 
			// txtSaisieAnnee
			// 
			this.txtSaisieAnnee.Location = new System.Drawing.Point(16, 44);
			this.txtSaisieAnnee.Name = "txtSaisieAnnee";
			this.txtSaisieAnnee.Size = new System.Drawing.Size(48, 20);
			this.txtSaisieAnnee.TabIndex = 31;
			this.txtSaisieAnnee.Text = "";
			// 
			// lblActeurSaisie
			// 
			this.lblActeurSaisie.Location = new System.Drawing.Point(16, 164);
			this.lblActeurSaisie.Name = "lblActeurSaisie";
			this.lblActeurSaisie.Size = new System.Drawing.Size(72, 16);
			this.lblActeurSaisie.TabIndex = 29;
			this.lblActeurSaisie.Text = "Acteurs (s) :";
			// 
			// txtSaisieTitre
			// 
			this.txtSaisieTitre.Location = new System.Drawing.Point(16, 88);
			this.txtSaisieTitre.Name = "txtSaisieTitre";
			this.txtSaisieTitre.Size = new System.Drawing.Size(208, 20);
			this.txtSaisieTitre.TabIndex = 27;
			this.txtSaisieTitre.Text = "";
			// 
			// txtSaisieEditeur
			// 
			this.txtSaisieEditeur.Location = new System.Drawing.Point(16, 224);
			this.txtSaisieEditeur.Name = "txtSaisieEditeur";
			this.txtSaisieEditeur.Size = new System.Drawing.Size(208, 20);
			this.txtSaisieEditeur.TabIndex = 28;
			this.txtSaisieEditeur.Text = "";
			// 
			// lblTitreSaisie
			// 
			this.lblTitreSaisie.Location = new System.Drawing.Point(16, 72);
			this.lblTitreSaisie.Name = "lblTitreSaisie";
			this.lblTitreSaisie.Size = new System.Drawing.Size(40, 16);
			this.lblTitreSaisie.TabIndex = 25;
			this.lblTitreSaisie.Text = "Titre :";
			// 
			// lblGenreSaisie
			// 
			this.lblGenreSaisie.Location = new System.Drawing.Point(104, 20);
			this.lblGenreSaisie.Name = "lblGenreSaisie";
			this.lblGenreSaisie.Size = new System.Drawing.Size(44, 16);
			this.lblGenreSaisie.TabIndex = 23;
			this.lblGenreSaisie.Text = "Genre :";
			// 
			// lblAnneeSaisie
			// 
			this.lblAnneeSaisie.Location = new System.Drawing.Point(16, 20);
			this.lblAnneeSaisie.Name = "lblAnneeSaisie";
			this.lblAnneeSaisie.Size = new System.Drawing.Size(56, 16);
			this.lblAnneeSaisie.TabIndex = 22;
			this.lblAnneeSaisie.Text = "Année :";
			// 
			// txtSaisieRealisateur
			// 
			this.txtSaisieRealisateur.Location = new System.Drawing.Point(16, 136);
			this.txtSaisieRealisateur.Name = "txtSaisieRealisateur";
			this.txtSaisieRealisateur.Size = new System.Drawing.Size(208, 20);
			this.txtSaisieRealisateur.TabIndex = 33;
			this.txtSaisieRealisateur.Text = "";
			// 
			// txtSaisieDuree
			// 
			this.txtSaisieDuree.Location = new System.Drawing.Point(240, 44);
			this.txtSaisieDuree.Name = "txtSaisieDuree";
			this.txtSaisieDuree.Size = new System.Drawing.Size(48, 20);
			this.txtSaisieDuree.TabIndex = 35;
			this.txtSaisieDuree.Text = "";
			// 
			// lblEditeurSaisie
			// 
			this.lblEditeurSaisie.Location = new System.Drawing.Point(16, 208);
			this.lblEditeurSaisie.Name = "lblEditeurSaisie";
			this.lblEditeurSaisie.Size = new System.Drawing.Size(64, 16);
			this.lblEditeurSaisie.TabIndex = 26;
			this.lblEditeurSaisie.Text = "Editeur :";
			// 
			// lblRealisateurSaisie
			// 
			this.lblRealisateurSaisie.Location = new System.Drawing.Point(16, 120);
			this.lblRealisateurSaisie.Name = "lblRealisateurSaisie";
			this.lblRealisateurSaisie.Size = new System.Drawing.Size(80, 16);
			this.lblRealisateurSaisie.TabIndex = 24;
			this.lblRealisateurSaisie.Text = "Réalisateur :";
			// 
			// txtSaisieGenre
			// 
			this.txtSaisieGenre.Location = new System.Drawing.Point(100, 44);
			this.txtSaisieGenre.Name = "txtSaisieGenre";
			this.txtSaisieGenre.Size = new System.Drawing.Size(120, 20);
			this.txtSaisieGenre.TabIndex = 32;
			this.txtSaisieGenre.Text = "";
			// 
			// lblDureeSaisie
			// 
			this.lblDureeSaisie.Location = new System.Drawing.Point(240, 24);
			this.lblDureeSaisie.Name = "lblDureeSaisie";
			this.lblDureeSaisie.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.lblDureeSaisie.Size = new System.Drawing.Size(84, 16);
			this.lblDureeSaisie.TabIndex = 34;
			this.lblDureeSaisie.Text = "Durée (en mn) :";
			// 
			// txtSaisieActeur
			// 
			this.txtSaisieActeur.Location = new System.Drawing.Point(16, 180);
			this.txtSaisieActeur.Name = "txtSaisieActeur";
			this.txtSaisieActeur.Size = new System.Drawing.Size(208, 20);
			this.txtSaisieActeur.TabIndex = 30;
			this.txtSaisieActeur.Text = "";
			// 
			// TabConsultation
			// 
			this.TabConsultation.Controls.AddRange(new System.Windows.Forms.Control[] {
																						  this.pictureBox2,
																						  this.gpbConsulter});
			this.TabConsultation.Location = new System.Drawing.Point(4, 22);
			this.TabConsultation.Name = "TabConsultation";
			this.TabConsultation.Size = new System.Drawing.Size(616, 270);
			this.TabConsultation.TabIndex = 0;
			this.TabConsultation.Text = "Consultation";
			this.TabConsultation.Enter += new System.EventHandler(this.TabConsultation_Enter);
			// 
			// pictureBox2
			// 
			this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.pictureBox2.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox2.Image")));
			this.pictureBox2.Location = new System.Drawing.Point(408, 12);
			this.pictureBox2.Name = "pictureBox2";
			this.pictureBox2.Size = new System.Drawing.Size(200, 244);
			this.pictureBox2.TabIndex = 53;
			this.pictureBox2.TabStop = false;
			// 
			// gpbConsulter
			// 
			this.gpbConsulter.Controls.AddRange(new System.Windows.Forms.Control[] {
																					   this.btnConsultationPrecedent,
																					   this.btnConsultationSuivant,
																					   this.txtActeurConsult,
																					   this.lblTitreConsult,
																					   this.txtDureeConsult,
																					   this.txtGenreConsult,
																					   this.lblDureeConsult,
																					   this.txtAnneeConsult,
																					   this.txtEditeurConsult,
																					   this.txtRealisateurConsult,
																					   this.lblRealisateurConsult,
																					   this.lblEditeurConsult,
																					   this.lblAnneeConsult,
																					   this.lblGenreConsult,
																					   this.lblActeurConsult,
																					   this.txtTitreConsult});
			this.gpbConsulter.Location = new System.Drawing.Point(8, 4);
			this.gpbConsulter.Name = "gpbConsulter";
			this.gpbConsulter.Size = new System.Drawing.Size(384, 252);
			this.gpbConsulter.TabIndex = 22;
			this.gpbConsulter.TabStop = false;
			this.gpbConsulter.Text = "Consulter";
			// 
			// btnConsultationPrecedent
			// 
			this.btnConsultationPrecedent.Location = new System.Drawing.Point(269, 100);
			this.btnConsultationPrecedent.Name = "btnConsultationPrecedent";
			this.btnConsultationPrecedent.Size = new System.Drawing.Size(80, 23);
			this.btnConsultationPrecedent.TabIndex = 10;
			this.btnConsultationPrecedent.Text = "<<Précèdent";
			this.btnConsultationPrecedent.Click += new System.EventHandler(this.btnConsultationPrecedent_Click);
			// 
			// txtActeurConsult
			// 
			this.txtActeurConsult.Location = new System.Drawing.Point(16, 180);
			this.txtActeurConsult.Name = "txtActeurConsult";
			this.txtActeurConsult.ReadOnly = true;
			this.txtActeurConsult.Size = new System.Drawing.Size(208, 20);
			this.txtActeurConsult.TabIndex = 13;
			this.txtActeurConsult.Text = "";
			// 
			// lblTitreConsult
			// 
			this.lblTitreConsult.Location = new System.Drawing.Point(16, 72);
			this.lblTitreConsult.Name = "lblTitreConsult";
			this.lblTitreConsult.Size = new System.Drawing.Size(40, 16);
			this.lblTitreConsult.TabIndex = 3;
			this.lblTitreConsult.Text = "Titre :";
			// 
			// txtDureeConsult
			// 
			this.txtDureeConsult.Location = new System.Drawing.Point(240, 44);
			this.txtDureeConsult.Name = "txtDureeConsult";
			this.txtDureeConsult.ReadOnly = true;
			this.txtDureeConsult.Size = new System.Drawing.Size(48, 20);
			this.txtDureeConsult.TabIndex = 21;
			this.txtDureeConsult.Text = "";
			// 
			// txtGenreConsult
			// 
			this.txtGenreConsult.Location = new System.Drawing.Point(100, 44);
			this.txtGenreConsult.Name = "txtGenreConsult";
			this.txtGenreConsult.ReadOnly = true;
			this.txtGenreConsult.Size = new System.Drawing.Size(120, 20);
			this.txtGenreConsult.TabIndex = 18;
			this.txtGenreConsult.Text = "";
			// 
			// lblDureeConsult
			// 
			this.lblDureeConsult.Location = new System.Drawing.Point(240, 24);
			this.lblDureeConsult.Name = "lblDureeConsult";
			this.lblDureeConsult.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.lblDureeConsult.Size = new System.Drawing.Size(86, 16);
			this.lblDureeConsult.TabIndex = 20;
			this.lblDureeConsult.Text = "Durée (en mn) :";
			// 
			// txtAnneeConsult
			// 
			this.txtAnneeConsult.Location = new System.Drawing.Point(16, 44);
			this.txtAnneeConsult.Name = "txtAnneeConsult";
			this.txtAnneeConsult.ReadOnly = true;
			this.txtAnneeConsult.Size = new System.Drawing.Size(48, 20);
			this.txtAnneeConsult.TabIndex = 17;
			this.txtAnneeConsult.Text = "";
			// 
			// txtRealisateurConsult
			// 
			this.txtRealisateurConsult.Location = new System.Drawing.Point(16, 136);
			this.txtRealisateurConsult.Name = "txtRealisateurConsult";
			this.txtRealisateurConsult.ReadOnly = true;
			this.txtRealisateurConsult.Size = new System.Drawing.Size(208, 20);
			this.txtRealisateurConsult.TabIndex = 19;
			this.txtRealisateurConsult.Text = "";
			// 
			// lblRealisateurConsult
			// 
			this.lblRealisateurConsult.Location = new System.Drawing.Point(16, 120);
			this.lblRealisateurConsult.Name = "lblRealisateurConsult";
			this.lblRealisateurConsult.Size = new System.Drawing.Size(80, 16);
			this.lblRealisateurConsult.TabIndex = 2;
			this.lblRealisateurConsult.Text = "Réalisateur";
			// 
			// lblEditeurConsult
			// 
			this.lblEditeurConsult.Location = new System.Drawing.Point(16, 208);
			this.lblEditeurConsult.Name = "lblEditeurConsult";
			this.lblEditeurConsult.Size = new System.Drawing.Size(64, 16);
			this.lblEditeurConsult.TabIndex = 4;
			this.lblEditeurConsult.Text = "Editeur";
			// 
			// lblAnneeConsult
			// 
			this.lblAnneeConsult.Location = new System.Drawing.Point(16, 20);
			this.lblAnneeConsult.Name = "lblAnneeConsult";
			this.lblAnneeConsult.Size = new System.Drawing.Size(56, 16);
			this.lblAnneeConsult.TabIndex = 0;
			this.lblAnneeConsult.Text = "Année :";
			// 
			// lblGenreConsult
			// 
			this.lblGenreConsult.Location = new System.Drawing.Point(104, 20);
			this.lblGenreConsult.Name = "lblGenreConsult";
			this.lblGenreConsult.Size = new System.Drawing.Size(49, 16);
			this.lblGenreConsult.TabIndex = 1;
			this.lblGenreConsult.Text = "Genre :";
			// 
			// lblActeurConsult
			// 
			this.lblActeurConsult.Location = new System.Drawing.Point(16, 164);
			this.lblActeurConsult.Name = "lblActeurConsult";
			this.lblActeurConsult.Size = new System.Drawing.Size(72, 16);
			this.lblActeurConsult.TabIndex = 12;
			this.lblActeurConsult.Text = "Acteurs (s)";
			// 
			// txtTitreConsult
			// 
			this.txtTitreConsult.Location = new System.Drawing.Point(16, 88);
			this.txtTitreConsult.Name = "txtTitreConsult";
			this.txtTitreConsult.ReadOnly = true;
			this.txtTitreConsult.Size = new System.Drawing.Size(208, 20);
			this.txtTitreConsult.TabIndex = 5;
			this.txtTitreConsult.Text = "";
			// 
			// Onglets
			// 
			this.Onglets.Controls.AddRange(new System.Windows.Forms.Control[] {
																				  this.TabConsultation,
																				  this.TabSaisieEntree,
																				  this.tabModification,
																				  this.TabRecherche,
																				  this.TabVisualisationGlobale});
			this.Onglets.Location = new System.Drawing.Point(4, 128);
			this.Onglets.Name = "Onglets";
			this.Onglets.SelectedIndex = 0;
			this.Onglets.Size = new System.Drawing.Size(624, 296);
			this.Onglets.TabIndex = 0;
			// 
			// tabModification
			// 
			this.tabModification.Controls.AddRange(new System.Windows.Forms.Control[] {
																						  this.pictureBox1,
																						  this.gpbModification});
			this.tabModification.Location = new System.Drawing.Point(4, 22);
			this.tabModification.Name = "tabModification";
			this.tabModification.Size = new System.Drawing.Size(616, 270);
			this.tabModification.TabIndex = 5;
			this.tabModification.Text = "Modification";
			// 
			// pictureBox1
			// 
			this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image")));
			this.pictureBox1.Location = new System.Drawing.Point(408, 12);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(200, 244);
			this.pictureBox1.TabIndex = 52;
			this.pictureBox1.TabStop = false;
			// 
			// gpbModification
			// 
			this.gpbModification.Controls.AddRange(new System.Windows.Forms.Control[] {
																						  this.txtID,
																						  this.btnPrecedentModif,
																						  this.btnSuivantModif,
																						  this.btnUpdate,
																						  this.txtDureeModification,
																						  this.lblDureeModification,
																						  this.txtRealisateurModification,
																						  this.txtGenreModification,
																						  this.txtAnneeModification,
																						  this.txtActeurModification,
																						  this.lblActeurModification,
																						  this.txtEditeurModification,
																						  this.txtTitreModification,
																						  this.lblEditeurModification,
																						  this.lblTitreModification,
																						  this.lblRealisateurModification,
																						  this.lblGenreModification,
																						  this.lblAnneeModification});
			this.gpbModification.Location = new System.Drawing.Point(8, 4);
			this.gpbModification.Name = "gpbModification";
			this.gpbModification.Size = new System.Drawing.Size(384, 252);
			this.gpbModification.TabIndex = 51;
			this.gpbModification.TabStop = false;
			this.gpbModification.Text = "Modification";
			// 
			// txtID
			// 
			this.txtID.Location = new System.Drawing.Point(324, 44);
			this.txtID.Name = "txtID";
			this.txtID.ReadOnly = true;
			this.txtID.Size = new System.Drawing.Size(40, 20);
			this.txtID.TabIndex = 68;
			this.txtID.Text = "";
			// 
			// btnPrecedentModif
			// 
			this.btnPrecedentModif.Location = new System.Drawing.Point(280, 172);
			this.btnPrecedentModif.Name = "btnPrecedentModif";
			this.btnPrecedentModif.Size = new System.Drawing.Size(80, 23);
			this.btnPrecedentModif.TabIndex = 66;
			this.btnPrecedentModif.Text = "<<Précèdent";
			this.btnPrecedentModif.Click += new System.EventHandler(this.btnPrecedentModif_Click);
			// 
			// btnSuivantModif
			// 
			this.btnSuivantModif.Location = new System.Drawing.Point(284, 208);
			this.btnSuivantModif.Name = "btnSuivantModif";
			this.btnSuivantModif.TabIndex = 67;
			this.btnSuivantModif.Text = "Suivant >>";
			this.btnSuivantModif.Click += new System.EventHandler(this.btnSuivantModif_Click);
			// 
			// btnUpdate
			// 
			this.btnUpdate.Location = new System.Drawing.Point(280, 108);
			this.btnUpdate.Name = "btnUpdate";
			this.btnUpdate.TabIndex = 65;
			this.btnUpdate.Text = "Update Db";
			this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
			// 
			// txtDureeModification
			// 
			this.txtDureeModification.Location = new System.Drawing.Point(240, 44);
			this.txtDureeModification.Name = "txtDureeModification";
			this.txtDureeModification.Size = new System.Drawing.Size(48, 20);
			this.txtDureeModification.TabIndex = 64;
			this.txtDureeModification.Text = "";
			// 
			// lblDureeModification
			// 
			this.lblDureeModification.Location = new System.Drawing.Point(240, 24);
			this.lblDureeModification.Name = "lblDureeModification";
			this.lblDureeModification.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.lblDureeModification.Size = new System.Drawing.Size(84, 16);
			this.lblDureeModification.TabIndex = 63;
			this.lblDureeModification.Text = "Durée (en mn) :";
			// 
			// txtRealisateurModification
			// 
			this.txtRealisateurModification.Location = new System.Drawing.Point(16, 136);
			this.txtRealisateurModification.Name = "txtRealisateurModification";
			this.txtRealisateurModification.Size = new System.Drawing.Size(208, 20);
			this.txtRealisateurModification.TabIndex = 62;
			this.txtRealisateurModification.Text = "";
			// 
			// txtGenreModification
			// 
			this.txtGenreModification.Location = new System.Drawing.Point(100, 44);
			this.txtGenreModification.Name = "txtGenreModification";
			this.txtGenreModification.Size = new System.Drawing.Size(120, 20);
			this.txtGenreModification.TabIndex = 61;
			this.txtGenreModification.Text = "";
			// 
			// txtAnneeModification
			// 
			this.txtAnneeModification.Location = new System.Drawing.Point(16, 44);
			this.txtAnneeModification.Name = "txtAnneeModification";
			this.txtAnneeModification.Size = new System.Drawing.Size(48, 20);
			this.txtAnneeModification.TabIndex = 60;
			this.txtAnneeModification.Text = "";
			// 
			// txtActeurModification
			// 
			this.txtActeurModification.Location = new System.Drawing.Point(16, 180);
			this.txtActeurModification.Name = "txtActeurModification";
			this.txtActeurModification.Size = new System.Drawing.Size(208, 20);
			this.txtActeurModification.TabIndex = 59;
			this.txtActeurModification.Text = "";
			// 
			// lblActeurModification
			// 
			this.lblActeurModification.Location = new System.Drawing.Point(16, 164);
			this.lblActeurModification.Name = "lblActeurModification";
			this.lblActeurModification.Size = new System.Drawing.Size(64, 16);
			this.lblActeurModification.TabIndex = 58;
			this.lblActeurModification.Text = "Acteurs (s)";
			// 
			// txtEditeurModification
			// 
			this.txtEditeurModification.Location = new System.Drawing.Point(16, 224);
			this.txtEditeurModification.Name = "txtEditeurModification";
			this.txtEditeurModification.Size = new System.Drawing.Size(208, 20);
			this.txtEditeurModification.TabIndex = 57;
			this.txtEditeurModification.Text = "";
			// 
			// txtTitreModification
			// 
			this.txtTitreModification.Location = new System.Drawing.Point(16, 88);
			this.txtTitreModification.Name = "txtTitreModification";
			this.txtTitreModification.Size = new System.Drawing.Size(208, 20);
			this.txtTitreModification.TabIndex = 56;
			this.txtTitreModification.Text = "";
			// 
			// lblEditeurModification
			// 
			this.lblEditeurModification.Location = new System.Drawing.Point(16, 208);
			this.lblEditeurModification.Name = "lblEditeurModification";
			this.lblEditeurModification.Size = new System.Drawing.Size(56, 16);
			this.lblEditeurModification.TabIndex = 55;
			this.lblEditeurModification.Text = "Editeur";
			// 
			// lblTitreModification
			// 
			this.lblTitreModification.Location = new System.Drawing.Point(16, 72);
			this.lblTitreModification.Name = "lblTitreModification";
			this.lblTitreModification.Size = new System.Drawing.Size(32, 16);
			this.lblTitreModification.TabIndex = 54;
			this.lblTitreModification.Text = "Titre :";
			// 
			// lblRealisateurModification
			// 
			this.lblRealisateurModification.Location = new System.Drawing.Point(16, 120);
			this.lblRealisateurModification.Name = "lblRealisateurModification";
			this.lblRealisateurModification.Size = new System.Drawing.Size(84, 16);
			this.lblRealisateurModification.TabIndex = 53;
			this.lblRealisateurModification.Text = "Réalisateur :";
			// 
			// lblGenreModification
			// 
			this.lblGenreModification.Location = new System.Drawing.Point(104, 20);
			this.lblGenreModification.Name = "lblGenreModification";
			this.lblGenreModification.Size = new System.Drawing.Size(40, 16);
			this.lblGenreModification.TabIndex = 52;
			this.lblGenreModification.Text = "Genre";
			// 
			// lblAnneeModification
			// 
			this.lblAnneeModification.Location = new System.Drawing.Point(16, 20);
			this.lblAnneeModification.Name = "lblAnneeModification";
			this.lblAnneeModification.Size = new System.Drawing.Size(48, 16);
			this.lblAnneeModification.TabIndex = 51;
			this.lblAnneeModification.Text = "Année :";
			// 
			// TabVisualisationGlobale
			// 
			this.TabVisualisationGlobale.Controls.AddRange(new System.Windows.Forms.Control[] {
																								  this.dtgshowAllData,
																								  this.btnVisualisationGlobale});
			this.TabVisualisationGlobale.Location = new System.Drawing.Point(4, 22);
			this.TabVisualisationGlobale.Name = "TabVisualisationGlobale";
			this.TabVisualisationGlobale.Size = new System.Drawing.Size(616, 270);
			this.TabVisualisationGlobale.TabIndex = 4;
			this.TabVisualisationGlobale.Text = "Visualisation Globale";
			// 
			// dtgshowAllData
			// 
			this.dtgshowAllData.DataMember = "";
			this.dtgshowAllData.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dtgshowAllData.Location = new System.Drawing.Point(8, 8);
			this.dtgshowAllData.Name = "dtgshowAllData";
			this.dtgshowAllData.Size = new System.Drawing.Size(512, 252);
			this.dtgshowAllData.TabIndex = 12;
			// 
			// btnVisualisationGlobale
			// 
			this.btnVisualisationGlobale.Location = new System.Drawing.Point(532, 35);
			this.btnVisualisationGlobale.Name = "btnVisualisationGlobale";
			this.btnVisualisationGlobale.TabIndex = 11;
			this.btnVisualisationGlobale.Text = "Refresh";
			this.btnVisualisationGlobale.Click += new System.EventHandler(this.btnVisualisationGlobale_Click_1);
			// 
			// mystatusBar
			// 
			this.mystatusBar.Location = new System.Drawing.Point(0, 429);
			this.mystatusBar.Name = "mystatusBar";
			this.mystatusBar.Size = new System.Drawing.Size(638, 22);
			this.mystatusBar.TabIndex = 1;
			// 
			// BarreDeMenu
			// 
			this.BarreDeMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						this.menuDvdtheque,
																						this.menuInterrogation});
			// 
			// menuDvdtheque
			// 
			this.menuDvdtheque.Index = 0;
			this.menuDvdtheque.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						  this.menuExit});
			this.menuDvdtheque.Text = "Dvdthèque";
			// 
			// menuExit
			// 
			this.menuExit.Index = 0;
			this.menuExit.Text = "Exit";
			this.menuExit.Click += new System.EventHandler(this.menuExit_Click);
			// 
			// menuInterrogation
			// 
			this.menuInterrogation.Index = 1;
			this.menuInterrogation.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																							  this.menuApropos});
			this.menuInterrogation.Text = "?";
			// 
			// menuApropos
			// 
			this.menuApropos.Index = 0;
			this.menuApropos.Text = "A propos de la DvdThèque";
			this.menuApropos.Click += new System.EventHandler(this.menuApropos_Click);
			// 
			// myPictureBox
			// 
			this.myPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.myPictureBox.Image = ((System.Drawing.Bitmap)(resources.GetObject("myPictureBox.Image")));
			this.myPictureBox.Location = new System.Drawing.Point(4, 4);
			this.myPictureBox.Name = "myPictureBox";
			this.myPictureBox.Size = new System.Drawing.Size(624, 120);
			this.myPictureBox.TabIndex = 2;
			this.myPictureBox.TabStop = false;
			// 
			// oleDbConnect
			// 
			this.oleDbConnect.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=produits.mdb;Mode=Share Deny None;Extended Properties="""";Jet OLEDB:System database="""";Jet OLEDB:Registry Path="""";Jet OLEDB:Database Password="""";Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="""";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False";
			// 
			// DvdTheque
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(638, 451);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.myPictureBox,
																		  this.mystatusBar,
																		  this.Onglets});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.Menu = this.BarreDeMenu;
			this.Name = "DvdTheque";
			this.Text = "DvdThèque";
			this.TabRecherche.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dtgResultSearch)).EndInit();
			this.gbpSearch.ResumeLayout(false);
			this.TabSaisieEntree.ResumeLayout(false);
			this.gpbSaisieEntrees.ResumeLayout(false);
			this.TabConsultation.ResumeLayout(false);
			this.gpbConsulter.ResumeLayout(false);
			this.Onglets.ResumeLayout(false);
			this.tabModification.ResumeLayout(false);
			this.gpbModification.ResumeLayout(false);
			this.TabVisualisationGlobale.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dtgshowAllData)).EndInit();
			this.ResumeLayout(false);

		}
        #endregion




		/// <summary>
		/// 
		/// Fonction Click du bouton Précédent situé sur le TabPage Consultation
		/// Permet de voir les données par ordre décroissant
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
        protected void btnConsultationPrecedent_Click (object sender, System.EventArgs e)
        {
			try
			{
				//Je stocke mon nombre total de lignes ds une variable MaxIndex
				int MaxIndex=m_DataSet.Tables["SelectTout"].Rows.Count;
				
				//Je décrémente mon index du dataSet
				m_IndexDataSet--;
				
				//si mon index doit etre plus petit que 0...
				if (m_IndexDataSet<0)
				
				//Je reviens a mon Index Maximum
				m_IndexDataSet=MaxIndex-1;
				
				//fonction d'affichage des données
				AfficheDataRowCourant();
			}
			catch (Exception Erreur)
			{
				MessageBox.Show(Erreur.Message);
			}
        }


		
		
		/// <summary>
		/// 
		/// Fonction Click du bouton Suivant situé sur le TabPage Consultation
		/// Permet de voir les données par ordre croissant
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
        protected void btnConsultationSuivant_Click (object sender, System.EventArgs e)
        {
			try
			{
				//Je stocke mon nombre total de lignes ds une variable MaxIndex
				int MaxIndex=m_DataSet.Tables["SelectTout"].Rows.Count;
				
				//J'incrémente mon index du dataSet
				m_IndexDataSet++;
				
				//si on arrive a la fin de mon indexMax...
				if (m_IndexDataSet>MaxIndex-1)
				
				//On revient au début
				m_IndexDataSet=0;

				//fonction d'affichage des données
				AfficheDataRowCourant();
			}
			catch (Exception Erreur)
			{
				MessageBox.Show(Erreur.Message);
			}
        }


		
		
		/// <summary>
		/// 
		/// Fonction permettant d'afficher les données courants d'une ligne de la table
		/// 
		/// </summary>
		protected void AfficheDataRowCourant()
		{
			try
			{	// Initialisation d'une ligne de données
				DataRow dr=m_DataSet.Tables["SelectTout"].Rows[m_IndexDataSet];
				
				//Affectation ds nos différents textBox
				txtAnneeConsult.Text=dr["annee"].ToString();
				txtGenreConsult.Text=dr["genre"].ToString();
				txtDureeConsult.Text=dr["duree"].ToString();
				txtTitreConsult.Text=dr["titre"].ToString();
				txtActeurConsult.Text=dr["acteur"].ToString();
				txtRealisateurConsult.Text=dr["realisateur"].ToString();
				txtEditeurConsult.Text=dr["editeur"].ToString();
			}
			catch (Exception Erreur)
			{
				MessageBox.Show(Erreur.Message);
			}
		}


		
		
		/// <summary>
		/// 
		/// Fonction initialisant l'arrivée sur le TabPage Consultation
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
        protected void TabConsultation_Enter (object sender, System.EventArgs e)
        {
			//Notre requete
			query = "SELECT * FROM Produits";

			//Initialisation de notre requete et connection ds un object OleDbDataAdapter
			dtaTakeAll = new OleDbDataAdapter(query,oleDbConnect);

			//Initialisation d'un new dataset
			dtsTakeAll = new DataSet();
            try
            {
				//Ouverture connection
				oleDbConnect.Open();

				//BArre de Statut. Si on est connecté, elle affiche Open, sinon Closed.
				mystatusBar.Text = oleDbConnect.State.ToString();
                
				//Nous stockons toutes nos données ds le dataset
				m_DataSet=new DataSet("SelectTout");

				//Sert a "remplir" notre OleDbDataAdapter
                dtaTakeAll.Fill(m_DataSet, "SelectTout");
                m_IndexDataSet=0;
                if (m_DataSet.Tables["SelectTout"].Rows.Count>0)
                {
                    AfficheDataRowCourant();
                }
            }
            catch (Exception Erreur)
            {
                MessageBox.Show(Erreur.Message);
            }
			finally
			{
				//fermeture connection
				oleDbConnect.Close();
				//etat sur la statut barre : closed
				mystatusBar.Text = oleDbConnect.State.ToString();
			}
        }


        
		
		/// <summary>
        /// 
		/// Fonction Click du Bouton Update sur le TabPage Saisie des entrées
		/// Permet l'insertion des données dans notre table
		/// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
		protected void btnInsert_Click(object sender, System.EventArgs e)
        {
			try
            {
				//Ici petit controle :
				//L'insertion se fait seulement si les champs du titre et de l'acteur ne
				//sont pas vides
				if (txtSaisieTitre.Text!="" && txtSaisieActeur.Text!="")
				{
					//Notre ordre INSERT est stocké ds une command
					command = new OleDbCommand("INSERT INTO produits(titre,editeur,genre,realisateur,acteur,annee,duree) VALUES('"+txtSaisieTitre.Text+"','"+txtSaisieEditeur.Text+"','"+txtSaisieGenre.Text+"','"+txtSaisieRealisateur.Text+"','"+txtSaisieActeur.Text+"','"+txtSaisieAnnee.Text+"','"+txtSaisieDuree.Text+"');", oleDbConnect);
					//Ouverture connection
					oleDbConnect.Open();
					//Affichage de l'état de la connection sur notre statut Bar
					mystatusBar.Text = oleDbConnect.State.ToString();
					rowAffected = command.ExecuteNonQuery();
				}
				//Si un des champs titre ou acteur est vide, on signale une erreur
				else
				{
					MessageBox.Show("Un ou plusieurs champs sont vides");
				}
            }
            catch (Exception Erreur)
            {
                MessageBox.Show(Erreur.Message);
            }
			finally
			{
				//fermeture connection
				oleDbConnect.Close();
				//Affichage de l'état de la connection sur notre statut Bar
				mystatusBar.Text = oleDbConnect.State.ToString();
				MessageBox.Show("Les Lignes ont été correctement insérées");
			}
			//fin de Update
        }

		
		
		
		/// <summary>
		/// 
		/// Fonction du menuItem Exit
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void menuExit_Click(object sender, System.EventArgs e)
		{
			Application.Exit();
		}

		
		
		
		/// <summary>
		/// 
		/// Fonction de menuItem Apropos
		/// Ouvre une fenetre
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void menuApropos_Click(object sender, System.EventArgs e)
		{
			Aproposde ap = new Aproposde();
			ap.ShowDialog();
		}


		
		
		/// <summary>
		/// 
		/// Fonction du bouton situé sur le TabPage Visualisation Globale
		/// Permet d'afficher l'ensemble de la table
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnVisualisationGlobale_Click_1(object sender, System.EventArgs e)
		{
			//Notre requete
			query = "SELECT * FROM Produits";

			//initialisation de notre requete et connection dans un oleDbDataAdapter
			dtaTakeAll = new OleDbDataAdapter(query,oleDbConnect);

			//Initialisation d'un new dataset
			dtsTakeAll = new DataSet();
			try
			{
				//Ouverture Connection
				oleDbConnect.Open();
				//Affichage de l'etat de la connection sur notre statut bar
				mystatusBar.Text = oleDbConnect.State.ToString();
				
				//On rempbli notre dataset
				dtaTakeAll.Fill(dtsTakeAll, "Produits");

				//on stocke nos données ds une dataTable
				DataTable dtbShowAllData = dtsTakeAll.Tables["Produits"];
				
				//les données de notre datagrid sont celle de la datatable
				dtgshowAllData.DataSource = dtbShowAllData;
				
				//Autorisation de lecture des données sur notre datagrid
				dtgshowAllData.ReadOnly = true;

			}
			finally
			{
				oleDbConnect.Close();
				mystatusBar.Text = oleDbConnect.State.ToString();
			}
		}

		
		
		
		/// <summary>
		/// 
		/// Fonction du bouton situé sur le TabPage Recherche
		/// Permet de lancer la recherche de certains critères
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnGetResultSearch_Click(object sender, System.EventArgs e)
		{
			//Si notre champs de recherche n'est pas vide
			if(txtToSearch.Text !="")
			{
				//On fait un switch des options de notre ComboBox
				switch(cmbChoixRecherche.SelectedItem.ToString())
				{
					case "Titre":
						query = "SELECT * FROM Produits WHERE Titre LIKE'"+ txtToSearch.Text+"'" ;			
						break;
					case "Realisateur":
						query = "SELECT * FROM Produits WHERE Realisateur LIKE '"+ txtToSearch.Text+"'" ;			
						break;
					case "Acteur":
						query = "SELECT * FROM Produits WHERE Acteur LIKE'"+ txtToSearch.Text+"'" ;
						break;
					case "Annee":
						query = "SELECT * FROM Produits WHERE Annee LIKE'"+ txtToSearch.Text+"'" ;
						break;
					case "Genre":
						query = "SELECT * FROM Produits WHERE Genre LIKE'"+ txtToSearch.Text+"'" ;
						break;
					default:
						query = "SELECT * FROM Produits WHERE Prenom LIKE'"+ txtToSearch.Text+"'" ;			
						break;
				}

				//Initialisation des paramères de notre connection
				dtaTakeAll = new OleDbDataAdapter(query,oleDbConnect);
				dtsTakeAll = new DataSet();
			
				try
				{
					oleDbConnect.Open();
					mystatusBar.Text = oleDbConnect.State.ToString();
					dtaTakeAll.Fill(dtsTakeAll, "Produits");				
					DataTable dtbShowAllData = dtsTakeAll.Tables["Produits"];
					dtgResultSearch.DataSource = dtbShowAllData;
				}
				finally
				{
					oleDbConnect.Close();
					mystatusBar.Text = oleDbConnect.State.ToString();
				}
			}
			else
			{
				MessageBox.Show("Entrez une donnée à chercher");
			}
		}

		
		
		
		/// <summary>
		/// 
		/// Fonction Click du bouton precedent situé sur le TabPage Modification
		/// Nous faisons la même chose que le bouton précedent sur le TabPage Consultation
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnPrecedentModif_Click(object sender, System.EventArgs e)
		{
			int MaxIndex=m_DataSet.Tables["SelectTout"].Rows.Count;
			m_IndexDataSet--;
			if (m_IndexDataSet<0)
				m_IndexDataSet=MaxIndex-1;
			AfficheDataRowCourantForUpdate();
		}


		
		
		/// <summary>
		/// 
		///  Fonction Click du bouton suivant situé sur le TabPage Modification
		///  Nous faisons la même chose que le bouton suivant sur le TabPage Consultation
		///  
		/// </summary>
		private void btnSuivantModif_Click(object sender, System.EventArgs e)
		{
			int MaxIndex=m_DataSet.Tables["SelectTout"].Rows.Count;
			m_IndexDataSet++;
			if (m_IndexDataSet>MaxIndex-1)
				m_IndexDataSet=0;
			AfficheDataRowCourantForUpdate();
		}
		
		
		
		
		/// <summary>
		/// 
		/// Affiche les données courantes pour le TabPage Modification.
		/// Meme commentaire que pour la fonction qui affiche les données compte du TabPage
		/// Consultation
		/// 
		/// </summary>
		protected void AfficheDataRowCourantForUpdate()
		{
			try
			{
				DataRow dr=m_DataSet.Tables["SelectTout"].Rows[m_IndexDataSet];
				txtAnneeModification.Text=dr["annee"].ToString();
				txtGenreModification.Text=dr["genre"].ToString();
				txtDureeModification.Text=dr["duree"].ToString();
				txtTitreModification.Text=dr["titre"].ToString();
				txtActeurModification.Text=dr["acteur"].ToString();
				txtRealisateurModification.Text=dr["realisateur"].ToString();
				txtEditeurModification.Text=dr["editeur"].ToString();
				txtID.Text=dr["id"].ToString();
			}
			catch (Exception Erreur)
			{
				MessageBox.Show(Erreur.Message);
			}
		}

		
		
		
		/// <summary>
		/// 
		/// Fonction Clik du Bouton Update situé sur le TabPage Modification
		/// Permet de faire la mise à jour d'un champ
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btnUpdate_Click(object sender, System.EventArgs e)
		{
			if (txtSaisieTitre.Text!="" && txtSaisieActeur.Text!="")
			{
				command = new OleDbCommand("UPDATE Produits SET titre = '"+ txtTitreModification.Text+"', editeur = '"+ txtEditeurModification.Text+"', genre = '"+txtGenreModification.Text+"', realisateur = '"+ txtRealisateurModification.Text+"', acteur = '"+txtActeurModification.Text+"', annee = '"+txtAnneeModification.Text+"', duree = '"+txtDureeModification.Text+"' WHERE (id LIKE '"+txtID.Text+"') ", oleDbConnect);
				try
				{
					oleDbConnect.Open();
					mystatusBar.Text = oleDbConnect.State.ToString();
					rowAffected = command.ExecuteNonQuery();
				}
				catch(Exception Erreur)
				{
					MessageBox.Show(Erreur.Message);
				}
				finally
				{
					oleDbConnect.Close();
					mystatusBar.Text = oleDbConnect.State.ToString();
				}
			}
			else
			{
				MessageBox.Show("Erreur lors de l'insertion!!");
			}
		}

        
		/// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() 
        {
            Application.Run(new DvdTheque());
        }
    }
}

Conclusion :

Je ne pense pas encore le mettre à jour. Avec les études, j'ai énormement de projets à réaliser.
N'hésitez pas à le faire de vous même. ;)
Bon courage

Codes Sources

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.