示例#1
0
        protected override void InitializeDictionaryAdapterView(IDictionarySpecListView view)
        {
            IList <IListItem <Type> > typeListItems;

            if ((object)view == null)
            {
                throw new ArgumentNullException("view");
            }

            typeListItems = new List <IListItem <Type> >();
            typeListItems.Add(new ListItem <Type>(typeof(DelimitedTextDictionaryAdapter), "Delimited Text File (dictionary)"));
            typeListItems.Add(new ListItem <Type>(typeof(AdoNetDictionaryAdapter), "ADO.NET DB Provider (dictionary)"));

            view.DictionaryAdapterSettingsPartialView.AdapterTypes        = typeListItems;
            view.DictionaryAdapterSettingsPartialView.SelectedAdapterType = null;
        }
        bool IDictionarySettingsPartialView.RemoveDictionarySpecView(IDictionarySpecListView dictionarySpecListView)
        {
            DictionaryListViewItem lviDictionary;

            lviDictionary = dictionarySpecListView as DictionaryListViewItem;

            if ((object)lviDictionary == null)
            {
                return(false);
            }

            if (!this.lvDictionarySpecs.Items.Contains(lviDictionary))
            {
                return(false);
            }

            this.lvDictionarySpecs.Items.Remove(lviDictionary);

            lviDictionary.DisposeEditor();

            this.CoreRefreshControlState();
            return(true);
        }
示例#3
0
 protected abstract void InitializeDictionaryAdapterView(IDictionarySpecListView view);