Ejemplo n.º 1
0
 private void OnDroppingDown(object sender, DropDownEventArgs e)
 {
     if (this.DroppingDown != null)
     {
         this.DroppingDown(sender, e);
     }
 }
Ejemplo n.º 2
0
 internal void Popup(int ii, int ci)
 {
     DropDownEventArgs e = new DropDownEventArgs(false, ii, ci);
     this.OnDroppingDown(this, e);
     if (!e.Cancel && (this.m_list != null))
     {
         bool bRecalculateHeight = false;
         if (this.m_list.Parent == null)
         {
             Graphics graphics = base.CreateGraphics();
             if (graphics != null)
             {
                 int num = (int) (graphics.DpiX / 96f);
                 this.m_list.Scale(new SizeF((float) num, (float) num));
                 base.TopLevelControl.Controls.Add(this.m_list);
                 base.TopLevelControl.Resize += new EventHandler(this.TopLevelControl_Resize);
                 bRecalculateHeight = true;
                 graphics.Dispose();
             }
         }
         this.SetListBounds(bRecalculateHeight);
         this.ForceRedraw();
         this.m_list.Popup();
         this.OnDropDown(this, EventArgs.Empty);
     }
 }
Ejemplo n.º 3
0
 private void OnDropDownClosing(object sender, DropDownEventArgs e)
 {
     if (this.DropDownClosing != null)
     {
         this.DropDownClosing(sender, e);
     }
 }
Ejemplo n.º 4
0
 internal void Close(int ii, int ci)
 {
     DropDownEventArgs e = new DropDownEventArgs(false, ii, ci);
     this.OnDropDownClosing(this, e);
     if (!e.Cancel)
     {
         this.ForceRedraw();
         this.m_list.Close();
         this.OnDropDownClosed(this, EventArgs.Empty);
     }
 }