public void InvokeOnFinish(GraphResult result) { OnFinishGraphEvent handler = OnFinish; if (handler != null) { handler(result); } }
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(); }