Esempio n. 1
0
 public GestureAdd(LayoutCanvasModel layoutModel, Component master)
 {
     this.layoutModel    = layoutModel;
     this.current        = new Location(0, 0);
     this.currentValid   = false;
     this.master         = master;
     this.masterInstance = master.CreateInstance();
 }
Esempio n. 2
0
        public GesturePoke(LayoutCanvasModel layoutModel, ComponentInstance poking)
        {
            this.layoutModel = layoutModel;
            this.poking      = poking;

            Transaction   xn     = new Transaction();
            ILayoutAccess layout = xn.RequestReadAccess(layoutModel.Layout);

            using (xn.Start()) {
                pokingLocation = poking.Component.GetLocation(layout);
            }
        }
Esempio n. 3
0
        public GestureTranslate(LayoutCanvasModel layoutCanvas,
                                ComponentInstance moving)
        {
            this.layoutCanvas = layoutCanvas;
            this.moving       = moving;

            Transaction   xn     = new Transaction();
            ILayoutAccess layout = xn.RequestReadAccess(layoutCanvas.Layout);

            using (xn.Start()) {
                this.movingLocation = moving.Component.GetLocation(layout);
            }
        }
Esempio n. 4
0
 public GestureNull(LayoutCanvasModel layoutModel)
 {
     this.layoutCanvas = layoutModel;
     this.current      = null;
 }
Esempio n. 5
0
 public GestureWire(LayoutCanvasModel layoutModel, Location loc0)
 {
     this.layoutModel = layoutModel;
     this.loc0        = loc0;
     this.loc1        = loc0;
 }
Esempio n. 6
0
 public RepaintThread(LayoutCanvasModel canvas)
 {
     this.canvas = canvas;
 }