Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     serv = new Service1Client();
     string[] cus = serv.readTable("Customer");
     listBox1.Items.Clear();
     foreach (string c in cus)
         listBox1.Items.Add(c);
 }
Exemplo n.º 2
0
        public Form2(IService1 serv, string cid)
        {
            InitializeComponent();
            this.serv = serv;
            this.cid = cid;
            string[] prd = serv.readTable("Product");
            listBox1.Items.Clear();
            foreach (string p in prd)
                listBox1.Items.Add(p);

            mesg= new Queue<string>();
            mesg.Enqueue(listBox1.Items[0].ToString() + "\t Quantity");
        }