コード例 #1
0
        public Singularity markLabel(MouseEventArgs e, PictureBox image)
        {
            SingularityType type = SingularityType.None;

            switch (e.Button)
            {
            case MouseButtons.Left:
                type = SingularityType.Core;
                break;

            case MouseButtons.Middle:
                type = SingularityType.Delta;
                break;

            case MouseButtons.Right:
                type = SingularityType.Neg;
                break;
            }

            Singularity sing = new Singularity(e.X, e.Y, type);

            sing._image = markArea(image, sing);

            return(sing);
        }
コード例 #2
0
 public Singularity(int x, int y, SingularityType type)
 {
     _x    = x;
     _y    = y;
     _type = type;
 }