protected virtual void OnFormClicked(Oranikle.Studio.Controls.FormClickedEventArgs e) { if (events != null) { events(this, e); } }
private void CtrlDropDownForm_FormClicked(object sender, Oranikle.Studio.Controls.FormClickedEventArgs e) { if ((Host == null) || Host.IsDisposed) { return; } System.Drawing.Rectangle rectangle = Host.RectangleToScreen(Host.ClientRectangle); if (rectangle.Contains(e.ClickLocation)) { return; } if ((Host != null) && (Host.ParentForm != null)) { Host.Dismissed = true; } UpdateVisibility(); }