コード例 #1
0
        public SortingNodeViewModel(SortingNode node)
        {
            node_ = node;
            progress_ = node_.Progress;

            node_.Started += NodeStarted;
            node_.Finished += NodeFinished;
            node_.Changed += NodeChanged;
        }
コード例 #2
0
 private void OnQueueNodeAdded(SortingNode data)
 {
     var node = node_factory_.Create(data);
     node.Finished += () =>
     {
         nodes_.Remove(node);
         NotifyOfPropertyChange(() => Nodes);
     };
     nodes_.Add(node);
     NotifyOfPropertyChange(() => Nodes);
 }