Exemplo n.º 1
0
 public void Form2Model()
 {
     point.Numero      = txtNumero.Text;
     point.coordonnee  = txtCoord.Text;
     point.Description = txtDescrip.Text;
     point.Etat        = cbEtat.Text;
     point.ligne       = LigneDao.findByNumero(cbLigne.Text);
 }
Exemplo n.º 2
0
 public void Form2Model()
 {
     affecter.Numero    = txtNumero.Text;
     affecter.DateDebut = cbDateD.Value;
     affecter.DateFin   = cbDateF.Value;
     affecter.bus       = BusDao.findByNumero(cbBus.Text);
     affecter.ligne     = LigneDao.findByNumero(cbLigne.Text);
 }
Exemplo n.º 3
0
        private void dgLigne_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            for (int i = 0; i < dgLigne.RowCount; i++)
            {
                if ((bool)dgLigne.Rows[i].Selected)
                {
                    AddLigneForm alf   = new AddLigneForm();
                    Ligne        ligne = LigneDao.findByNumero(dgLigne.Rows[i].Cells[0].Value.ToString());
                    alf.Model2Form(ligne);

                    alf.ShowDialog();
                }
            }
        }
Exemplo n.º 4
0
        private void btnChance_Click(object sender, EventArgs e)
        {
            if (DroitDao.findDroit(administrateur.Numero, "Ligne", "Modifier"))
            {
                for (int i = 0; i < dgLigne.RowCount; i++)
                {
                    if ((bool)dgLigne.Rows[i].Selected)
                    {
                        AddLigneForm alf   = new AddLigneForm();
                        Ligne        ligne = LigneDao.findByNumero(dgLigne.Rows[i].Cells[0].Value.ToString());
                        alf.Model2Form(ligne);

                        alf.ShowDialog();
                    }
                }
            }
            else
            {
                MessageBox.Show("Vous n\'avez pas ce droit");
            }
        }