private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { if (_MD && _crntFigure != null) { var actionParameter = new ActionParamter() { Point = e.Location, }; _action.OnMouseMove(_crntFigure, actionParameter); pictureBox1.Image = Canvas.Instanse.GetTempBitmap(); } }
//Actions private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { var actionParameter = new ActionParamter() { Color = _crntColor, Point = e.Location, Width = _crntWidth, Factory = _factory }; _action.OnMouseDown(out _crntFigure, actionParameter); pictureBox1.Image = Canvas.Instanse.GetTempBitmap(); _MD = true; }