private void bunifuFlatButton7_Click(object sender, EventArgs e) { rdn.Visible = false; foreach (MaterialSkin.Controls.MaterialRadioButton b in Matieres_b) { this.panel1.Controls.Remove(b); } if (dgv_eleves.SelectedRows.Count == 1) { chart C = new chart(chart_e, this.id); //chart_e.DataManipulator.Statistics.Median. Eleve eleve = el[dgv_eleves.SelectedRows[0].Index]; foreach (Matiere m in this.matieres) { C.addChartEvolutionSeries(eleve, m); } Matieres_bs = C.series_bs; int y = chart_e.Location.Y; foreach (MaterialSkin.Controls.MaterialCheckBox b in Matieres_bs) { b.Location = new Point(chart_e.Location.X + chart_e.Width + 10, y); b.Parent = panel1; y += 25; b.Show(); } } }
private void bunifuFlatButton10_Click(object sender, EventArgs e) { rdn.Visible = false; MaterialSkin.Controls.MaterialRadioButton bb = new MaterialSkin.Controls.MaterialRadioButton(); foreach (MaterialSkin.Controls.MaterialCheckBox b in Matieres_bs) { this.panel1.Controls.Remove(b); } if (dgv_eleves.SelectedRows.Count == 1) { chart C = new chart(chart_e, this.id); Eleve eleve = el[dgv_eleves.SelectedRows[0].Index]; foreach (Matiere m in this.matieres) { C.addChartEvolutionUnites(eleve, m); } Matieres_b = C.series_bb; int y = chart_e.Location.Y; foreach (MaterialSkin.Controls.MaterialRadioButton l in Matieres_b) { l.Location = new Point(chart_e.Location.X + chart_e.Width + 10, y); l.Parent = panel1; y += 25; l.Show(); l.Checked = true; } } }
private void bunifuCircleProgressbar1_Click(object sender, EventArgs e) { panel2.Visible = false; chart ch = new chart(chart1, HomePreview.id); ch.addChartBy(nom: HomePreview.nomgr, id_matiere: idm); }
private void clickcc(object sender, EventArgs e) { ch = new chart(chart1, HomePreview.id); Bunifu.Framework.UI.BunifuTileButton the_cc = ((Bunifu.Framework.UI.BunifuTileButton)sender); ch.addChartBy(nom: semestre[cl_buttons.IndexOf(the_cc)] + " " + the_cc.LabelText, semestre: semestre[cl_buttons.IndexOf(the_cc)], titre: the_cc.LabelText, id_matiere: idm); render_details(); }
private void dgv_eleves_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1) { if (e.ColumnIndex == 0 || e.ColumnIndex == 1) { rdnView(); } if (e.ColumnIndex == 2) { string s = "1"; if (radioButton2.Checked) { s = "2"; } string id_E = dgv_eleves.SelectedRows[0].Cells[3].Value.ToString(); string nomm = dgv_eleves.SelectedRows[0].Cells[0].Value.ToString(); string prenomm = dgv_eleves.SelectedRows[0].Cells[1].Value.ToString(); if (DBConnect.Get("select semestre from examiner where id_etudiant=" + id_E + " and semestre=" + s) == "") { MessageBox.Show("semestre introuvable"); return; } using (FolderBrowserDialog dlg = new FolderBrowserDialog()) { dlg.Description = "Select a folder"; if (dlg.ShowDialog() == DialogResult.OK) { bulletin bul = new bulletin(dlg.SelectedPath + "\\" + "bulletin S" + s + " " + nomm + " " + prenomm + ".pdf", id_E, s, HomePreview.idann, "amana"); MessageBox.Show("Bulletin bien generee"); } } return; } foreach (MaterialSkin.Controls.MaterialCheckBox b in Matieres_bs) { this.panel1.Controls.Remove(b); } foreach (MaterialSkin.Controls.MaterialRadioButton b in Matieres_b) { this.panel1.Controls.Remove(b); } chart c = new chart(chart_e, this.id); c.addChartByEtudiant(el[e.RowIndex].id); double moy = 0; foreach (var p in c.c.Series[0].Points) { moy += p.YValues[0]; } moy /= c.c.Series[0].Points.Count(); moy = Math.Round(moy, 2); moy_g.Text = moy.ToString(); } }
public Subjects(string idm, string nomm) { InitializeComponent(); semestre = new string[10] { "1", "1", "1", "1", "1", "2", "2", "2", "2", "2" }; cl_buttons.Add(Button1); cl_buttons.Add(Button2); cl_buttons.Add(Button3); cl_buttons.Add(Button6); cl_buttons.Add(Button7); cl_buttons.Add(Button8); cl_buttons.Add(Button4); cl_buttons.Add(Button5); cl_buttons.Add(Button9); cl_buttons.Add(Button10); foreach (Bunifu.Framework.UI.BunifuTileButton b in cl_buttons) { b.Click += new System.EventHandler(this.clickcc); } string id = HomePreview.id; string nomgr = HomePreview.nomgr; this.idm = idm; this.nomm = nomm; chart ch = new chart(chart1, HomePreview.id); ch.addChartBy(nom: nomgr); Login.read = DBConnect.Gets("select max(calcule.n), min(calcule.n) , avg(calcule.n) from (select avg(note) as n from examiner where id_matiere=" + this.idm + " group by id_etudiant) as calcule"); if (Login.read.Read()) { max.Text = Login.read[0].ToString(); min.Text = Login.read[1].ToString(); moy = Login.read[2].ToString(); } bunifuCircleProgressbar1.Value = (int)Math.Ceiling(float.Parse(moy)); Login.read = DBConnect.Gets("select nom , prenom from groupe_matiere_enseignant , enseignant where id_enseignant=id and id_groupe=" + id + " and id_matiere=" + this.idm); while (Login.read.Read()) { label2.Text = Login.read["nom"].ToString() + " " + Login.read["prenom"].ToString(); } Login.read.Close(); moyenne.Text = Math.Round(double.Parse(moy), 2).ToString(); if (double.Parse(moyenne.Text) < 5) { bunifuCircleProgressbar1.ProgressColor = Color.Red; } else { bunifuCircleProgressbar1.ProgressColor = Color.Green; } Login.read = DBConnect.Gets("select distinct titre from examiner where id_groupe = " + id + " and id_matiere=" + this.idm + " order by semestre,titre"); int i = 0; while (Login.read.Read()) { cl_buttons[i++].Visible = true; } Login.read.Close(); Infobox.Text = this.nomm; }
private void bunifuFlatButton8_Click(object sender, EventArgs e) { foreach (MaterialSkin.Controls.MaterialCheckBox b in Matieres_bs) { this.panel1.Controls.Remove(b); } if (dgv_eleves.SelectedRows.Count == 1) { chart C = new chart(chart_e, this.id); //chart_e.DataManipulator.Statistics.Median. Eleve eleve = el[dgv_eleves.SelectedRows[0].Index]; C.addChartEvolutionAnneeEleve(eleve); } }
public void homechart() { if (dgv_eleves.SelectedCells[0].RowIndex != -1) { foreach (MaterialSkin.Controls.MaterialCheckBox b in Matieres_bs) { this.panel1.Controls.Remove(b); } chart c = new chart(chart_e, this.id); c.addChartByEtudiant(el[dgv_eleves.SelectedRows[0].Index].id); double moy = 0; foreach (var p in c.c.Series[0].Points) { moy += p.YValues[0]; } moy /= c.c.Series[0].Points.Count(); moy = Math.Round(moy, 2); moy_g.Text = moy.ToString(); } }
public Evolutionperyear() { InitializeComponent(); ch = new chart(chart1, ""); ch.evoann(); }
private void bunifuCircleProgressbar1_Click(object sender, EventArgs e) { chart ch = new chart(chart1, HomePreview.id); ch.addChartBy(nom: HomePreview.nomgr); }