Пример #1
0
 void InternalCollection_UpdateBegun(IViewableCollection collection)
 {
     if (UpdateBegun != null)
     {
         UpdateBegun(this);
     }
 }
Пример #2
0
 void InternalCollection_Updated(IViewableCollection collection)
 {
     if (Updated != null)
     {
         Updated(this);
     }
 }
Пример #3
0
 void Keyframes_Added(IViewableCollection <TLValueKeyframe> collection, TLValueKeyframe item)
 {
     if (!Loading)
     {
         SortAndAssignNeighbours();
     }
 }
Пример #4
0
 void FRootFolder_Added(IViewableCollection collection, object item)
 {
     if (Added != null)
     {
         Added(this, item);
     }
 }
Пример #5
0
 protected virtual void OnUpdated(IViewableCollection collection)
 {
     if (Updated != null)
     {
         Updated(collection);
     }
 }
Пример #6
0
        void FProject_Documents_Added(IViewableCollection <IDocument> collection, IDocument item)
        {
            var relativeDir = item.GetRelativeDir();
            var folder      = GetOrCreateFolder(relativeDir);

            folder.Documents.Add(item);
        }
Пример #7
0
 void FRootFolder_Removed(IViewableCollection collection, object item)
 {
     if (Removed != null)
     {
         Removed(this, item);
     }
 }
Пример #8
0
 protected virtual void OnCleared(IViewableCollection collection)
 {
     if (Cleared != null)
     {
         Cleared(collection);
     }
 }
Пример #9
0
 void HandleProjectReferenceRemoved(IViewableCollection <IReference> collection, IReference item)
 {
     if (FProject.IsLoaded)
     {
         FProject.Save();
     }
 }
Пример #10
0
 void FAttachedNode_Parent_Removed(IViewableCollection <INode2> collection, INode2 item)
 {
     if (item == AttachedNode)
     {
         AttachedNode = null;
     }
 }
Пример #11
0
 void Timeline_Tracks_Removed(IViewableCollection <TLTrackBase> collection, TLTrackBase item)
 {
     item.Label.ValueChanged -= item_Label_ValueChanged;
     if (TrackRemoved != null)
     {
         TrackRemoved(item.Label.Value);
     }
 }
Пример #12
0
 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);
     }
 }
Пример #13
0
 void Document_Added(IViewableCollection <IDocument> collection, IDocument item)
 {
     item.Project = this;
     if (item.IsDirty)
     {
         item.Save();
     }
 }
Пример #14
0
        void Projects_Added(IViewableCollection <IProject> collection, IProject item)
        {
            var project = item as MsBuildProject;

            if (project != null)
            {
                UpdataBuildConfigOfProject(project);
            }
        }
Пример #15
0
        void HandleNodeRemoved(IViewableCollection <INode2> collection, INode2 node)
        {
            var nodeView = FChildNodes.FirstOrDefault((n) => n.FNode == node);

            if (nodeView != null)
            {
                RemoveNodeView(nodeView);
            }
        }
Пример #16
0
        internal ViewableCollectionSource(IViewableCollection <T> collection)
        {
            FCollection = collection;

            FCollection.Added       += HandleAdded;
            FCollection.Removed     += HandleRemoved;
            FCollection.Cleared     += HandleCleared;
            FCollection.UpdateBegun += HandleUpdateBegun;
            FCollection.Updated     += HandleUpdated;
        }
Пример #17
0
        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();
                }
            }
        }
Пример #18
0
 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();
         }
     }
 }
Пример #19
0
        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);
            }
        }
Пример #20
0
 void InternalCollection_Removed(IViewableCollection <T> collection, T item)
 {
     OnRemoved(item);
 }
Пример #21
0
 protected void PointsChanged(IViewableCollection <PointF> collection, PointF item)
 {
     Rebuild();
 }
Пример #22
0
 void Projects_Removed(IViewableCollection <IProject> collection, IProject project)
 {
     project.ProjectCompiledSuccessfully -= Project_Compiled;
 }
Пример #23
0
 void Projects_Added(IViewableCollection <IProject> collection, IProject project)
 {
     project.Solution = this;
     project.ProjectCompiledSuccessfully += Project_Compiled;
 }
Пример #24
0
 void InternalCollection_Added(IViewableCollection <T> collection, T item)
 {
     OnAdded(item);
 }
Пример #25
0
 void Keyframes_Removed(IViewableCollection <TLValueKeyframe> collection, TLValueKeyframe item)
 {
     SortAndAssignNeighbours();
 }
Пример #26
0
 void References_Changed(IViewableCollection <IReference> collection, IReference item)
 {
     FIsProjectContentValid = false;
 }
Пример #27
0
 void Timeline_Tracks_Removed(IViewableCollection<TLTrackBase> collection, TLTrackBase item)
 {
     item.Label.ValueChanged -= item_Label_ValueChanged;
     if (TrackRemoved != null)
         TrackRemoved(item.Label.Value);
 }
Пример #28
0
 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);
 }
Пример #29
0
 void Keyframes_Added(IViewableCollection <TLStringKeyframe> collection, TLStringKeyframe item)
 {
     //sort the keyframes and assign neighbours
     SortAndAssignNeighbours();
 }
Пример #30
0
 void Keyframes_Removed(IViewableCollection<TLValueKeyframe> collection, TLValueKeyframe item)
 {
     SortAndAssignNeighbours();
 }
Пример #31
0
 private void OnNodeAdded(IViewableCollection<INode2> collection, INode2 item)
 {
     this.AddNode(item);
 }
Пример #32
0
 void InternalCollection_Cleared(IViewableCollection <T> collection)
 {
     OnCleared();
 }
Пример #33
0
 private void Pins_Removed(IViewableCollection<IPin2> collection, IPin2 item)
 {
     this.ProcessRemovedPin(item);
 }
Пример #34
0
 void HandleChildNodesUpdated(IViewableCollection collection)
 {
     SortChildren();
 }
Пример #35
0
 private void Pins_Added(IViewableCollection<IPin2> collection, IPin2 item)
 {
     this.ProcessAddedPin(item,false);
 }
Пример #36
0
 private void OnNodeRemoved(IViewableCollection<INode2> collection, INode2 item)
 {
     this.RemoveNode(item);
 }
Пример #37
0
 void Keyframes_Added(IViewableCollection<TLValueKeyframe> collection, TLValueKeyframe item)
 {
     if (!Loading)
         SortAndAssignNeighbours();
 }
Пример #38
0
 void References_Added(IViewableCollection <IReference> collection, IReference item)
 {
     ReloadProjectContent();
 }
Пример #39
0
 void Keyframes_Added(IViewableCollection<TLStringKeyframe> collection, TLStringKeyframe item)
 {
     //sort the keyframes and assign neighbours
     SortAndAssignNeighbours();
 }