Exemplo n.º 1
0
 public TreeControl(DrawingCanvas _drawingCanvas ,List<Piece> _pieces)
 {
     drawingCanvas = _drawingCanvas;
     pieces = new List<Piece>(_pieces);
     visualDict = new Dictionary<DrawingVisual, int>();
     stack = new Stack<int>();
     shiftStack = new Stack<int>();
     mostRight = new List<double>();
 }
Exemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 2:
     this.drawingSurface = ((aspectJ.DrawingCanvas)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 3
0
        private DrawingCanvas drawcanvas;//作画的画布


        public DrawControl(DrawingCanvas _drawcanvas)
        {
            drawcanvas = _drawcanvas;
        }
Exemplo n.º 4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 2:
     this.drawingSurface = ((aspectJ.DrawingCanvas)(target));
     return;
     case 3:
     this.refreshButton = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\treeGraph.xaml"
     this.refreshButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.returnButton = ((System.Windows.Controls.Button)(target));
     
     #line 28 "..\..\treeGraph.xaml"
     this.returnButton.Click += new System.Windows.RoutedEventHandler(this.returnButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }