Esempio n. 1
0
 protected virtual void Draw(rMindBaseWire wire)
 {
     if (m_subscribed)
     {
         m_canvas.Children.Add(wire.Line);
         m_canvas.Children.Add(wire.A.Template);
         m_canvas.Children.Add(wire.B.Template);
     }
 }
Esempio n. 2
0
        public virtual void RemoveWire(rMindBaseWire wire)
        {
            if (m_subscribed)
            {
                m_canvas.Children.Remove(wire.A.Template);
                m_canvas.Children.Remove(wire.B.Template);
                m_canvas.Children.Remove(wire.Line);
            }

            m_wire_list.Remove(wire);
        }
Esempio n. 3
0
        public virtual rMindBaseWire CreateWire()
        {
            var wire = new rMindBaseWire(this);

            wire.A.Translate(new Vector2(20, 50));
            wire.B.Translate(new Vector2(10, 10));

            Draw(wire);

            m_wire_list.Add(wire);
            return(wire);
        }
Esempio n. 4
0
 public rMindBaseWireDot(rMindBaseWire parent)
 {
     m_parent = parent;
     Init();
 }