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); }
public Singularity(int x, int y, SingularityType type) { _x = x; _y = y; _type = type; }