private void LoadTruck()
        {
            var coll = TruckController.GetAllTrucks(1);

            cboTruckNo.DisplayMember = "TruckNo";
            cboTruckNo.ValueMember   = "TruckId";
            cboTruckNo.DataSource    = coll;
        }
Example #2
0
        private void LoadTruck()
        {
            //var farmCtrl = new FarmController();
            var coll = TruckController.GetAllTrucks(TxtFilter.Text);

            gv.DataSource = coll;
            //LoadItem("");
        }
Example #3
0
        //();
        private void LoadTruck()
        {
            var coll = TruckController.GetAllTrucks(2);

            //coll.Insert(0, new Truck
            //{
            //    TruckId = 0,
            //    TruckNo = "--เลือก--"
            //});
            cboTrucko.DisplayMember = "TruckNo";
            cboTrucko.ValueMember   = "TruckId";
            cboTrucko.DataSource    = coll;
        }