コード例 #1
0
        void BtnChoisirClientClick(object sender, EventArgs e)
        {
            Devis monDevis = new Devis(Guid.NewGuid(), 0, DateTime.Now, BDDExterne.GetClient(comboBoxListeClient.SelectedValue.ToString()), BDDExterne.GetSalarie("b807c385-2737-413a-b9b2-c076638275bd"));

            BDDExterne.AjouterDevis(monDevis);
            ActionButtonGeneric.GoNextForm(this, new ListeModuleParDevis(monDevis.devId.ToString()));
        }
コード例 #2
0
 private void BtnModifier_Click(object sender, EventArgs e)
 {
     if (BDDExterne.GetAllModules().Count <= 0)
     {
         MessageBox.Show("Il n'y a pas de modules !");
     }
     else
     {
         ComboxItem item = (ComboxItem)CbxModuleModifier.SelectedItem;
         Module     modu = BDDExterne.GetAllModules().Find(x => x.modId == (Guid)item.Value);
         ActionButtonGeneric.GoNextForm(this, new ModificationModule(modu));
     }
 }
コード例 #3
0
 private void BtnModifier_Click(object sender, EventArgs e)
 {
     if (listBoxClient.SelectedValue == null)
     {
         MessageBox.Show("Veuillez choisir un Client");
         return;
     }
     if (listBoxDevis.SelectedValue == null)
     {
         MessageBox.Show("Veuillez choisir un devis");
         return;
     }
     ActionButtonGeneric.GoNextForm(this, new ListeModuleParDevis(listBoxDevis.SelectedValue.ToString()));
 }