예제 #1
0
        public void InvokeOnFinish(GraphResult result)
        {
            OnFinishGraphEvent handler = OnFinish;

            if (handler != null)
            {
                handler(result);
            }
        }
예제 #2
0
        private void Finish()
        {
            var dic = new GraphResult();

            lock (CollectionLock)
            {
                foreach (ConnectionPoint connectionPoint in NodesToNotify)
                {
                    GraphPath colorList = GetColorList(connectionPoint);
                    dic.Add(connectionPoint, colorList);
                }
            }

            InvokeOnFinish(dic);
            Undo();
            StartedEvent.Set();
        }