/// <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)); }
/// <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); }