public PinGroup(IGraphBlock block, string id, PinLocation location, string caption) { Block = block; Id = id; Location = location; Caption = caption; }
public PinGroup(IGraphBlock block, string id, PinLocation location, string caption) { Block = block; Id = id; Location = location; Caption = caption; H <PinGroup> .Initialize(this); }
public void Inject(IGraphBlock block, string id, PinLocation location, string caption) { H <PinGroup> .Initialize(this); Block = block; Id = id; Location = location; Caption = caption; }
public void AddBlock(IGraphBlock block) { if (string.IsNullOrEmpty(block.Id)) { var blocks = Blocks.Where(p => p.Id.StartsWith("#")).ToList(); block.Id = "#" + (blocks.Count == 0 ? 0 : blocks.Max(b => int.Parse(b.Id.TrimStart('#'))) + 1); } block.Graph = this; Blocks.Add(block); }