Beispiel #1
0
 public void HideDropDown()
 {
     if (this.hook != null)
     {
         this.hook.ReleaseHandle();
     }
     this.hook = null;
     host.Close();
 }
Beispiel #2
0
        /// <summary>
        /// 显示下拉选项
        /// </summary>
        public void ShowDropDown()
        {
            Point thisP = this.Location;

            host.Show(this, new Point(this.Width, -bar.Height / 4));
            if (this.hook == null)
            {
                this.hook = new TimeSlideHook(this);
                if (this.Parent != null)
                {
                    this.hook.AssignHandle(this.Parent.Handle);
                }
            }
        }
        public void HideDropDown()
        {

            if (this.hook != null)
                this.hook.ReleaseHandle();
            this.hook = null;
            host.Close();
        }
 /// <summary>
 /// 显示下拉选项
 /// </summary>
 public void ShowDropDown()
 {
     Point thisP = this.Location;
     host.Show(this, new Point(this.Width, -bar.Height / 4));
     if (this.hook == null)
     {
         this.hook = new TimeSlideHook(this);
         if (this.Parent != null)
         {
             this.hook.AssignHandle(this.Parent.Handle);
         }
     }
 }