private void btnOKPanel2_Click(object sender, EventArgs e) { //try to create the link with the original points if (m_digitCommand != null) m_digitCommand.MyMouseUp(m_x, m_y); ErrorProvider1.SetError(btnOKPanel1, ""); btnOKPanel1.Visible = false; }