Exemplo n.º 1
0
        private void Ld_LineAdded(object obj, LineAddedEventArgs e)
        {
            Line line = new Line(this, e.StartPoint, e.EndPoint);

            line.LineSelected   += Line_LineSelected;
            line.LineDeselected += Line_LineDeselected;
            this.linesInDraw.Remove((LineDrawer)obj);
        }
Exemplo n.º 2
0
        private void Form_MouseUp(object sender, MouseEventArgs e)
        {
            this.form.Paint -= Form_Paint;
            form.MouseMove  -= Form_MouseMove;
            form.MouseUp    -= Form_MouseUp;

            form.Invalidate();

            LineAddedEventArgs args = new LineAddedEventArgs(this.form, this.startPoint, e.Location);

            LineAdded(this, args);
        }