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