Remove() 공개 메소드

public Remove ( Control value ) : void
value Control
리턴 void
예제 #1
0
    public void RemoveFingerprintEvent(System.Windows.Forms.Control.ControlCollection Controls)
    {
        Controls.Remove(m_zkFprint);

        m_currentOnCapture       = null;
        m_currentOnImageReceived = null;
        m_currentOnFeatureInfo   = null;
        m_currentOnEnroll        = null;
        m_zkFprint.CancelCapture();
        m_zkFprint.CancelEnroll();
    }
예제 #2
0
        private static bool RemoveChildByName(this Control.ControlCollection collection, string name)
        {
            foreach (Control child in collection)
            {
                if (child.Name == name)
                {
                    collection.Remove(child);
                    return(true);
                }

                // iterate children
                if (RemoveChildByName(child.Controls, name))
                {
                    return(true);
                }
            }

            return(false);
        }