예제 #1
0
        public SmartSelectWindow(Func <IEnumerable <IdAndValue> > dataFunction,
                                 Func <IEnumerable <IdAndValue> > getSelectioDataFunction,
                                 IEnumerable <int> selection,
                                 string entityListHeader)
        {
            InitializeComponent();

            EntityListHeader = entityListHeader;

            WindowStartupLocation = WindowStartupLocation.CenterScreen;

            DataContext = this;

            SmartSelectControl.Initialize(dataFunction, getSelectioDataFunction, selection);
        }
예제 #2
0
 public IEnumerable <int> GetSelection()
 {
     return(SmartSelectControl.GetSelection());
 }