public ViewModelEtudes()
        {
            InitializeComponent();

            _daEtude             = new DAEtude();
            _etudes              = _daEtude.SelectEtudes();
            dgEtudes.ItemsSource = _etudes;
        }
Beispiel #2
0
        //ctor
        public DOEtude()
        {
            _daEtude = new DAEtude();

            idEtude   = -1;
            titre     = null;
            dateStart = null;
            dateEnd   = null;
        }
Beispiel #3
0
        public DOEtude(int _idEtude, string _titre, string _dateStart, string _dateEnd)
        {
            _daEtude = new DAEtude();

            idEtude   = _idEtude;
            titre     = _titre;
            dateStart = _dateStart;
            dateEnd   = _dateEnd;
        }
        public ViewModelEditEtude(int id)
        {
            InitializeComponent();

            _daEtude  = new DAEtude();
            _curEtude = new DOEtude();
            _daEtude.SelectEtudeById(id, _curEtude);

            etudeId.Text    = _curEtude.idEtude.ToString();
            etudeTitre.Text = _curEtude.titre;
            etudeId.Text    = _curEtude.dateStart;
        }