コード例 #1
0
        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);
        }
コード例 #2
0
 public OOBCacheTest()
 {
     cache = new OOBCache();
     cache.AddFeatuereContainer("UNITS");
     cache.AddFeatuereContainer("EQUIPMENT");
 }