Ejemplo n.º 1
0
    public virtual void Create()
    {
      AlwaysInEditMode = false;

      m_coll = new MultiSelectItemCollection();

      Leave += new EventHandler(textBox_Leave);

      ReadOnly = true;

      if (BTN == null)
        BTN = Properties.Resources.comboButton;
    }
Ejemplo n.º 2
0
		public MultiSelectPopup(MultiSelectItemCollection coll_, bool singleSelect) : this()
		{
			if (coll_==null)
				return;

			this.m_singleSelect = singleSelect;

			foreach (MultiSelectItem item in coll_)
				cb_Items.Items.Add(item, item.Selected);

			if (cb_Items.Items.Count>0)
			{
				Size=cb_Items.ClientRectangle.Size;
			}

			cb_Items.ItemCheck+=new ItemCheckEventHandler(cb_Items_ItemCheck);
		}