| 123456789101112131415161718192021222324252627282930313233 | 
							- using Comal.Classes;
 
- using InABox.Core;
 
- using InABox.DynamicGrid;
 
- namespace PRSDesktop;
 
- internal class ActivityRoleGrid : DynamicManyToManyGrid<RoleActivity, Activity>
 
- {
 
-     public ActivityRoleGrid()
 
-     {
 
-         //var dtc = new DynamicTickColumn<RoleActivity, bool>(x => x.Enabled, PRSDesktop.Resources.tick.AsBitmapImage(), PRSDesktop.Resources.tick.AsBitmapImage(), PRSDesktop.Resources.disabled.AsBitmapImage());
 
-         //dtc.Action = EnableActivity;
 
-         //ActionColumns.Add(dtc);
 
-     }
 
-     protected override void DoReconfigure(DynamicGridOptions options)
 
-     {
 
-         base.DoReconfigure(options);
 
-         options.RecordCount = true;
 
-         options.SelectColumns = true;
 
-         options.AddRows = true;
 
-         options.DeleteRows = true;
 
-         options.MultiSelect = true;
 
-     }
 
-     //private bool EnableActivity(CoreRow arg)
 
-     //{
 
-     //    var items = arg == null ? WorkingList.ToArray() : new RoleActivity[] { WorkingList[arg.Index] }; //.Where(x => x.ID.Equals(arg.Get<RoleActivity, Guid>(c => c.ID)));
 
-     //    foreach (var item in items)
 
-     //        item.Enabled = !item.Enabled;
 
-     //    return true;
 
-     //}
 
- }
 
 
  |