Beispiel #1
0
        public MainPage()
        {
            this.InitializeComponent();
            canvasController = new RobotMindGraphController(canvas, scroll);

            var contoller = new RobotMindGraph(canvasController);

            canvasController.SetController(contoller);
            canvasController.Draw();

            var logger = Logger.Current();

            logger.OnMessage += (msg) =>
            {
                log.Text = log.Text + "\n" + msg;
            };

            Loaded += GenerateMenu;
        }
Beispiel #2
0
        public MindPage()
        {
            this.InitializeComponent();

            var mind = RobotMind.Current;

            tree.SetRoot(mind.Config.Root);
            tree.DataContext = mind.Config.Root;

            mindGraphController = new RobotMindGraphController(canvas, scroll);
            mindGraph           = new RobotMindGraph(mindGraphController);

            mindGraphController.SetController(mindGraph);
            mindGraphController.Draw();

            var a = mindGraph.CreateGetterContainer <rMind.Robot.ExternalDevices.Timer>();

            a.Translate(new Types.Vector2(100, 100));

            canvas.DragOver += (s, e) =>
            {
                e.AcceptedOperation = DataPackageOperation.Move;
            };
        }