public void FilterList(DateTime Cuttoff, List <string> Files = null) { FilteredList = new List <MCInfo>(); RemoteList.ForEach(x => { if (x.RemoteLastWrite >= Cuttoff) { FilteredList.Add(x); } else if (Files.Find(f => f.Equals(x.FileName, StringComparison.OrdinalIgnoreCase)) != null) { FilteredList.Add(x); } }); }
static ResWithList() { // add adapter for UserList commands RemoteList <Reference <CoflnetUser> > .AddCommands (Commands, nameof(Users), m => m.GetTargetAs <ResWithList>().Users); }
public ResWithList(EntityId owner) : base(owner) { Users = new RemoteList <Reference <CoflnetUser> >(nameof(Users), this); }
public ResWithList() { Users = new RemoteList <Reference <CoflnetUser> >(nameof(Users), this); }