1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
protected void Button1_Click(object sender, EventArgs e)
{
TheAnswer.Text = string.Empty;
//-------------- 1er clic la session ["caca"]n'existe pas
if (Session["caca"] == null)
{
string ChoixButton = Btchoix.SelectedValue;
int IDQchoisi;
string Qchoisi;
int RepStatChoisi;
Begin.Trooper(out IDQchoisi, out Qchoisi, out RepStatChoisi);
string ValEnvoi = IDQchoisi + "=" + ChoixButton;
List<Jonctab> LaNtable;
Transfojonc.Table(out LaNtable);
List<int> LeCount;
List<Jonctab> NouvTable;
ModificateurTable.Lanceur(ValEnvoi, LaNtable, out NouvTable, out LeCount);
int SortiID;
string SortiQ;
int RepStatistiqueChoisi;
Secondstep.Snooper(ValEnvoi, RepStatChoisi, NouvTable, out SortiID, out SortiQ, out RepStatistiqueChoisi); // recupere, clé, Q,et Table
List<int> AncienneQuesTperdu = null;
int Quesperdutest = 1000;
List<int> Quesperdu;
Maladies.Perdues(ValEnvoi, LaNtable, AncienneQuesTperdu, out Quesperdu);
if (Quesperdu == null)
{
Quesperdutest = 0;
}
else
{
Quesperdutest = Quesperdu.Count();
}
TheAnswer.Text = SortiQ;
string info;
Infobulle.Bulle(SortiID, out info);
TheAnswer.ToolTip = info;
int Plainte;
Qlocalisation.Localise(SortiID, out Plainte);
if (Plainte == 1)
{
QImage.Visible = true;
Qtexte.Visible = false;
}
else
{
QImage.Visible = false;
Qtexte.Visible = true;
}
Session["velevete"] = SortiQ;
Session["IDQuestion"] = SortiID;
Session["LaTable"] = NouvTable;
Session["Repstat"] = RepStatistiqueChoisi;
Session["QuestPerdu"] = Quesperdu;
LeCompte.Text = "On sort de la 1ere itération";
int Pouraffich = Quesperdutest;
LeCompte2.Text = Convert.ToString(Pouraffich);
var selection_click = NouvTable;
GridView1.DataSource = selection_click;
GridView1.DataBind();
} |
Partager