Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            _binding         = new BindingObject();
            this.DataContext = _binding;

            _binding.ProgName = "GraphicLandAndDoig";
            _binding.BagX2    = "X2 <=";

            CoordinatePlane plane = new CoordinatePlane(RootGrid, new DLLLandAndDoig.Point(30, 20), 330);

            _canvasThree = new Three(ScrollCanvas);
            _canvasThree.DrowGrid();
            _canvasThree.SelectBlock += plane.handleSelectEvent;

            Scroll.MouseDown  += MouseDownScroll;
            Scroll.MouseUp    += MouseUpScroll;
            Scroll.MouseMove  += MouseMoveScroll;
            Scroll.MouseLeave += MouseUpScroll;

            HandlerInterface inter = new HandlerInterface(_binding, plane, _canvasThree, this);

            ButtonDLL.Click    += inter.startDLL;
            ButtonExe.Click    += inter.startApp;
            ButtonThreed.Click += inter.startThreed;
            ReadFile.Click     += inter.readFile;
        }
Beispiel #2
0
 public HandlerInterface(BindingObject binding, CoordinatePlane plane, Three three, MainWindow window)
 {
     _binding = binding;
     _limits  = new Equation[2];
     _plane   = plane;
     _three   = three;
     _window  = window;
 }