コード例 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public SimpleNode()
        {
            InitializeComponent();
            Node = new Node(this);

            Inputs  = stack_input;
            Outputs = stack_output;

            Pause = 1;

            this.PreviewMouseLeftButtonDown += (sender, args) => NodePreviewMouseLeftButtonDown?.Invoke(sender, args);
            this.MouseDown += (sender, args) => NodeMouseDown?.Invoke(sender, args);
            this.MouseMove += (sender, args) => NodeMouseMove?.Invoke(sender, args);
            this.MouseUp   += (sender, args) => NodeMouseUp?.Invoke(sender, args);
        }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public DisplayNode()
        {
            InitializeComponent();
            Properties = new Dictionary <string, object>();
            Node       = new Node(this);

            Inputs  = stack_input;
            Outputs = stack_output;

            Pause = 1;

            this.PreviewMouseLeftButtonDown += (sender, args) => NodePreviewMouseLeftButtonDown?.Invoke(sender, args);
            this.MouseDown += (sender, args) => NodeMouseDown?.Invoke(sender, args);
            this.MouseMove += (sender, args) => NodeMouseMove?.Invoke(sender, args);
            this.MouseUp   += (sender, args) => NodeMouseUp?.Invoke(sender, args);
        }