void LoadListSubJenisBrgTree() { // list jenisBrg var listJenisBrg = _jenisBrgBL.ListData(); if (listJenisBrg == null) { return; } // SubJenisBrgTree.Nodes.Clear(); foreach (var item in listJenisBrg) { SubJenisBrgTree.Nodes.Add(item.JenisBrgID, item.JenisBrgName); var listSubJenisBrg = _subJenisBrgBL.ListData(item.JenisBrgID); if (listSubJenisBrg != null) { foreach (var item2 in listSubJenisBrg) { SubJenisBrgTree.Nodes[item.JenisBrgID] .Nodes.Add(item2.SubJenisBrgID, item2.SubJenisBrgName); } } } }
private void ListData() { var listJenisBrg = _jenisBrgBL.ListData(); if (listJenisBrg == null) { return; } JenisBrgGrid.Rows.Clear(); foreach (var item in listJenisBrg) { object[] rowData = { item.JenisBrgID, item.JenisBrgName }; JenisBrgGrid.Rows.Add(rowData); } }
private void ListDataJenisBrg() { var listJenisBrg = _jenisBrgBL.ListData(); if (listJenisBrg == null) { return; } SetLayoutJenisBrgGrid(); foreach (var item in listJenisBrg) { object[] rowData = { item.JenisBrgID, item.JenisBrgName }; JenisBrgGrid.Rows.Add(rowData); } if (JenisBrgGrid.CurrentRow == null) { return; } var jenisBrgID = JenisBrgGrid.CurrentRow.Cells["JenisBrgID"].Value.ToString(); var searchKeyword = SearchTextBox.Text; ListDataTipeBrg(jenisBrgID, searchKeyword); }
public void ListData_CallDalListData() { // arrange // act var actual = _jenisBrgBL.ListData(); // assert _jenisBrgDal.Verify(x => x.ListData(), Times.Once); }