void HandleBaseRequestAction(SenseListControl.ISenseListItem sender, SenseListControl.RequestActionEventArgs e)
 {
     if (RequestAction != null)
     {
         RequestAction(sender, e);
     }
 }
示例#2
0
 protected void sip_EnabledChanged(object sender, EventArgs e)
 {
     if (this.sip.Enabled)
     {
         SenseListControl.ISenseListItem IItem = this.senseListCtrl.FocusedItem;
         if (IItem != null)
         {
             System.Drawing.Rectangle r = IItem.ClientRectangle;
             r.Offset(0, this.senseListCtrl.Bounds.Top);
             if (IItem is SensePanelTextboxItem)
             {
                 if (r.Bottom > this.sip.VisibleDesktop.Height)
                 {
                     this._sipOffset = Math.Abs(this.sip.VisibleDesktop.Height - r.Bottom);
                     this.senseListCtrl.ScrollList(-this._sipOffset);
                     this.senseListCtrl.Invalidate();
                 }
             }
         }
     }
     else
     {
         if (!this._sipOffset.Equals(0))
         {
             this.senseListCtrl.ScrollList(this._sipOffset);
             this.senseListCtrl.Invalidate();
         }
         this._sipOffset = 0;
     }
 }
 void HandleBaseRequestParent(SenseListControl.ISenseListItem sender)
 {
     if (RequestParent != null)
     {
         RequestParent(sender);
     }
 }
示例#4
0
 public static void AddItem(this SenseListControl control, SenseListControl.ISenseListItem item, bool giveUniqueName)
 {
     if (giveUniqueName)
     {
         item.Name = "UniqueName" + _counter++;
     }
     control.AddItem(item);
 }