public LinkToInformation(
     BlockInformation source,
     BlockInformation target,
     DataflowLinkOptions linkOptions,
     System.Action unlink)
     : this(new LinkConnector(source, target), linkOptions, unlink)
 {
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
        public LinkConnector(
            BlockInformation source,
            BlockInformation target)
        {
            Source = source;
            Target = target;

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