public OOBWidgetDialog(Dictionary <String, OOBDataSource> oobdatasources, string initialCaption, IEnumerable <IFeatureAction> selectedFeatureActions, OOBCache oobcache) { InitializeComponent(); DataSourceSelector.IsEnabled = true; OKButton.IsEnabled = false; if (oobcache != null) { cache = oobcache; } if (initialCaption != null) { OOBName = initialCaption; tb_title.Text = OOBName; } if (oobdatasources.Count > 0) { InitializeDataSources(oobdatasources); } InitializeFeatureActions(selectedFeatureActions); }
public OOBCacheTest() { cache = new OOBCache(); cache.AddFeatuereContainer("UNITS"); cache.AddFeatuereContainer("EQUIPMENT"); }