public void Stats() { grdMain.Rows.Clear(); grdMain.Rows.Add("Number of resources:", Repository.GetAll <Resource>().Count()); grdMain.Rows.Add("Number of Frequent Items:", Repository.GetAll <FrequentItem>().Count()); grdMain.Rows.Add("Number of Ignored Rules:", Repository.GetAll <IgnoreRule>().Count()); }
public void LoadGrid() { List <Configuration> Configs = Repository.GetAll <Configuration>().ToList(); grdMain.Rows.Clear(); foreach (var item in Configs) { grdMain.Rows.Add(item.UID, item.Parameter, item.Value); } }
public void LoadGrid() { List <IgnoreRule> Rules = Repository.GetAll <IgnoreRule>().ToList(); grdMain.Rows.Clear(); foreach (var item in Rules) { grdMain.Rows.Add(item.UID, item.Term); } }