Exemplo n.º 1
0
        public TimKiem(FDMP sender)
        {
            InitializeComponent();
            ShowCBB();
            string madmp  = cbbDMP.SelectedValue.ToString();
            var    result = from c in db.Phongs
                            where (c.MaDanhMucPhong == madmp && c.TinhTrang == "Đang thuê")
                            select c;

            cbbP.DataSource    = result.ToList();
            cbbP.DisplayMember = "TenPhong";
            cbbP.ValueMember   = "MaPhong";
            this.fdm           = sender;
        }
Exemplo n.º 2
0
 public TimKiem(FDMP sender)
 {
     InitializeComponent();
     this.fdm = sender;
 }