Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            label1.Text = "Buna ziua," + GlobalUsers.GlobalClient.Prenume;
            label2.Text = "Adresa:" + GlobalUsers.GlobalClient.Adresa;
            label3.Text = "Telefon:" + GlobalUsers.GlobalClient.Telefon;
            label4.Text = "Email:" + GlobalUsers.GlobalClient.Email;

            listBox1.Items.Clear();

            List <Comanda> commandlist = ComandaController.GetComandaByClientID(GlobalUsers.GlobalClient.ID);

            foreach (Comanda c in commandlist)
            {
                string format = "#" + c.ID + "  " + c.AdresaDest + "  " + c.Descriere + " Status:" + ComandaController.StatusToText(ComandaController.GetStatus(c.ID));
                listBox1.Items.Add(format);
            }
        }
Пример #2
0
        public ClientMenuForm()
        {
            InitializeComponent();

            label1.Text = "Buna ziua," + GlobalUsers.GlobalClient.Prenume;
            label2.Text = "Adresa:" + GlobalUsers.GlobalClient.Adresa;
            label3.Text = "Telefon:" + GlobalUsers.GlobalClient.Telefon;
            label4.Text = "Email:" + GlobalUsers.GlobalClient.Email;

            listBox1.Items.Clear();

            List <Comanda> commandlist = ComandaController.GetComandaByClientID(GlobalUsers.GlobalClient.ID);

            foreach (Comanda c in commandlist)
            {
                string format = "#" + c.ID + "  " + c.AdresaDest + "  " + c.Descriere + " Status:" + ComandaController.StatusToText(ComandaController.GetStatus(c.ID));
                listBox1.Items.Add(format);
            }
        }