Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StorageField"/> class.
 /// </summary>
 /// <param name="control">The control.</param>
 public StorageList(BaseListBoxControl control, string id)
 {
     Control = control;
     Id = id;
     if (control.DataSource != null) {
         Value = control.DataSource.Serialize();
         ValueType = Control.DataSource.GetType().ToString();
     }
 }
        void Dropdown_SelectedIndexChanged(object sender, EventArgs e)
        {
            BaseListBoxControl listCtrl = sender as BaseListBoxControl;

            if (listCtrl.SelectedIndex == 0)
            {
                m_SelectedItem = null;
                // return;
            }
            else if (listCtrl != null && listCtrl.SelectedItem != null)
            {
                ListBoxItem listBoxItem = (ListBoxItem)listCtrl.SelectedItem;
                m_SelectedItem = listBoxItem.Value as VehicleModelInfo;
            }
            if (SelectedItemChanged != null)
            {
                SelectedItemChanged(this, EventArgs.Empty);
            }
        }
 public BaseListBoxViewInfo(BaseListBoxControl owner, ITextSelectionDataProvider TextSelectionDataProvider) 
     : base(owner) 
 {
     _textSelectionDataProvider = TextSelectionDataProvider;
 }
 public MyBaseListBoxViewInfo(BaseListBoxControl owner) : base(owner)
 {
 }
Exemple #5
0
 public MyListBoxViewInfo(BaseListBoxControl c)
     : base(c)
 {
 }
Exemple #6
0
 public CustomCheckedItemInfo(BaseListBoxControl ownerControl, Rectangle rect, object item, string text, int index, CheckState checkState, bool enabled)
     : base(ownerControl, rect, item, text, index, checkState, enabled)
 {
     DropLine();
 }
Exemple #7
0
 public CustomListBoxViewInfo(BaseListBoxControl owner)
     : base(owner)
 {
 }
Exemple #8
0
 public ListBoxWithoutFocusRectangleViewInfo(BaseListBoxControl owner) : base(owner)
 {
 }
 public MyListBoxControlHandler(BaseListBoxControl owner)
     : base(owner)
 {
 }