public LinkToInformation(
     BlockInformation source,
     BlockInformation target,
     DataflowLinkOptions linkOptions,
     System.Action unlink)
     : this(new LinkConnector(source, target), linkOptions, unlink)
 {
 }
Example #2
0
 public static void ProcessItem(object item, WaitHandle sync, BlockInformation blockInfo)
 {
     Application.Current.Dispatcher.InvokeAsync(() =>
                                                blockInfo.StartProcessing(item));
     sync.WaitOne();
     Application.Current.Dispatcher.InvokeAsync(() =>
                                                blockInfo.EndProcessing(item));
     blockInfo.Refresh();
 }
        public LinkConnector(
            BlockInformation source,
            BlockInformation target)
        {
            Source = source;
            Target = target;

            Location = new Location {
                Left = 0, Top = 0
            };
        }
Example #4
0
 public void RemoveBlock(BlockInformation block)
 {
     Items.Remove(block);
 }
Example #5
0
 public void AddBlock(BlockInformation block)
 {
     Items.Add(block);
 }