/// <summary> /// Draws the figure in drawing area. /// </summary> /// <param name="sender">The sender.</param> /// <param name="mouseArgs">The mouse arguments.</param> private void DrawFigure(object sender, MouseArgs mouseArgs) { Point endPositionForDrawing = mouseArgs.MousePosition; _graphics.DrawLine(_pen, _startPointForDrawing, endPositionForDrawing); _startPointForDrawing = endPositionForDrawing; _neuralNetworkGUI.RefreshDrawingArea(); }
/// <summary> /// Sets the start position for drawing letter. /// </summary> /// <param name="sender">The sender.</param> /// <param name="mouseArgs">The mouse arguments.</param> private void SetStartPosition(object sender, MouseArgs mouseArgs) { _startPointForDrawing = mouseArgs.MousePosition; }