public new void _selecttransactiontypes_CustomFormConfirmed(object sender, CustomFormConfirmedEventArgs e) { CollectionField <MultiSelectFormCOLLECTIONITEMSUIModel> transactionTypes = ((MultiSelectFormUIModel)e.Model).COLLECTIONITEMS; UIModelCollection <MultiSelectParametersTRANSACTIONTYPESUIModel> uiModelCollection = this.TRANSACTIONTYPES.Value; ValueListItemCollection <MultiSelectParametersTRANSACTIONTYPESUIModel.TRANSACTIONTYPES?> dataSource = this.TRANSACTIONTYPES.DefaultItem.TRANSACTIONTYPE.DataSource; uiModelCollection.Clear(); int num1 = 0; int num2 = checked (transactionTypes.Value.Count - 1); int index = num1; while (index <= num2) { if (transactionTypes.Value[index].SELECTED.Value) { uiModelCollection.Add(new MultiSelectParametersTRANSACTIONTYPESUIModel() { TRANSACTIONTYPE = { Value = dataSource[index].Value } }); } checked { ++index; } } }
public new void UpdatesForAllTransactionTypeSelector() { UIModelCollection <MultiSelectParametersTRANSACTIONTYPESUIModel> uiModelCollection = this.TRANSACTIONTYPES.Value; uiModelCollection.Clear(); IEnumerator <ValueListItem <MultiSelectParametersTRANSACTIONTYPESUIModel.TRANSACTIONTYPES?> > enumerator; enumerator = this.TRANSACTIONTYPES.DefaultItem.TRANSACTIONTYPE.DataSource.GetEnumerator(); try { while (enumerator.MoveNext()) { ValueListItem <MultiSelectParametersTRANSACTIONTYPESUIModel.TRANSACTIONTYPES?> current = enumerator.Current; if (current.Visible) { uiModelCollection.Add(new MultiSelectParametersTRANSACTIONTYPESUIModel() { TRANSACTIONTYPE = { Value = current.Value } }); } } } finally { if (enumerator != null) { enumerator.Dispose(); } } }
// TODO: Build classes for recognition filter, transaction type, application type #region "Revenue filters" public new void UpdatesForAllRevenueTypeSelector() { UIModelCollection <MultiSelectParametersREVENUEFILTERSUIModel> uiModelCollection = this.REVENUEFILTERS.Value; uiModelCollection.Clear(); IEnumerator <ValueListItem <System.String> > enumerator; enumerator = this.REVENUEFILTERS.DefaultItem.REVENUEFILTER.DataSource.GetEnumerator(); try { while (enumerator.MoveNext()) { //ValueListItem<MultiSelectParametersTRANSACTIONTYPESUIModel.TRANSACTIONTYPES?> current = enumerator.Current; var current = enumerator.Current; if (current.Visible) { uiModelCollection.Add(new MultiSelectParametersREVENUEFILTERSUIModel() { REVENUEFILTER = { Value = current.Value.ToString() } }); } } } finally { if (enumerator != null) { enumerator.Dispose(); } } }