Пример #1
0
 private DiscSpace CreateDiscSpace(DiscSpaceManager manager, DiscSpace parent, String name, String fullname)
 {
     if (CreateNewDiscSpace != null)
     {
         return(CreateNewDiscSpace.Invoke(manager, parent, name, fullname));
     }
     return(new DiscSpace(manager, parent, name, fullname));
 }
Пример #2
0
 public DiscSpace(DiscSpaceManager manager, DiscSpace parent, string name, string fullname)
 {
     this.Parent = parent;
     Name        = name;
     FullName    = fullname;
     Manager     = manager;
     Children    = new List <DiscSpace>();
     parent?.Children.Add(this);
     IsLoaded = false;
 }