示例#1
0
 private loBlock(DTopic model, LogramView owner)
     : base(owner)
 {
     this.model          = model;
     _pins               = new List <loPin>();
     this.model.changed += model_changed;
 }
示例#2
0
 public loBinding(loPin input, loPin output, LogramView lv)
     : base(lv)
 {
     this.Input  = input;
     this.Output = output;
     lv.AddVisual(this);
 }
示例#3
0
 private loVariable(DTopic model, LogramView lv)
     : base(lv)
 {
     this.model  = model;
     this.Output = new loPin(this, model, false);
     this.Input  = new loPin(this, model, true);
     Render(3);
 }
示例#4
0
            public static loBlock Create(DTopic model, LogramView owner)
            {
                var lb = new loBlock(model, owner);

                owner.AddVisual(lb);
                model.GetAsync(null).ContinueWith(lb.ModelLoaded, TaskScheduler.FromCurrentSynchronizationContext());

                return(lb);
            }
示例#5
0
            public static loVariable Create(DTopic model, LogramView lv)
            {
                var el = new loVariable(model, lv);

                lv.AddVisual(el);
                lv.AddVisual(el.Input);
                lv.AddVisual(el.Output);
                model.changed += el.ModelChanged;

                return(el);
            }
示例#6
0
 public loBinding(loPin start, LogramView lv)
     : base(lv)
 {
     if (start.IsInput)
     {
         this.Input  = null;
         this.Output = start;
     }
     else
     {
         this.Input  = start;
         this.Output = null;
     }
     Render(3);
     lv.AddVisual(this);
 }
示例#7
0
 protected LiBase(LogramView view, DTopic data) {
   this._view = view;
   this.data = data;
 }
示例#8
0
 public LiBrick(LogramView view, DTopic data) : base(view, data) {
   this.Offset = new Vector(50, 50);
   Render(3);
 }
示例#9
0
 protected loElement(LogramView lv)
     : base(lv)
 {
 }
示例#10
0
 protected loItem(LogramView lv)
 {
     this.lv = lv;
 }