Ejemplo n.º 1
0
        public static void DataConnect(DataUnit source, DataUnit target, String name)
        {
            if (source == null || target == null)
            {
                return;
            }

            DataPort port = new DataPort(String.IsNullOrEmpty(name) ? source.Name + "->" + target.Name : name);

            port.Source = source;
            port.Target = target;

            source.Outputs.Add(port);
            target.Inputs.Add(port);
        }
Ejemplo n.º 2
0
 protected virtual void PortWriting(DataPort port, out object value)
 {
     value = null;
 }
Ejemplo n.º 3
0
 protected virtual void PortReading(DataPort port, object value)
 {
 }