예제 #1
0
 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);
         }
     });
 }
예제 #2
0
 static ResWithList()
 {
     // add adapter for UserList commands
     RemoteList <Reference <CoflnetUser> > .AddCommands
         (Commands, nameof(Users), m => m.GetTargetAs <ResWithList>().Users);
 }
예제 #3
0
 public ResWithList(EntityId owner) : base(owner)
 {
     Users = new RemoteList <Reference <CoflnetUser> >(nameof(Users), this);
 }
예제 #4
0
 public ResWithList()
 {
     Users = new RemoteList <Reference <CoflnetUser> >(nameof(Users), this);
 }