コード例 #1
0
        /// <summary>
        /// Method to create illustrated element  on the button  at the point at which the cursor were at the moment mouse up
        /// </summary>
        /// <param name="sender"> button1 </param>
        /// <param name="e"> parameters of mouse event</param>
        private void button1_MouseUp(object sender, MouseEventArgs e)
        {
            var or = new OrElement();

            СreateElement.create(this, or, userControls, e.X + button1.Location.X, e.Y);
        }
コード例 #2
0
        private void nand2in1button_MouseUp(object sender, MouseEventArgs e)
        {
            var nand = new NandElement();

            СreateElement.create(this, nand, userControls, e.X + nand2in1button.Location.X, e.Y);
        }
コード例 #3
0
        private void xor2in1button_MouseUp(object sender, MouseEventArgs e)
        {
            var xor = new XorElement();

            СreateElement.create(this, xor, userControls, e.X + xor2in1button.Location.X, e.Y);
        }
コード例 #4
0
        private void notbutton_MouseUp(object sender, MouseEventArgs e)
        {
            var not = new NotElement();

            СreateElement.create(this, not, userControls, e.X + notbutton.Location.X, e.Y);
        }