示例#1
0
 protected virtual void OnFormClicked(Oranikle.Studio.Controls.FormClickedEventArgs e)
 {
     if (events != null)
     {
         events(this, e);
     }
 }
示例#2
0
 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();
 }