Problème de combobox

caela Messages postés 68 Date d'inscription mercredi 9 décembre 2009 Statut Membre Dernière intervention 19 avril 2012 - 5 janv. 2010 à 07:50
caela Messages postés 68 Date d'inscription mercredi 9 décembre 2009 Statut Membre Dernière intervention 19 avril 2012 - 11 janv. 2010 à 06:53
Salut tout le monde!
Voilà dans mon apli j'ai une base où sont stockées: la table vol, la table ville...
dans la table ville il y des champs comme ville_dép et ville_arr
Dans un de mes forms,
il y a 2 combobox: 1 pour la ville de départ et 1 autre pour la ville d'arrivée.
Au départ si j'ai mis celà
cboville_dep.DataSource= lCTDataSet.Ville;
cboville_dep.DisplayMember =lCTDataSet.Ville.code_villeColumn.ToString();
cboville_dep.ValueMember = lCTDataSet.Ville.code_villeColumn.ToString();

et de même pour cboville_arr

J'ai donc toutes les villes existantes dans mes 2 combos, le hic c'est quand par exemple
je séléctionne TNR dans cboville_dep, le cboaville_ar se met aussi automatiquement à TNR et visversa!

Qu'est ce que je dois fair please?

4 réponses

billou_13 Messages postés 860 Date d'inscription jeudi 4 mars 2004 Statut Membre Dernière intervention 19 août 2014 29
5 janv. 2010 à 15:26
Bonjour,

As-tu implémenté du code spécifique pour l'événement OnSelectedIndexChanged (ou autre événement) ?
Ce lien entre les deux combobox n'est pas normal.

Peux-tu nous donner plus d'information sur le problème ?
Par exemple, le code du designer (fichier .Designer.cs) et le code du form (.cs).

Merci,

Billou_13

--------------------------------------------------------------------
Connaître la réponse est une chose, savoir pourquoi en est une autre
---------------------
0
caela Messages postés 68 Date d'inscription mercredi 9 décembre 2009 Statut Membre Dernière intervention 19 avril 2012
11 janv. 2010 à 06:50
salut billou et dzl du retard, j'ai quelques problèmes de connexions en ce moment!
Non je n'ai implanté aucun code c'est ce qui m'étonne!voilà le code du designer:
namespace WindowsApplication1
{
partial class Form4
{
/// <summary>
/// Variable nécessaire au concepteur.
/// </summary>
private System.ComponentModel.IContainer components = null;

/// <summary>
/// Nettoyage des ressources utilisées.
/// </summary>
/// true si les ressources managées doivent être supprimées ; sinon, false.


protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

#region Code généré par le Concepteur Windows Form

/// <summary>
/// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
/// le contenu de cette méthode avec l'éditeur de code.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form4));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.ha1 = new System.Windows.Forms.MaskedTextBox();
this.ha2 = new System.Windows.Forms.MaskedTextBox();
this.ha3 = new System.Windows.Forms.MaskedTextBox();
this.hd1 = new System.Windows.Forms.MaskedTextBox();
this.hd2 = new System.Windows.Forms.MaskedTextBox();
this.hd3 = new System.Windows.Forms.MaskedTextBox();
this.txthdepart = new System.Windows.Forms.MaskedTextBox();
this.txtharrivee = new System.Windows.Forms.MaskedTextBox();
this.btnprec = new System.Windows.Forms.Button();
this.btnsuiv = new System.Windows.Forms.Button();
this.btnannuler = new System.Windows.Forms.Button();
this.lCTDataSet = new WindowsApplication1.LCTDataSet();
this.volBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.volTableAdapter = new WindowsApplication1.LCTDataSetTableAdapters.VolTableAdapter();
this.volBindingNavigator = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.volBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.date_vol = new System.Windows.Forms.DateTimePicker();
this.aVIONBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.aVIONTableAdapter = new WindowsApplication1.LCTDataSetTableAdapters.AVIONTableAdapter();
this.villeBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.villeTableAdapter = new WindowsApplication1.LCTDataSetTableAdapters.VilleTableAdapter();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fichierToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.continuerPlusTardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.quitterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.modeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.adminBaseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.aProposDeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.leLogicielToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.airMadagascarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.cvovilledep = new System.Windows.Forms.ComboBox();
this.volBindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.label10 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.comboBox5 = new System.Windows.Forms.ComboBox();
this.escalesBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.comboBox6 = new System.Windows.Forms.ComboBox();
this.comboBox7 = new System.Windows.Forms.ComboBox();
this.escalesTableAdapter = new WindowsApplication1.LCTDataSetTableAdapters.EscalesTableAdapter();
this.cboarriv = new System.Windows.Forms.ComboBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lCTDataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.volBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.volBindingNavigator)).BeginInit();
this.volBindingNavigator.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.aVIONBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.villeBindingSource)).BeginInit();
this.menuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.volBindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.escalesBindingSource)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Image = global::WindowsApplication1.Properties.Resources.avi;
this.pictureBox1.Location = new System.Drawing.Point(19, 34);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(163, 152);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(267, 53);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(177, 24);
this.label1.TabIndex = 1;
this.label1.Text = "ID_Vol_concerné:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(305, 98);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(131, 24);
this.label2.TabIndex = 2;
this.label2.Text = "Date_du_vol:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.Location = new System.Drawing.Point(282, 147);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(157, 24);
this.label3.TabIndex = 3;
this.label3.Text = "AVION associé:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(30, 252);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(127, 24);
this.label4.TabIndex = 4;
this.label4.Text = "Ville_départ:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.Location = new System.Drawing.Point(379, 252);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(144, 24);
this.label5.TabIndex = 5;
this.label5.Text = "Heure_départ:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(30, 311);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(126, 24);
this.label6.TabIndex = 6;
this.label6.Text = "Ville_arrivée";
//
// label7
//
this.label7.AutoSize = true;
this.label7.BackColor = System.Drawing.Color.Transparent;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(379, 311);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(149, 24);
this.label7.TabIndex = 7;
this.label7.Text = "Heure_arrivée:";
//
// label8
//
this.label8.AutoSize = true;
this.label8.BackColor = System.Drawing.Color.Transparent;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(30, 368);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(89, 24);
this.label8.TabIndex = 8;
this.label8.Text = "Escales:";
//
// label9
//
this.label9.AutoSize = true;
this.label9.BackColor = System.Drawing.Color.Transparent;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.Location = new System.Drawing.Point(15, 411);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(47, 16);
this.label9.TabIndex = 9;
this.label9.Text = "Ville1";
//
// label11
//
this.label11.AutoSize = true;
this.label11.BackColor = System.Drawing.Color.Transparent;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(440, 411);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(142, 16);
this.label11.TabIndex = 11;
this.label11.Text = "Heure_redécollage";
//
// label12
//
this.label12.AutoSize = true;
this.label12.BackColor = System.Drawing.Color.Transparent;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.Location = new System.Drawing.Point(15, 451);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(47, 16);
this.label12.TabIndex = 12;
this.label12.Text = "Ville2";
//
// label14
//
this.label14.AutoSize = true;
this.label14.BackColor = System.Drawing.Color.Transparent;
this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label14.Location = new System.Drawing.Point(440, 451);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(142, 16);
this.label14.TabIndex = 14;
this.label14.Text = "Heure_redécollage";
//
// label15
//
this.label15.AutoSize = true;
this.label15.BackColor = System.Drawing.Color.Transparent;
this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label15.Location = new System.Drawing.Point(15, 488);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(47, 16);
this.label15.TabIndex = 15;
this.label15.Text = "Ville3";
//
// label16
//
this.label16.AutoSize = true;
this.label16.BackColor = System.Drawing.Color.Transparent;
this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.Location = new System.Drawing.Point(189, 488);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(107, 16);
this.label16.TabIndex = 16;
this.label16.Text = "Heure_arrivée";
//
// label17
//
this.label17.AutoSize = true;
this.label17.BackColor = System.Drawing.Color.Transparent;
this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label17.Location = new System.Drawing.Point(441, 486);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(142, 16);
this.label17.TabIndex = 17;
this.label17.Text = "Heure_redécollage";
//
// ha1
//
this.ha1.Location = new System.Drawing.Point(293, 410);
this.ha1.Mask = "00:00";
this.ha1.Name = "ha1";
this.ha1.Size = new System.Drawing.Size(143, 20);
this.ha1.TabIndex = 20;
this.ha1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.ha1.ValidatingType = typeof(System.DateTime);
//
// ha2
//
this.ha2.Location = new System.Drawing.Point(293, 451);
this.ha2.Mask = "00:00";
this.ha2.Name = "ha2";
this.ha2.Size = new System.Drawing.Size(143, 20);
this.ha2.TabIndex = 21;
this.ha2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.ha2.ValidatingType = typeof(System.DateTime);
//
// ha3
//
this.ha3.Location = new System.Drawing.Point(293, 484);
this.ha3.Mask = "00:00";
this.ha3.Name = "ha3";
this.ha3.Size = new System.Drawing.Size(143, 20);
this.ha3.TabIndex = 22;
this.ha3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.ha3.ValidatingType = typeof(System.DateTime);
//
// hd1
//
this.hd1.Location = new System.Drawing.Point(581, 410);
this.hd1.Mask = "00:00";
this.hd1.Name = "hd1";
this.hd1.Size = new System.Drawing.Size(143, 20);
this.hd1.TabIndex = 23;
this.hd1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.hd1.ValidatingType = typeof(System.DateTime);
//
// hd2
//
this.hd2.Location = new System.Drawing.Point(582, 447);
this.hd2.Mask = "00:00";
this.hd2.Name = "hd2";
this.hd2.Size = new System.Drawing.Size(143, 20);
this.hd2.TabIndex = 24;
this.hd2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.hd2.ValidatingType = typeof(System.DateTime);
//
// hd3
//
this.hd3.Location = new System.Drawing.Point(584, 482);
this.hd3.Mask = "00:00";
this.hd3.Name = "hd3";
this.hd3.Size = new System.Drawing.Size(143, 20);
this.hd3.TabIndex = 25;
this.hd3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.hd3.ValidatingType = typeof(System.DateTime);
//
// txthdepart
//
this.txthdepart.Location = new System.Drawing.Point(526, 252);
this.txthdepart.Mask = "00:00";
this.txthdepart.Name = "txthdepart";
this.txthdepart.Size = new System.Drawing.Size(143, 20);
this.txthdepart.TabIndex = 26;
this.txthdepart.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txthdepart.ValidatingType = typeof(System.DateTime);
//
// txtharrivee
//
this.txtharrivee.Location = new System.Drawing.Point(527, 311);
this.txtharrivee.Mask = "00:00";
this.txtharrivee.Name = "txtharrivee";
this.txtharrivee.Size = new System.Drawing.Size(143, 20);
this.txtharrivee.TabIndex = 27;
this.txtharrivee.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txtharrivee.ValidatingType = typeof(System.DateTime);
//
// btnprec
//
this.btnprec.Location = new System.Drawing.Point(98, 530);
this.btnprec.Name = "btnprec";
this.btnprec.Size = new System.Drawing.Size(126, 29);
this.btnprec.TabIndex = 28;
this.btnprec.Text = "Précédent";
this.btnprec.UseVisualStyleBackColor = true;
this.btnprec.Click += new System.EventHandler(this.btnprec_Click);
//
// btnsuiv
//
this.btnsuiv.Location = new System.Drawing.Point(306, 530);
this.btnsuiv.Name = "btnsuiv";
this.btnsuiv.Size = new System.Drawing.Size(126, 29);
this.btnsuiv.TabIndex = 29;
this.btnsuiv.Text = "Suivant";
this.btnsuiv.UseVisualStyleBackColor = true;
this.btnsuiv.Click += new System.EventHandler(this.btnsuiv_Click);
//
// btnannuler
//
this.btnannuler.Location = new System.Drawing.Point(509, 530);
this.btnannuler.Name = "btnannuler";
this.btnannuler.Size = new System.Drawing.Size(126, 29);
this.btnannuler.TabIndex = 30;
this.btnannuler.Text = "Annuler";
this.btnannuler.UseVisualStyleBackColor = true;
//
// lCTDataSet
//
this.lCTDataSet.DataSetName = "LCTDataSet";
this.lCTDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// volBindingSource
//
this.volBindingSource.DataMember = "Vol";
this.volBindingSource.DataSource = this.lCTDataSet;
//
// volTableAdapter
//
this.volTableAdapter.ClearBeforeFill = true;
//
// volBindingNavigator
//
this.volBindingNavigator.AddNewItem = this.bindingNavigatorAddNewItem;
this.volBindingNavigator.BindingSource = this.volBindingSource;
this.volBindingNavigator.CountItem = this.bindingNavigatorCountItem;
this.volBindingNavigator.DeleteItem = this.bindingNavigatorDeleteItem;
this.volBindingNavigator.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem,
this.volBindingNavigatorSaveItem});
this.volBindingNavigator.Location = new System.Drawing.Point(0, 0);
this.volBindingNavigator.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.volBindingNavigator.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.volBindingNavigator.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.volBindingNavigator.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.volBindingNavigator.Name = "volBindingNavigator";
this.volBindingNavigator.PositionItem = this.bindingNavigatorPositionItem;
this.volBindingNavigator.Size = new System.Drawing.Size(747, 25);
this.volBindingNavigator.TabIndex = 31;
this.volBindingNavigator.Text = "bindingNavigator1";
this.volBindingNavigator.Visible = false;
//
// bindingNavigatorAddNewItem
//
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorAddNewItem.Text = "Ajouter nouveau";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(38, 22);
this.bindingNavigatorCountItem.Text = "de {0}";
this.bindingNavigatorCountItem.ToolTipText = "Nombre total d\'éléments";
//
// bindingNavigatorDeleteItem
//
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorDeleteItem.Text = "Supprimer";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveFirstItem.Text = "Placer en premier";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMovePreviousItem.Text = "Déplacer vers le haut";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "Position";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 21);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "Position actuelle";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveNextItem.Text = "Déplacer vers le bas";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveLastItem.Text = "Placer en dernier";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
//
// volBindingNavigatorSaveItem
//
this.volBindingNavigatorSaveItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.volBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("volBindingNavigatorSaveItem.Image")));
this.volBindingNavigatorSaveItem.Name = "volBindingNavigatorSaveItem";
this.volBindingNavigatorSaveItem.Size = new System.Drawing.Size(23, 22);
this.volBindingNavigatorSaveItem.Text = "Enregistrer les données";
this.volBindingNavigatorSaveItem.Click += new System.EventHandler(this.volBindingNavigatorSaveItem_Click);
//
// date_vol
//
this.date_vol.Location = new System.Drawing.Point(434, 99);
this.date_vol.Name = "date_vol";
this.date_vol.Size = new System.Drawing.Size(200, 20);
this.date_vol.TabIndex = 33;
//
// aVIONBindingSource
//
this.aVIONBindingSource.DataMember = "AVION";
this.aVIONBindingSource.DataSource = this.lCTDataSet;
//
// aVIONTableAdapter
//
this.aVIONTableAdapter.ClearBeforeFill = true;
//
// villeBindingSource
//
this.villeBindingSource.DataMember = "Ville";
this.villeBindingSource.DataSource = this.lCTDataSet;
//
// villeTableAdapter
//
this.villeTableAdapter.ClearBeforeFill = true;
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fichierToolStripMenuItem,
this.modeToolStripMenuItem,
this.toolStripMenuItem1});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(747, 24);
this.menuStrip1.TabIndex = 40;
this.menuStrip1.Text = "menuStrip1";
//
// fichierToolStripMenuItem
//
this.fichierToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.continuerPlusTardToolStripMenuItem,
this.quitterToolStripMenuItem});
this.fichierToolStripMenuItem.Name = "fichierToolStripMenuItem";
this.fichierToolStripMenuItem.Size = new System.Drawing.Size(50, 20);
this.fichierToolStripMenuItem.Text = "Fichier";
//
// continuerPlusTardToolStripMenuItem
//
this.continuerPlusTardToolStripMenuItem.Name = "continuerPlusTardToolStripMenuItem";
this.continuerPlusTardToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
this.continuerPlusTardToolStripMenuItem.Text = "Continuer plus tard";
//
// quitterToolStripMenuItem
//
this.quitterToolStripMenuItem.Name = "quitterToolStripMenuItem";
this.quitterToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
this.quitterToolStripMenuItem.Text = "Quitter";
this.quitterToolStripMenuItem.Click += new System.EventHandler(this.quitterToolStripMenuItem_Click);
//
// modeToolStripMenuItem
//
this.modeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.adminBaseToolStripMenuItem});
this.modeToolStripMenuItem.Name = "modeToolStripMenuItem";
this.modeToolStripMenuItem.Size = new System.Drawing.Size(45, 20);
this.modeToolStripMenuItem.Text = "Mode";
//
// adminBaseToolStripMenuItem
//
this.adminBaseToolStripMenuItem.Name = "adminBaseToolStripMenuItem";
this.adminBaseToolStripMenuItem.Size = new System.Drawing.Size(143, 22);
this.adminBaseToolStripMenuItem.Text = "Admin_Base";
this.adminBaseToolStripMenuItem.Click += new System.EventHandler(this.adminBaseToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.aProposDeToolStripMenuItem,
this.aideToolStripMenuItem});
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(24, 20);
this.toolStripMenuItem1.Text = "?";
//
// aProposDeToolStripMenuItem
//
this.aProposDeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.leLogicielToolStripMenuItem,
this.airMadagascarToolStripMenuItem});
this.aProposDeToolStripMenuItem.Name = "aProposDeToolStripMenuItem";
this.aProposDeToolStripMenuItem.Size = new System.Drawing.Size(143, 22);
this.aProposDeToolStripMenuItem.Text = "A propos de";
//
// leLogicielToolStripMenuItem
//
this.leLogicielToolStripMenuItem.Name = "leLogicielToolStripMenuItem";
this.leLogicielToolStripMenuItem.Size = new System.Drawing.Size(159, 22);
this.leLogicielToolStripMenuItem.Text = "Le logiciel";
this.leLogicielToolStripMenuItem.Click += new System.EventHandler(this.leLogicielToolStripMenuItem_Click);
//
// airMadagascarToolStripMenuItem
//
this.airMadagascarToolStripMenuItem.Name = "airMadagascarToolStripMenuItem";
this.airMadagascarToolStripMenuItem.Size = new System.Drawing.Size(159, 22);
this.airMadagascarToolStripMenuItem.Text = "Air Madagascar";
//
// aideToolStripMenuItem
//
this.aideToolStripMenuItem.Name = "aideToolStripMenuItem";
this.aideToolStripMenuItem.Size = new System.Drawing.Size(143, 22);
this.aideToolStripMenuItem.Text = "Aide";
//
// comboBox1
//
this.comboBox1.DataSource = this.volBindingSource;
this.comboBox1.DisplayMember = "id_vol";
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(446, 53);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(135, 21);
this.comboBox1.TabIndex = 41;
this.comboBox1.ValueMember = "id_vol";
//
// comboBox2
//
this.comboBox2.DataSource = this.aVIONBindingSource;
this.comboBox2.DisplayMember = "Matricule_avion";
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(444, 142);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(136, 21);
this.comboBox2.TabIndex = 42;
this.comboBox2.ValueMember = "Matricule_avion";
//
// cvovilledep
//
this.cvovilledep.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.volBindingSource, "ville_départ", true));
this.cvovilledep.FormattingEnabled = true;
this.cvovilledep.Location = new System.Drawing.Point(161, 251);
this.cvovilledep.Name = "cvovilledep";
this.cvovilledep.Size = new System.Drawing.Size(118, 21);
this.cvovilledep.TabIndex = 43;
this.cvovilledep.SelectedIndexChanged += new System.EventHandler(this.cvovilledep_SelectedIndexChanged);
//
// volBindingSource1
//
this.volBindingSource1.DataMember = "Vol";
this.volBindingSource1.DataSource = this.lCTDataSet;
//
// label10
//
this.label10.AutoSize = true;
this.label10.BackColor = System.Drawing.Color.Transparent;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.Location = new System.Drawing.Point(187, 411);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(107, 16);
this.label10.TabIndex = 10;
this.label10.Text = "Heure_arrivée";
//
// label13
//
this.label13.AutoSize = true;
this.label13.BackColor = System.Drawing.Color.Transparent;
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.Location = new System.Drawing.Point(187, 451);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(107, 16);
this.label13.TabIndex = 13;
this.label13.Text = "Heure_arrivée";
//
// comboBox5
//
this.comboBox5.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.villeBindingSource, "Code_ville", true));
this.comboBox5.DataSource = this.escalesBindingSource;
this.comboBox5.DisplayMember = "ville";
this.comboBox5.FormattingEnabled = true;
this.comboBox5.Location = new System.Drawing.Point(60, 409);
this.comboBox5.Name = "comboBox5";
this.comboBox5.Size = new System.Drawing.Size(118, 21);
this.comboBox5.TabIndex = 45;
this.comboBox5.ValueMember = "ville";
//
// escalesBindingSource
//
this.escalesBindingSource.DataMember = "Escales";
this.escalesBindingSource.DataSource = this.lCTDataSet;
//
// comboBox6
//
this.comboBox6.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.villeBindingSource, "Code_ville", true));
this.comboBox6.DataSource = this.escalesBindingSource;
this.comboBox6.DisplayMember = "ville";
this.comboBox6.FormattingEnabled = true;
this.comboBox6.Location = new System.Drawing.Point(62, 445);
this.comboBox6.Name = "comboBox6";
this.comboBox6.Size = new System.Drawing.Size(118, 21);
this.comboBox6.TabIndex = 46;
this.comboBox6.ValueMember = "ville";
//
// comboBox7
//
this.comboBox7.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.villeBindingSource, "Code_ville", true));
this.comboBox7.DataSource = this.escalesBindingSource;
this.comboBox7.DisplayMember = "ville";
this.comboBox7.FormattingEnabled = true;
this.comboBox7.Location = new System.Drawing.Point(61, 480);
this.comboBox7.Name = "comboBox7";
this.comboBox7.Size = new System.Drawing.Size(118, 21);
this.comboBox7.TabIndex = 47;
this.comboBox7.ValueMember = "ville";
//
// escalesTableAdapter
//
this.escalesTableAdapter.ClearBeforeFill = true;
//
// cboarriv
//
this.cboarriv.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.volBindingSource1, "ville_arrivée", true));
this.cboarriv.FormattingEnabled = true;
this.cboarriv.Location = new System.Drawing.Point(161, 308);
this.cboarriv.Name = "cboarriv";
this.cboarriv.Size = new System.Drawing.Size(116, 21);
this.cboarriv.TabIndex = 48;
//
// Form4
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::WindowsApplication1.Properties.Resources.fond_vert2_blanc;
this.ClientSize = new System.Drawing.Size(747, 579);
this.Controls.Add(this.cboarriv);
this.Controls.Add(this.comboBox7);
this.Controls.Add(this.comboBox6);
this.Controls.Add(this.comboBox5);
this.Controls.Add(this.cvovilledep);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.date_vol);
this.Controls.Add(this.volBindingNavigator);
this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.btnannuler);
this.Controls.Add(this.btnsuiv);
this.Controls.Add(this.btnprec);
this.Controls.Add(this.txtharrivee);
this.Controls.Add(this.txthdepart);
this.Controls.Add(this.hd3);
this.Controls.Add(this.hd2);
this.Controls.Add(this.hd1);
this.Controls.Add(this.ha3);
this.Controls.Add(this.ha2);
this.Controls.Add(this.ha1);
this.Controls.Add(this.label17);
this.Controls.Add(this.label16);
this.Controls.Add(this.label15);
this.Controls.Add(this.label14);
this.Controls.Add(this.label13);
this.Controls.Add(this.label12);
this.Controls.Add(this.label11);
this.Controls.Add(this.label10);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.MainMenuStrip = this.menuStrip1;
this.Name = "Form4";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Le Vol";
this.Load += new System.EventHandler(this.Form4_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lCTDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.volBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.volBindingNavigator)).EndInit();
this.volBindingNavigator.ResumeLayout(false);
this.volBindingNavigator.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.aVIONBindingSource)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.villeBindingSource)).EndInit();
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.volBindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.escalesBindingSource)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

}

#endregion

private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Button btnprec;
private System.Windows.Forms.Button btnsuiv;
private System.Windows.Forms.Button btnannuler;
private LCTDataSet lCTDataSet;
private System.Windows.Forms.BindingSource volBindingSource;
private WindowsApplication1.LCTDataSetTableAdapters.VolTableAdapter volTableAdapter;
private System.Windows.Forms.BindingNavigator volBindingNavigator;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton volBindingNavigatorSaveItem;
private System.Windows.Forms.BindingSource aVIONBindingSource;
private WindowsApplication1.LCTDataSetTableAdapters.AVIONTableAdapter aVIONTableAdapter;
private System.Windows.Forms.BindingSource villeBindingSource;
private WindowsApplication1.LCTDataSetTableAdapters.VilleTableAdapter villeTableAdapter;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem fichierToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem continuerPlusTardToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem quitterToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem modeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem adminBaseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem aProposDeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem leLogicielToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem airMadagascarToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem aideToolStripMenuItem;
public System.Windows.Forms.MaskedTextBox ha1;
public System.Windows.Forms.MaskedTextBox ha2;
public System.Windows.Forms.MaskedTextBox ha3;
public System.Windows.Forms.MaskedTextBox hd1;
public System.Windows.Forms.MaskedTextBox hd2;
public System.Windows.Forms.MaskedTextBox hd3;
public System.Windows.Forms.MaskedTextBox txthdepart;
public System.Windows.Forms.MaskedTextBox txtharrivee;
public System.Windows.Forms.DateTimePicker date_vol;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.ComboBox comboBox5;
private System.Windows.Forms.ComboBox comboBox6;
private System.Windows.Forms.ComboBox comboBox7;
private System.Windows.Forms.BindingSource volBindingSource1;
private System.Windows.Forms.BindingSource escalesBindingSource;
private WindowsApplication1.LCTDataSetTableAdapters.EscalesTableAdapter escalesTableAdapter;
public System.Windows.Forms.ComboBox cvovilledep;
public System.Windows.Forms.ComboBox cboarriv;
}
}
0
caela Messages postés 68 Date d'inscription mercredi 9 décembre 2009 Statut Membre Dernière intervention 19 avril 2012
11 janv. 2010 à 06:52
Et le code du Form tout entier:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
public partial class Form4 : Form
{


public Form4()
{
InitializeComponent();



}
//mreference n form1 teto
public Form2 referenceForm2 = null;

private void Form4_Load(object sender, EventArgs e)
{
// TODO : cette ligne de code charge les données dans la table 'lCTDataSet.Escales'. Vous pouvez la déplacer ou la supprimer selon vos besoins.
this.escalesTableAdapter.Fill(this.lCTDataSet.Escales);
// TODO : cette ligne de code charge les données dans la table 'lCTDataSet.Ville'. Vous pouvez la déplacer ou la supprimer selon vos besoins.
this.villeTableAdapter.Fill(this.lCTDataSet.Ville);
// TODO : cette ligne de code charge les données dans la table 'lCTDataSet.AVION'. Vous pouvez la déplacer ou la supprimer selon vos besoins.
this.aVIONTableAdapter.Fill(this.lCTDataSet.AVION);
// TODO : cette ligne de code charge les données dans la table 'lCTDataSet.Vol'. Vous pouvez la déplacer ou la supprimer selon vos besoins.
this.volTableAdapter.Fill(this.lCTDataSet.Vol);
cvovilledep.DataSource = lCTDataSet.Ville;
cvovilledep.DisplayMember = lCTDataSet.Ville.Code_villeColumn.ToString();
cvovilledep.ValueMember = lCTDataSet.Ville.Code_villeColumn.ToString();
cboarriv.DataSource = lCTDataSet.Ville;
cboarriv.DisplayMember = lCTDataSet.Ville.Code_villeColumn.ToString();
cboarriv.ValueMember = lCTDataSet.Ville.Code_villeColumn.ToString();

}

private void btnsuiv_Click(object sender, EventArgs e)
{
Form5 form5 = new Form5(referenceForm2, this);
form5.referenceForm4 = this;
form5.Show();
this.Hide();
}

private void volBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.volBindingSource.EndEdit();
this.volTableAdapter.Update(this.lCTDataSet.Vol);

}

private void btnprec_Click(object sender, EventArgs e)
{
referenceForm2.Show();
this.Hide();

}

private void quitterToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}

private void adminBaseToolStripMenuItem_Click(object sender, EventArgs e)
{
DialogResult r = MessageBox.Show("Si vous vous Loguez en mode Admin_Base maintenant,Vous perdez toutes vos données non enregistrées!\n Continuer?", "Attention", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);
if (r == DialogResult.OK)
{
Form6 form6 = new Form6();
form6.Show();
this.Hide();
}
}

private void leLogicielToolStripMenuItem_Click(object sender, EventArgs e)
{
Form3 form3 = new Form3();
form3.Show();
}

private void cvovilledep_SelectedIndexChanged(object sender, EventArgs e)
{
cboarriv.Refresh();
}
}
}
0
caela Messages postés 68 Date d'inscription mercredi 9 décembre 2009 Statut Membre Dernière intervention 19 avril 2012
11 janv. 2010 à 06:53
Et encore dzl pour le retard et merci de votre aide!
0
Rejoignez-nous