public DictionaryListViewItem(IEnumerable <string> values, AdapterSettingsForm adapterSettingsForm) : base((object)values != null ? values.ToArray() : null) { if ((object)adapterSettingsForm == null) { throw new ArgumentNullException("adapterSettingsForm"); } this.adapterSettingsForm = adapterSettingsForm; }
IDictionarySpecListView IDictionarySettingsPartialView.AddDictionarySpecView(string dictionaryId, bool preloadEnabled, long?recordCount, IAdapterSettingsPartialView adapterSettingsPartialView) { DictionaryListViewItem lviDictionarySpec; AdapterSettingsForm adapterSettingsForm; adapterSettingsForm = new AdapterSettingsForm(); lviDictionarySpec = new DictionaryListViewItem(new string[] { dictionaryId.SafeToString(), preloadEnabled.SafeToString(), recordCount.SafeToString(), string.Empty }, adapterSettingsForm); lviDictionarySpec.Tag = new DictionarySpec() { DictionaryId = dictionaryId.SafeToString(), RecordCount = recordCount, PreloadEnabled = preloadEnabled }; this.lvDictionarySpecs.Items.Add(lviDictionarySpec); this.CoreRefreshControlState(); return(lviDictionarySpec); }