private void ModifierMateriel_Load(object sender, EventArgs e)
        {
            txtRef.Text        = getReference();
            txtDesc.Text       = getDescription();
            txtPrix.Text       = convertFloat(getPrix());
            txtQuantite.Text   = convertFloat(getQuantite());
            txtLien.Text       = getLien();
            listFab.Text       = getFab();
            listNomCasier.Text = getCasier();
            CassierDA      cassierDA = new CassierDA();
            List <Cassier> list1     = cassierDA.getAllCassier();

            foreach (Cassier c in list1)
            {
                listNomCasier.Items.Add(c.getNom());
            }
            txtNomCasier.Text = getCasier();

            FabricantDA      fabricantDA = new FabricantDA();
            List <Fabricant> list2       = fabricantDA.getAllFabricant();

            foreach (Fabricant f in list2)
            {
                listFab.Items.Add(f.getNom());
            }
            txtFab.Text          = getFab();
            txtFab.Enabled       = false;
            txtNomCasier.Enabled = false;
        }
Example #2
0
        private void AjoutMateriel_Load(object sender, EventArgs e)
        {
            CassierDA      cassierDA = new CassierDA();
            List <Cassier> list1     = cassierDA.getAllCassier();

            foreach (Cassier c in list1)
            {
                listNomCasier.Items.Add(c.getNom());
            }

            FabricantDA      fabricantDA = new FabricantDA();
            List <Fabricant> list2       = fabricantDA.getAllFabricant();

            foreach (Fabricant f in list2)
            {
                listFab.Items.Add(f.getNom());
            }
        }
 public AjouterCasier()
 {
     InitializeComponent();
     cassierDA = new CassierDA();
 }
Example #4
0
 public index()
 {
     InitializeComponent();
     blocDA    = new BlocDA();
     cassierDA = new CassierDA();
 }