示例#1
0
 public CommandLookup(ILookupObjectList lookupObjectList, IList <ILookupObject> selectedObjects,
                      bool allowNullSelection, bool allowMultiSelection)
 {
     _selectedObjects     = selectedObjects;
     _lookupObjectList    = lookupObjectList;
     _allowNullSelection  = allowNullSelection;
     _allowMultiSelection = allowMultiSelection;
 }
示例#2
0
        public FrmLookupObject(ILookupObjectList lookupObjectList, IList <ILookupObject> selectedObjects,
                               bool allowNullSelection, bool allowMultiSelection, bool lookupByKey, bool lookupByName)
        {
            Debug.Assert(lookupObjectList != null, "LookupObjectList is null. Please load a lookup list!");

            _selectedObjects = selectedObjects;

            _allowMultiSelection = allowMultiSelection;
            _lookupObjectList    = lookupObjectList;
            _lookupList          = _lookupObjectList.GetLookupList();
            _allowNullSelection  = allowNullSelection;
            _lookupByKey         = lookupByKey;
            _lookupByName        = lookupByName;

            InitializeComponent();
            InitBindings();
            InitControls();
        }