public void TonKho()
 {
     try
     {
         cl           = new Server_Client.Client();
         this.client1 = cl.Connect(Luu.IP, Luu.Ports);
         Entities.BCTonKhoTheoNhomHang ctxh = new Entities.BCTonKhoTheoNhomHang("Select");
         clientstrem = cl.SerializeObj(this.client1, "BCTonKhoTheoNhom", ctxh);
         tonkho      = (Entities.BCTonKhoTheoNhomHang[])cl.DeserializeHepper1(clientstrem, tonkho);
         if (tonkho == null)
         {
             tonkho = new Entities.BCTonKhoTheoNhomHang[0];
             return;
         }
     }
     catch
     {
     }
 }
        public void TonKho()
        {
            try
            {

                cl = new Server_Client.Client();
                this.client1 = cl.Connect(Luu.IP, Luu.Ports);
                Entities.BCTonKhoTheoNhomHang ctxh = new Entities.BCTonKhoTheoNhomHang("Select");
                clientstrem = cl.SerializeObj(this.client1, "BCTonKhoTheoNhom", ctxh);
                tonkho = (Entities.BCTonKhoTheoNhomHang[])cl.DeserializeHepper1(clientstrem, tonkho);
                if (tonkho == null)
                {
                    tonkho = new Entities.BCTonKhoTheoNhomHang[0];
                    return;
                }
            }
            catch
            {

            }
        }