private void InitializeDetails() { // Fills the listview with lists required Items = userController.GetItems(true); Garbages = Items.SelectMany(x => x.Garbages).ToList(); ListUtil.InitializeListView(mlvManageGarbage, Garbages, Items); }
private void InitializeDetails() { tbcManageItems.SelectedTab = tbpBorrowItem; tbcBorrow.SelectedTab = tbpSearchBorrowItem; tbpSelectBorrowerUser.Visible = false; // Borrow Tab Items = userController.GetItems(false); selectedBorrowItemIndex = -1; ListUtil.InitializeListView(mlvSearchBorrowItem, Items); // Refund Tab RefundItems = userController.GetItems(true); Borrows = RefundItems.SelectMany(x => x.Borrows.Where(y => !y.IsReturn)).ToList(); ListUtil.InitializeListView(mlvSelectRefunderUser, Borrows, userController.GetAllUsers(true)); Departments = userController.GetDepartments(); ListUtil.InitializeDropdownList(dropSelectRefunderDepartment, Departments); }
private void InitializeDetails() { // Search Stock Tab Stocks = userController.GetItems(true).SelectMany(x => x.Stocks).ToList(); ListUtil.InitializeListView(mlvSearchStock, Stocks, userController.GetItems(true)); // Add Stock Tab BorrowItems = userController.GetItems(true).ToList(); ListUtil.InitializeListView(mlvSearchItemForAddStock, BorrowItems); // Add Item Tab Items = userController.GetItems(true).ToList(); ListUtil.InitializeListView(mlvAddItemSearch, Items); }