コード例 #1
0
ファイル: Impulse.cs プロジェクト: drzo/opensim4opencog
		/// <summary>
		/// Creates a new instance of an impulse for a sub-reference graph.
		/// </summary>
		/// <param name="impulse">The original non-sub-reference graph impulse node.</param>
		public Impulse(Impulse impulse) : base(null, _theBackgroundBrush, _theDraggedBackgroundBrush, impulse.BaseLabel, false, impulse.Description)
		{
			_genericChildren= new ConnectorMultiple(_children, string.Empty, "GenericChildren", 1, int.MaxValue);

			impulse.CloneProperties(this);

			OnPropertyValueChanged(false);

			CopyEventHandlers(impulse);

#if DEBUG
			_debugIsSubreferencedGraphNode= true;
#endif
		}
コード例 #2
0
ファイル: Impulse.cs プロジェクト: rogerbyland/LegendPlugin
        /// <summary>
        /// Creates a new instance of an impulse for a sub-reference graph.
        /// </summary>
        /// <param name="impulse">The original non-sub-reference graph impulse node.</param>
        public Impulse(Impulse impulse) : base(null, _theBackgroundBrush, _theDraggedBackgroundBrush, impulse.BaseLabel, false, impulse.Description)
        {
            _genericChildren = new ConnectorMultiple(_children, string.Empty, "GenericChildren", 1, int.MaxValue);

            impulse.CloneProperties(this);

            OnPropertyValueChanged(false);

            CopyEventHandlers(impulse);

#if DEBUG
            _debugIsSubreferencedGraphNode = true;
#endif
        }
コード例 #3
0
        /// <summary>
        /// Creates a new instance of an impulse for a sub-reference graph.
        /// </summary>
        /// <param name="impulse">The original non-sub-reference graph impulse node.</param>
        public Impulse(Impulse impulse) : base(impulse.Label, impulse.Description)
        {
            _acceptsEvents = false;

            _genericChildren = new ConnectorMultiple(_children, string.Empty, "GenericChildren", 1, int.MaxValue);

            impulse.CloneProperties(this);

            OnPropertyValueChanged(false);

            CopyEventHandlers(impulse);

#if DEBUG
            _debugIsSubreferencedGraphNode = true;
#endif
        }