示例#1
0
        void UpdateListForm_Load(object sender, EventArgs e)
        {
            //MessageBox.Show("OK");
            this.cboHang.DataSource    = business.GetManufactures();
            this.cboHang.DisplayMember = "Name";
            this.cboHang.ValueMember   = "ID";
            Xe xe = business.GetBike(this.bienSo);

            this.txtbienSo.Text        = xe.License_Plates;
            this.txtTenxe.Text         = xe.Name;
            this.cboHang.SelectedValue = xe.Manufacture;
            this.dtpGui.Value          = xe.Time_Parking;
        }
示例#2
0
 void CreateForm_Load(object sender, EventArgs e)
 {
     this.cboHangxe.DataSource    = business.GetManufactures();
     this.cboHangxe.DisplayMember = "Name";
     this.cboHangxe.ValueMember   = "ID";
 }