示例#1
0
 protected override void SetupList(ListSetup listSetup)
 {
     if (SortMember==string.Empty)
     {
         SortMember = "Name";
     }
     listSetup.Source = Db.Category.ToList();
     TotalCount = listSetup.Source.Count;
     PageCount = TotalCount / ITEMS_COUNT + 1;
     listSetup.IdMember = "Id";
     listSetup.TextMember = "Name";
     listSetup.Columns.Add(new ListColumn("Name", "Nazwa", HorizontalAlign.Center, TypeColumn.Text));
 }
示例#2
0
 protected virtual void SetupList(ListSetup listSetup)
 {
     throw new Exception("This method must be overriden in a concrete implementation.");
 }