Esempio n. 1
0
        private void drbtnServiceChose_Click(object sender, EventArgs e)
        {
            //do du lieu len danh sach dich vu
            serviceDataTable.Clear();
            serviceDataTable = servicesBUS.GetAllServices();
            grdListServicePopup.DataSource = serviceDataTable;

            drbtnServiceChose.ShowDropDown();
        }
Esempio n. 2
0
 private void frmServices_Load(object sender, EventArgs e)
 {
     //
     servicesTypeDataTable = servicesTypeBUS.GetAllServicesType();
     lkServicesType.Properties.DataSource    = servicesTypeDataTable;
     lkServicesType.Properties.DisplayMember = "ServicesTypeName";
     lkServicesType.Properties.ValueMember   = "ServicesTypeID";
     //
     unitDataTable = unitBUS.GetAllUnit();
     lkUnit.Properties.DataSource    = unitDataTable;
     lkUnit.Properties.DisplayMember = "UnitName";
     lkUnit.Properties.ValueMember   = "UnitID";
     //
     servicesDataTable          = servicesBUS.GetAllServices();
     grdListServices.DataSource = servicesDataTable;
     InitControlByData();
 }