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); }
public IEnumerable <int> GetSelection() { return(SmartSelectControl.GetSelection()); }