Esempio n. 1
0
 protected override void OnMouseClick(MouseEventArgs e)
 {
     if (this.ButtonRectangle.Contains(e.Location))
     {
         BasePopup basePopup = this.TryGetDependBasePopup();
         if (basePopup != null)
         {
             basePopup.DismissPopup();
         }
     }
     //
     base.OnMouseClick(e);
 }
Esempio n. 2
0
        private BasePopup TryGetDependBasePopup_DG(IOwner owner)
        {
            if (owner == null)
            {
                return(null);
            }
            //
            BasePopup basePopup = owner as BasePopup;

            if (basePopup == null)
            {
                return(this.TryGetDependBasePopup_DG(owner.pOwner));
            }
            return(basePopup);
        }
 protected override void OnMouseClick(MouseEventArgs e)
 {
     if (this.SplitRectangle.Contains(e.Location))
     {
         this.OnSplitMouseClick(e);
     }
     else
     {
         this.OnButtonMouseClick(e);
     }
     //
     if (this.ButtonTriggerRectangle.Contains(e.Location))
     {
         BasePopup basePopup = this.TryGetDependBasePopup();
         if (basePopup != null)
         {
             basePopup.DismissPopup();
         }
     }
     //
     //base.OnMouseClick(e);
     base.RelationEvent("MouseClick", e);
 }
Esempio n. 4
0
 public void Remove(BasePopup basePopup)
 {
     this.m_BasePopupList.Remove(basePopup);
 }
Esempio n. 5
0
 public void Add(BasePopup basePopup)
 {
     this.m_BasePopupList.Add(basePopup);
 }