Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="c"></param>
        public void UnregisterControl(Control c)
        {
            WinFormsKeyControl key = c as WinFormsKeyControl;

            System.Diagnostics.Debug.Assert(key != null);

            System.Diagnostics.Debug.Assert(RegisteredControls.Remove(key));
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="c"></param>
        public void RegisterControl(Control c)
        {
            WinFormsKeyControl key = c as WinFormsKeyControl;

            System.Diagnostics.Debug.Assert(key != null);

            System.Diagnostics.Debug.Assert(RegisteredControls.IndexOf(key) == -1);

            RegisteredControls.Add(key);
        }