public LinkToInformation( BlockInformation source, BlockInformation target, DataflowLinkOptions linkOptions, System.Action unlink) : this(new LinkConnector(source, target), linkOptions, unlink) { }
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 }; }
public void RemoveBlock(BlockInformation block) { Items.Remove(block); }
public void AddBlock(BlockInformation block) { Items.Add(block); }