コード例 #1
0
 public PinGroup(IGraphBlock block, string id, PinLocation location, string caption)
 {
     Block    = block;
     Id       = id;
     Location = location;
     Caption  = caption;
 }
コード例 #2
0
ファイル: PinGroup.cs プロジェクト: brekooname/HLab
        public PinGroup(IGraphBlock block, string id, PinLocation location, string caption)
        {
            Block    = block;
            Id       = id;
            Location = location;
            Caption  = caption;

            H <PinGroup> .Initialize(this);
        }
コード例 #3
0
ファイル: PinGroup.cs プロジェクト: CHMP-HLab/HLab
        public void Inject(IGraphBlock block, string id, PinLocation location, string caption)
        {
            H <PinGroup> .Initialize(this);

            Block    = block;
            Id       = id;
            Location = location;
            Caption  = caption;
        }
コード例 #4
0
ファイル: Graph.cs プロジェクト: CHMP-HLab/HLab
 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);
 }