public void Remove(MoveControl control) { if (allControl.Contains(control)) { allControl.Remove(control); } }
public MoveShape() { InitializeComponent(); moveControl = new MoveControl(this); this.MouseDown += moveControl._control_MouseDown; this.MouseMove += moveControl._control_MouseMove; this.Paint += moveControl._control_Paint; this.MouseClick += moveControl._control_MouseClick; this.MouseUp += moveControl._control_MouseUp; this.SizeChanged += moveControl._control_SizeChanged; this.Disposed += MovePictureBox_Disposed; }