public SortingNodeViewModel(SortingNode node) { node_ = node; progress_ = node_.Progress; node_.Started += NodeStarted; node_.Finished += NodeFinished; node_.Changed += NodeChanged; }
private void OnQueueNodeAdded(SortingNode data) { var node = node_factory_.Create(data); node.Finished += () => { nodes_.Remove(node); NotifyOfPropertyChange(() => Nodes); }; nodes_.Add(node); NotifyOfPropertyChange(() => Nodes); }