Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ThreeInOneOutExpression"/> class.
        /// </summary>
        public ThreeInOneOutExpression()
        {
            Connector1In = new ConnectorIn(this);
            Connector2In = new ConnectorIn(this);
            Connector3In = new ConnectorIn(this);

            ConnectorOut = new ConnectorOut(this);
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExpressionObjectBase" /> class.
        /// </summary>
        /// <param name="type">The type.</param>
        public ThreeInOneOutExpression(ExpressionNodeType type) : base(type)
        {
            Connector1In = new ConnectorIn(this);
            Connector2In = new ConnectorIn(this);
            Connector3In = new ConnectorIn(this);

            ConnectorOut = new ConnectorOut(this);
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FiveInOneOutExpression"/> class.
 /// </summary>
 public FiveInOneOutExpression()
 {
     Connector1In = new ConnectorIn(this);
     Connector2In = new ConnectorIn(this);
     Connector3In = new ConnectorIn(this);
     Connector4In = new ConnectorIn(this);
     Connector5In = new ConnectorIn(this);
     ConnectorOut = new ConnectorOut(this);
 }
Пример #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TwoInOneOutExpression"/> class.
        /// </summary>
        public TwoInOneOutExpression()
        {
            _connector1In = new ConnectorIn(this);
            _connector1In.PropertyChanged += OnConnectorPropertyChanged;

            _connector2In = new ConnectorIn(this);
            _connector2In.PropertyChanged += OnConnectorPropertyChanged;

            _connectorOut = new ConnectorOut(this);
            _connectorOut.PropertyChanged += OnConnectorPropertyChanged;
        }
Пример #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExpressionObjectBase" /> class.
        /// </summary>
        /// <param name="type">The type.</param>
        public TwoInOneOutExpression(ExpressionNodeType type)
            : base(type)
        {
            _connector1In = new ConnectorIn(this);
            _connector1In.PropertyChanged += OnConnectorPropertyChanged;

            _connector2In = new ConnectorIn(this);
            _connector2In.PropertyChanged += OnConnectorPropertyChanged;

            _connectorOut = new ConnectorOut(this);
            _connectorOut.PropertyChanged += OnConnectorPropertyChanged;
        }
Пример #6
0
        public void CloneTest()
        {
            var source = new ConnectorOut(null) {Name = "source"};

            var cloneTo = new ConnectorOut(null);
            source.Clone(cloneTo);

            Assert.AreEqual(source.Name, cloneTo.Name);

            cloneTo = (ConnectorOut) source.Clone();
            Assert.AreEqual(source.Name, cloneTo.Name);
        }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OneInOneOutExpression" /> class.
 /// </summary>
 public OneInOneOutExpression()
 {
     ConnectorOut = new ConnectorOut(this);
     ConnectorIn = new ConnectorIn(this);
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConstantExpression"/> class.
 /// </summary>
 public ConstantExpression()
     : base(ExpressionNodeType.Constant)
 {
     Value = String.Empty;
     ConnectorOut = new ConnectorOut(this);
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SourceField"/> class.
 /// </summary>
 /// <param name="owner">The owner.</param>
 public SourceField(ExpressionObjectBase owner)
 {
     ConnectorOut = new ConnectorOut(owner);
     Id = ConnectorOut.Id;
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExpressionObjectBase" /> class.
 /// </summary>
 /// <param name="type">The type.</param>
 public FunctionExpression(ExpressionNodeType type)
     : base(type)
 {
     ConnectorOut = new ConnectorOut(this);
 }
Пример #11
0
 /// <summary>
 /// Deserializes the specified XML reader.
 /// </summary>
 /// <param name="xmlReader">The XML reader.</param>
 public override void Deserialize(XmlReader xmlReader)
 {
     Id = Guid.Parse(xmlReader.GetAttribute("id"));
     Source = new ConnectorOut(this) {Id = Guid.Parse(xmlReader.GetAttribute("sourceId")) };
     Sink = new ConnectorIn(this) { Id = Guid.Parse(xmlReader.GetAttribute("destinationId")) };
 }