void InternalCollection_UpdateBegun(IViewableCollection collection) { if (UpdateBegun != null) { UpdateBegun(this); } }
void InternalCollection_Updated(IViewableCollection collection) { if (Updated != null) { Updated(this); } }
void Keyframes_Added(IViewableCollection <TLValueKeyframe> collection, TLValueKeyframe item) { if (!Loading) { SortAndAssignNeighbours(); } }
void FRootFolder_Added(IViewableCollection collection, object item) { if (Added != null) { Added(this, item); } }
protected virtual void OnUpdated(IViewableCollection collection) { if (Updated != null) { Updated(collection); } }
void FProject_Documents_Added(IViewableCollection <IDocument> collection, IDocument item) { var relativeDir = item.GetRelativeDir(); var folder = GetOrCreateFolder(relativeDir); folder.Documents.Add(item); }
void FRootFolder_Removed(IViewableCollection collection, object item) { if (Removed != null) { Removed(this, item); } }
protected virtual void OnCleared(IViewableCollection collection) { if (Cleared != null) { Cleared(collection); } }
void HandleProjectReferenceRemoved(IViewableCollection <IReference> collection, IReference item) { if (FProject.IsLoaded) { FProject.Save(); } }
void FAttachedNode_Parent_Removed(IViewableCollection <INode2> collection, INode2 item) { if (item == AttachedNode) { AttachedNode = null; } }
void Timeline_Tracks_Removed(IViewableCollection <TLTrackBase> collection, TLTrackBase item) { item.Label.ValueChanged -= item_Label_ValueChanged; if (TrackRemoved != null) { TrackRemoved(item.Label.Value); } }
void Timeline_Tracks_Added(IViewableCollection <TLTrackBase> collection, TLTrackBase item) { item.Label.ValueChanged += item_Label_ValueChanged; if (TrackAdded != null) { TrackAdded(item.Label.Value, item.Order.Value); } }
void Document_Added(IViewableCollection <IDocument> collection, IDocument item) { item.Project = this; if (item.IsDirty) { item.Save(); } }
void Projects_Added(IViewableCollection <IProject> collection, IProject item) { var project = item as MsBuildProject; if (project != null) { UpdataBuildConfigOfProject(project); } }
void HandleNodeRemoved(IViewableCollection <INode2> collection, INode2 node) { var nodeView = FChildNodes.FirstOrDefault((n) => n.FNode == node); if (nodeView != null) { RemoveNodeView(nodeView); } }
internal ViewableCollectionSource(IViewableCollection <T> collection) { FCollection = collection; FCollection.Added += HandleAdded; FCollection.Removed += HandleRemoved; FCollection.Cleared += HandleCleared; FCollection.UpdateBegun += HandleUpdateBegun; FCollection.Updated += HandleUpdated; }
void HandleActivePatchParentRemoved(IViewableCollection collection, object item) { var childNode = item as INode2; //if active patch is being deleted detach view if (childNode == ActivePatchNode) { ActivePatchNode = childNode.Parent; if (!FNodeFilter.ScopeIsGlobal) { UpdateView(); } } }
void HandleNodeAdded(IViewableCollection <INode2> collection, INode2 node) { if (!FChildNodes.Any((n) => n.FNode == node)) { var nodeView = CreateNodeView(node); if (nodeView.IsIncludedInFilter()) { FChildNodes.BeginUpdate(); AddNodeView(nodeView); FChildNodes.EndUpdate(); } else { nodeView.Dispose(); } } }
void node_Removed(IViewableCollection <INode2> collection, INode2 item) { item.Added -= node_Added; item.Removed -= node_Removed; foreach (var node in item) { node_Removed(item, node); } var project = item.NodeInfo?.UserData as IProject; if (project != null && !IsProjectInUse(project)) { FLoadedProjects.Remove(project); } }
void InternalCollection_Removed(IViewableCollection <T> collection, T item) { OnRemoved(item); }
protected void PointsChanged(IViewableCollection <PointF> collection, PointF item) { Rebuild(); }
void Projects_Removed(IViewableCollection <IProject> collection, IProject project) { project.ProjectCompiledSuccessfully -= Project_Compiled; }
void Projects_Added(IViewableCollection <IProject> collection, IProject project) { project.Solution = this; project.ProjectCompiledSuccessfully += Project_Compiled; }
void InternalCollection_Added(IViewableCollection <T> collection, T item) { OnAdded(item); }
void Keyframes_Removed(IViewableCollection <TLValueKeyframe> collection, TLValueKeyframe item) { SortAndAssignNeighbours(); }
void References_Changed(IViewableCollection <IReference> collection, IReference item) { FIsProjectContentValid = false; }
void Timeline_Tracks_Removed(IViewableCollection<TLTrackBase> collection, TLTrackBase item) { item.Label.ValueChanged -= item_Label_ValueChanged; if (TrackRemoved != null) TrackRemoved(item.Label.Value); }
void Timeline_Tracks_Added(IViewableCollection<TLTrackBase> collection, TLTrackBase item) { item.Label.ValueChanged += item_Label_ValueChanged; if (TrackAdded != null) TrackAdded(item.Label.Value, item.Order.Value); }
void Keyframes_Added(IViewableCollection <TLStringKeyframe> collection, TLStringKeyframe item) { //sort the keyframes and assign neighbours SortAndAssignNeighbours(); }
void Keyframes_Removed(IViewableCollection<TLValueKeyframe> collection, TLValueKeyframe item) { SortAndAssignNeighbours(); }
private void OnNodeAdded(IViewableCollection<INode2> collection, INode2 item) { this.AddNode(item); }
void InternalCollection_Cleared(IViewableCollection <T> collection) { OnCleared(); }
private void Pins_Removed(IViewableCollection<IPin2> collection, IPin2 item) { this.ProcessRemovedPin(item); }
void HandleChildNodesUpdated(IViewableCollection collection) { SortChildren(); }
private void Pins_Added(IViewableCollection<IPin2> collection, IPin2 item) { this.ProcessAddedPin(item,false); }
private void OnNodeRemoved(IViewableCollection<INode2> collection, INode2 item) { this.RemoveNode(item); }
void Keyframes_Added(IViewableCollection<TLValueKeyframe> collection, TLValueKeyframe item) { if (!Loading) SortAndAssignNeighbours(); }
void References_Added(IViewableCollection <IReference> collection, IReference item) { ReloadProjectContent(); }
void Keyframes_Added(IViewableCollection<TLStringKeyframe> collection, TLStringKeyframe item) { //sort the keyframes and assign neighbours SortAndAssignNeighbours(); }