private void button3_Click(object sender, EventArgs e)
        {
            String data = dataCautareBox.Text;

            if (data.Equals(""))
            {
                MessageBox.Show("Trebuie introdusa o data");
                return;
            }
            List <Programare> programari = _programareService.listaProgramari(data);

            listView1.Items.Clear();
            if (programari != null)
            {
                foreach (Programare programare in programari)
                {
                    float  pret     = 0.0f;
                    String servicii = "";
                    foreach (Serviciu serviciu in programare.getServicii())
                    {
                        pret    += serviciu.getPret();
                        servicii = servicii + serviciu.getNume() + ", ";
                    }
                    var row = new string[] { programare.getNumeClient(), programare.getData().ToString("yyyy-MM-dd"), programare.getOra().ToString("HH:mm"), programare.getTelefon(), servicii, pret.ToString() };
                    var lvi = new ListViewItem(row);
                    lvi.Tag = programare;

                    listView1.Items.Add(lvi);
                }
            }
            else
            {
                MessageBox.Show("Nu exista programari pe aceasta data");
            }
        }
        private void button6_Click(object sender, EventArgs e)
        {
            String dataInceput = dataInceputBox.Text;
            String dataFinala  = dataFinalBox.Text;

            if (dataInceput.Equals("") || dataFinala.Equals(""))
            {
                MessageBox.Show("Trebuie introdusa o data");
                return;
            }
            listView2.Items.Clear();
            DateTime dataInceputP = DateTime.ParseExact(dataInceput, "yyyy-MM-dd", null);
            DateTime dataFinalaP  = DateTime.ParseExact(dataFinala, "yyyy-MM-dd", null);

            while (dataInceputP.Date <= dataFinalaP.Date)
            {
                List <Programare> programari = _programareService.listaProgramari(dataInceputP.ToString("yyyy-MM-dd"));
                if (programari != null)
                {
                    foreach (Programare programare in programari)
                    {
                        float  pret     = 0.0f;
                        String servicii = "";
                        foreach (Serviciu serviciu in programare.getServicii())
                        {
                            pret    += serviciu.getPret();
                            servicii = servicii + serviciu.getNume() + ", ";
                        }
                        var row = new string[] { programare.getNumeClient(), programare.getData().ToString("yyyy-MM-dd"), programare.getOra().ToString("HH:mm"), programare.getTelefon(), servicii, pret.ToString() };
                        var lvi = new ListViewItem(row);
                        lvi.Tag = programare;

                        listView2.Items.Add(lvi);
                    }
                }
                dataInceputP = dataInceputP.AddDays(1);
            }
        }