Example #1
0
        private void OnClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            XFVM xf1 = e1.GetXF();
            XFVM xf2 = e2.GetXF();

            xf1.SetConn(new ConnVM(xf2, 0));
            e1.Map.updateConnections();
        }
Example #2
0
        public Node AddLinkedXForm()
        {
            XFVM xf   = Flame.AddXForm(false);
            Node node = new Node(GetNodeFromXF(Flame.Selection).PosX + XFVM.BaseSize * 2, GetNodeFromXF(Flame.Selection).PosY, xf, this);

            xf.XFName = "linked";
            Children.Add(node);
            //linkeles
            Flame.Selection.XFOpacity = 0.0;
            foreach (ConnVM c in Flame.Selection.GetConns())
            {
                xf.SetConn(c);
            }
            Flame.Selection.ClearConns();
            Flame.Selection.SetConn(new ConnVM(node.GetXF(), 1));

            Flame.Selection = xf;
            updateConnections();
            return(node);
        }