private void btnNon_Click(object sender, EventArgs e) { this.Hide(); sessionLangage f3 = new sessionLangage(); f3.startingDay = startingDay; f3.startingTime = startingTime; f3.f4duration = duration; f3.nomLangage = nomLangage; f3.idLangage = idLangage; DEV f2 = new DEV(); f2.isOpenedWindow = true; f2.Show(); }
private void btnOui_Click(object sender, EventArgs e) { Close(); sessionLangage f3 = new sessionLangage(); f3.Close(); f3.startingDay = startingDay; f3.startingTime = startingTime; f3.f4duration = duration; f3.nomLangage = nomLangage; f3.idLangage = idLangage; f3.btnStop_Click(sender, e); Close(); f3.Close(); Close(); }
private void btnGo_Click(object sender, EventArgs e) { if (lstBxLangage.SelectedItem != null) { getIdLangage(lstBxLangage.SelectedItem.ToString()); sessionLangage f1 = new sessionLangage(); f1.nomLangage = lstBxLangage.SelectedItem.ToString(); Hide(); f1.Show(); DateTime Now = DateTime.Now; string[] now = Now.ToString().Split(' '); f1.startingDay = now[0]; f1.startingTime = now[1]; f1.idLangage = idLangage; } else { MessageBox.Show("Merci de saisir un langage pour commencer la session !"); } }