Beispiel #1
0
 // *****************************************************************************
 public void ShowItemSelect()
 {
     if (m_state == null)
     {
         return;
     }
     if (m_items.Length <= 0)
     {
         return;
     }
     if (IsEditID == false)
     {
         return;
     }
     if ((m_SelectedIndex >= 0) && (m_SelectedIndex < m_items.Length))
     {
         int           cp  = m_StWidth * 3;
         WizItemSelect ise = new WizItemSelect();
         ise.Name = "A";
         ise.Items.AddRange(m_items[m_SelectedIndex].ItemNames);
         ise.Location        = new Point(this.Left + cp, this.Top + m_LineHeight * m_SelectedIndex);
         ise.Size            = new Size(this.Width - cp, m_LineHeight);
         ise.ItemID          = m_items[m_SelectedIndex].ID;
         ise.IsListMode      = true;
         ise.VisibleChanged += Ise_VisibleChanged;
         this.Parent.Controls.Add(ise);
         ise.BringToFront();
         ise.DroppedDown = true;
         ise.Visible     = true;
     }
 }
Beispiel #2
0
 static public void MeDelete(Control.ControlCollection cons, WizItemSelect cmb)
 {
     if (cons.Count <= 0)
     {
         return;
     }
     cons.Remove(cmb);
     cmb.Dispose();
 }
Beispiel #3
0
        private void Ise_VisibleChanged(object sender, EventArgs e)
        {
            WizItemSelect ise = (WizItemSelect)sender;

            if (ise.ItemID >= 0)
            {
                SetItemID((byte)ise.ItemID);
            }
            WizItemSelect.MeDelete(this.Parent.Controls, ise);
        }