Exemplo n.º 1
0
        public DSBan DsBanYeuCau(string kw)
        {
            DSBan kq = new DSBan();

            try
            {
                int maBan = int.Parse(kw);
                foreach (Ban b in dsBan)
                {
                    if (b.MaBan.ToString().Contains(maBan.ToString()))
                    {
                        kq.ThemBan(b);
                    }
                    if (kq.TimBan(b.MaBan) == null)
                    {
                        if (b.SucChua == maBan)
                        {
                            kq.ThemBan(b);
                        }
                    }
                }
            }
            catch (Exception e)
            {
            }
            return(kq);
        }
Exemplo n.º 2
0
        public DSBan DsBanDat()
        {
            DSBan kq = new DSBan();

            foreach (Ban b in this.dsBan)
            {
                if (b.TinhTrang == false)
                {
                    kq.ThemBan(b);
                }
            }
            return(kq);
        }
Exemplo n.º 3
0
 public void SetUp()
 {
     fDSBan = new DSBan();
 }