Commit 6a7b8d48 authored by Victor Larmet's avatar Victor Larmet
Browse files

debug

parent 442002d9
......@@ -72,6 +72,7 @@ namespace _20School
this.label9 = new System.Windows.Forms.Label();
this.cbEffort5 = new System.Windows.Forms.ComboBox();
this.cbComp5 = new System.Windows.Forms.ComboBox();
this.btnEnvoyer = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbEleve2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pbEleve3)).BeginInit();
......@@ -563,6 +564,16 @@ namespace _20School
this.cbComp5.TabIndex = 8;
this.cbComp5.Tag = "5";
//
// btnEnvoyer
//
this.btnEnvoyer.Location = new System.Drawing.Point(1259, 765);
this.btnEnvoyer.Name = "btnEnvoyer";
this.btnEnvoyer.Size = new System.Drawing.Size(157, 65);
this.btnEnvoyer.TabIndex = 12;
this.btnEnvoyer.Text = "Envoyer les bulletins";
this.btnEnvoyer.UseVisualStyleBackColor = true;
this.btnEnvoyer.Click += new System.EventHandler(this.btnEnvoyer_Click);
//
// fmRecap
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
......@@ -571,6 +582,7 @@ namespace _20School
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1495, 842);
this.Controls.Add(this.btnEnvoyer);
this.Controls.Add(this.gpbEleve5);
this.Controls.Add(this.gpbEleve4);
this.Controls.Add(this.gpbEleve3);
......@@ -652,5 +664,6 @@ namespace _20School
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Button btnEnvoyer;
}
}
\ No newline at end of file
......@@ -303,5 +303,24 @@ namespace _20School
connexion.Close(); //Fermeture de la connextion à la BDD (Mode connécté)
}
}
private void btnEnvoyer_Click(object sender, EventArgs e)
{
bool test = true;
foreach (ComboBox cb in this.Controls.OfType<ComboBox>())
{
if(string.IsNullOrEmpty(cb.Text)) {
test = false;
}
}
if(test)
{
//Fermeture du formulaire actuelle et ouverture d'un nouveau
this.Hide();
Menu frmMenu = new Menu();
frmMenu.Closed += (s, args) => this.Close();
frmMenu.Show();
}
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment