public CurierMenuForm()
        {
            InitializeComponent();
            label1.Text = "Buna ziua," + GlobalUsers.GlobalCurier.Prenume;
            label2.Text = "Masina: " + CuriermanController.GetCarByID(GlobalUsers.GlobalCurier.ID).Numar;
            label3.Text = "Model: " + CuriermanController.GetCarByID(GlobalUsers.GlobalCurier.ID).Model;


            listBox1.Items.Clear();

            commandlist = CuriermanController.GetLDs(GlobalUsers.GlobalCurier.ID);

            foreach (LivrareDepozit c in commandlist)
            {
                string format = "#" + c.Comanda + "  Adresa Ridicare:" + c.AdresaExp + "  Depozit destinatie:" + c.Depozit + "  Status:" + c.Status;
                listBox1.Items.Add(format);
            }
            listBox2.Items.Clear();

            commandlistc = CuriermanController.GetLCs(GlobalUsers.GlobalCurier.ID);

            foreach (LivrareDepozit c in commandlistc)
            {
                string format = "#" + c.Comanda + "  Depozit Ridicare:" + c.Depozit + "  Adresa Destinatie:" + c.AdresaExp + " Status:" + c.Status;
                listBox2.Items.Add(format);
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            label1.Text = "Buna ziua," + GlobalUsers.GlobalCurier.Prenume;
            label2.Text = "Masina: " + CuriermanController.GetCarByID(GlobalUsers.GlobalCurier.ID).Numar;
            label3.Text = "Model: " + CuriermanController.GetCarByID(GlobalUsers.GlobalCurier.ID).Model;


            listBox1.Items.Clear();

            commandlist = CuriermanController.GetLDs(GlobalUsers.GlobalCurier.ID);

            foreach (LivrareDepozit c in commandlist)
            {
                string format = "#" + c.Comanda + "  Adresa Ridicare:" + c.AdresaExp + "  Depozit destinatie:" + c.Depozit + "  Status:" + c.Status;
                listBox1.Items.Add(format);
            }
            listBox2.Items.Clear();

            commandlistc = CuriermanController.GetLCs(GlobalUsers.GlobalCurier.ID);

            foreach (LivrareDepozit c in commandlistc)
            {
                string format = "#" + c.Comanda + "  Depozit Ridicare:" + c.Depozit + "  Adresa Destinatie:" + c.AdresaExp + " Status:" + c.Status;
                listBox2.Items.Add(format);
            }
        }