public virtual void Create(DiscSpace space) { //if (space.Parent == Manager.Root) //{ // SourceDiscSpaces.Add(space); //} }
private void UpdatePathList(DiscSpace rectangle) { PathDiscSpaces.Clear(); var current = rectangle; while (current != null) { PathDiscSpaces.Insert(0, current); current = (DiscSpaceRectangle)current.Parent; } }
private void DiscSpace_Created(DiscSpace space) { CreatedDiscSpaces.Add(space); if (space.Manager.MapBack(space).Parent != null) { Assert.IsNotNull(space.Parent); Assert.IsTrue(space.Parent.Children.Contains(space)); } //Assert.AreSame(space, discSpaceManager.Map(space.cache)); }
public override void Loaded(DiscSpace space) { base.Loaded(space); if (space == Manager.Root) { int i = 0; IsTimerEnabled = false; } else { IsTimerEnabled = true; } }
public override void Create(DiscSpace space) { base.Create(space); if (_uiContext == null) { _uiContext = System.Threading.SynchronizationContext.Current; } var rectangle = (DiscSpaceRectangle)space; if (VisibleRoot == null || VisibleRoot.IsParentRecursive(rectangle)) { if (!Rectangles.Contains(rectangle)) { Rectangles.Add(rectangle); } } if (space.Parent == null) { _VisibleRoot = rectangle; } Debug.Assert(rectangle.ManagerRectangle != null); }
public virtual void Loaded(DiscSpace space) { }
private DiscSpace Manager_CreateNewDiscSpace(DiscSpaceManager manager, DiscSpace parent, string name, string fullname) { return(new DiscSpaceRectangle(this, manager, parent, name, fullname)); }
private void Manager_Created(DiscSpace space) { CreatedEvents.Add((DiscSpaceRectangle)space); }
public DiscSpaceRectangle(DiscSpaceCanvasViewModel model, DiscSpaceManager manager, DiscSpace parent, String name, String fullname) : base(manager, parent, name, fullname) { ManagerRectangle = model; FocusChangedCommand = new DelegateCommand <string>(OnFocus); SelectedCommand = new DelegateCommand <string>(OnSelection); }