private void CollectionF_Filled() { dataGridViewListF.Rows.Clear(); txtCountF.Text = AprioriSet[K - 1].F_List.Count.ToString(); for (int i = 0; i < Math.Min(LOAD_LIMIT, AprioriSet[K - 1].F_List.Count); i++) { F_Item f_item = AprioriSet[K - 1].F_List[i]; dataGridViewListF.Rows.Add(f_item.TID, f_item.ToString()); } }
private void LoadMore_F() { loading = true; int currentRows = dataGridViewListF.Rows.Count; for (int i = currentRows; i < Math.Min(currentRows + LOAD_LIMIT, AprioriSet[K - 1].F_List.Count); i++) { F_Item f_item = AprioriSet[K - 1].F_List[i]; dataGridViewListF.Rows.Add(f_item.TID, f_item.ToString()); } loading = false; }