Exemplo n.º 1
0
        /// <summary>
        /// Afiseaza probele in combobox
        /// </summary>
        public void fillProbeComboBox()
        {
            ProbaRepository probaRepository = new ProbaRepository();
            ProbaService    probaService    = new ProbaService(probaRepository);

            probaController = new ProbaController(probaService);
            List <Proba> listaProbe = probaController.findAll();


            foreach (Proba elem in listaProbe)
            {
                comboBoxProbe.DisplayMember = elem.Name;
                comboBoxProbe.ValueMember   = elem.Id.ToString();
                comboBoxProbe.Items.Add(elem);
            }
        }
Exemplo n.º 2
0
 public ProbaController(ProbaService probaService)
 {
     this.probaService = probaService;
 }