public void inserB() { progressPanel1.Visible = true; try { for (int x = 0; x < dataGridView1.Rows.Count; x++) { calculConsommation(x); ClassBonus bo = new ClassBonus(); bo.Id = int.Parse(labID.Text); bo.Ref_cl = comboMat.Text; bo.Qte = Double.Parse(txtqte.Text); bo.Prix = Double.Parse(txtprix.Text); //bo.Reseaux = txtrs.Text; bo.Reseaux0 = txtrs0.Text; bo.Montantfc = Double.Parse(txtfc.Text); bo.Montantdo = Double.Parse(txtdo.Text); bo.Pourcent = Double.Parse(txtPource.Text); bo.Pourcent0 = Double.Parse(txtpource0.Text); bo.Tel = txttel.Text; bo.Tel0 = txttel0.Text; glos.InsertBonus(bo, dateEdit1.Text); initialiseChap(); progressPanel1.Visible = true; } // MessageBox.Show("Le nombre des insertions et des modifications avec succes "); glos.speakeer("FIN DE PROCESSUS"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
void AddNewClassExec() { var newClass = new ClassBonus(); CharacterManager.ClassBonuses.Add(newClass); Classes.Add(new ClassViewModel(newClass)); RaisePropertyChanged("Classes"); }
public ClassViewModel() { _classBonus = new ClassBonus(); }
public ClassViewModel(ClassBonus cl) { _classBonus = cl; }