using Comal.Classes; using InABox.Core; using InABox.DynamicGrid; namespace PRSDesktop; internal class ActivityRoleGrid : DynamicManyToManyGrid { public ActivityRoleGrid() { //var dtc = new DynamicTickColumn(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(c => c.ID))); // foreach (var item in items) // item.Enabled = !item.Enabled; // return true; //} }