void SelectCombo() { idInscription = dn.retourIdM(membreCombo.Text); situationLbl.Text = dn.retourLastCotisationMembre(lastLbl, fraisLbl, idInscription); if (situationLbl.Text == "Prémière Cotisation") { lastLbl.Text = InstantSemaine.GetInstance().DateDebut.ToString("dd/MM/yyyy"); dateCotise = Convert.ToDateTime(lastLbl.Text); dateCotTxt.Text = lastLbl.Text; membreCombo.Enabled = false; addBtn.Visible = true; checkBox1.Checked = true; situationLbl.Text = "Prémière Cotisation"; //situationLbl.Text = "Deuxième Cotisation"; inc = 1; } else { if (dateCotise.ToString("dd/MM/yyyy") == lastLbl.Text && situationLbl.Text == "Prémière Cotisation") { if (inc == 0) { dateCotise = Convert.ToDateTime(lastLbl.Text); dateCotTxt.Text = lastLbl.Text; membreCombo.Enabled = false; addBtn.Visible = true; checkBox1.Checked = true; situationLbl.Text = "Prémière Cotisation"; inc = 1; } else { //idInscription = dn.retourIdM(membreCombo.Text); //situationLbl.Text = dn.retourLastCotisationMembre(lastLbl, fraisLbl, idInscription); dateCotise = Convert.ToDateTime(lastLbl.Text); dateCotTxt.Text = dateCotise.AddDays(1).ToString(); membreCombo.Enabled = false; addBtn.Visible = true; situationLbl.Text = "Deuxième Cotisation"; checkBox1.Checked = true; } } else { //idInscription = dn.retourIdM(membreCombo.Text); //situationLbl.Text = dn.retourLastCotisationMembre(lastLbl, fraisLbl, idInscription); dateCotise = Convert.ToDateTime(lastLbl.Text); dateCotTxt.Text = dateCotise.AddDays(1).ToString(); membreCombo.Enabled = false; addBtn.Visible = true; checkBox1.Checked = true; } } }