Exemplo n.º 1
0
        private void BusViewToAddForOwner_Load(object sender, EventArgs e)
        {
            RouteBLL r_bll = new RouteBLL();

            cbbRouteID.DataSource    = r_bll.GetRouteList();
            cbbRouteID.DisplayMember = "Id";
            cbbRouteID.ValueMember   = "TuyenDuong";
            txtTuyenDuong.Text       = cbbRouteID.SelectedValue.ToString();
            lbOwnerName.Text         = main_owner_dto.Name;
        }
Exemplo n.º 2
0
        private void Bus_Load(object sender, EventArgs e)
        {
            LoadData();
            LoadDataOwner();

            //Get and load list Route
            RouteBLL r_bll = new RouteBLL();

            main_listRoute           = r_bll.GetRouteList();
            cbbRouteID.DataSource    = main_listRoute;
            cbbRouteID.DisplayMember = "Id";
            cbbRouteID.ValueMember   = "TuyenDuong";
            txtTuyenDuong.Text       = cbbRouteID.SelectedValue.ToString();
        }
        private void BusDetailOfOwner_Load(object sender, EventArgs e)
        {
            //Load list bus to listbox
            loadListBus();

            //Get and load list Route
            RouteBLL bll = new RouteBLL();

            _listRoute               = bll.GetRouteList();
            cbbRouteID.DataSource    = _listRoute;
            cbbRouteID.DisplayMember = "Id";
            cbbRouteID.ValueMember   = "TuyenDuong";
            txtTuyenDuong.Text       = cbbRouteID.SelectedValue.ToString();

            //Fill detail of bus to textfield
            FillBusDetail();
            lbOwnerName.Text = _ownerName;
        }
Exemplo n.º 4
0
 private void LoadData()
 {
     gvRouteList.DataSource          = bll.GetRouteList();
     gvRouteList.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
 }