예제 #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;
 }