private void btnSearch(object sender, EventArgs e) { FaultyService service = new FaultyService(); faultyMasterList = service.GetAllFaultyMaster(); dgvSearchResult.DataSource = faultyMasterList; }
private void GetList() { FaultyService service = new FaultyService(); faultyMasterList = service.GetAllFaultyMaster(); dgvSelect.DataSource = faultyMasterList; faultyDetailList = service.GetFaultyDetail(); }