private void btnAffIncident_Click(object sender, EventArgs e) { labelIncid.Text = BD.consulteIncid(TBposte2.Text); }
private void btnDeclarer_Click(object sender, EventArgs e) { incident unIncid = new incident(TBprobleme.Text, Convert.ToInt32(numUrgence.Value), Convert.ToString(DateTime.Now), Convert.ToInt32(numEtat.Value), "Reçu", Convert.ToInt32(TBposte.Text), 0, id); BD.ajouteIncid(unIncid); }