private ExamVectorShapeModel CreateExam() { var exam = new ExamVectorShapeModel(mouseDownPoint.X, mouseDownPoint.Y, 0, color, layers[0]); vectorShapes.Add(exam); return(exam); }
private void ResizeExam(ExamVectorShapeModel exam) { exam.X = Math.Min(mouseDownPoint.X, mouseUpPoint.X); exam.Y = Math.Min(mouseDownPoint.Y, mouseUpPoint.Y); exam.Radius = Math.Max(Math.Abs(mouseUpPoint.X - mouseDownPoint.X), Math.Abs(mouseUpPoint.Y - mouseDownPoint.Y)); }