public object AspectGetterFieldSetup(object shouldBeListOfCatchers) { try { FieldSetup thisRowFieldSetup = shouldBeListOfCatchers as FieldSetup; if (thisRowFieldSetup == null) { Assembler.PopupException("shouldBeListOfCatchers is not FieldSetup"); return("NOT_LIST<ColumnCatcher>"); } switch (thisRowFieldSetup.RowIndexInObjectListView) { case 0: if (thisRowFieldSetup.Count == 0) { Assembler.PopupException("shouldBeListOfCatchers.Count=0"); return("LIST<ColumnCatcher>.COUNT=0"); } if (thisRowFieldSetup.Name != this.DataSnapshot.FieldSetupCurrent.Name) { return("NOT_FieldSetupCurrent.Name"); } if (this.DataSnapshot.OLVModel.IndexOf(thisRowFieldSetup) != 0) { return("NOT_IN_OLVMODEL"); } CsvTypeParser parser = thisRowFieldSetup[this.ColumnSerno].Parser; return(parser.CsvType); //break; case 1: if (thisRowFieldSetup.Name != "STUB_DISPLAY_FORMATS") { return("NOT_STUB_DISPLAY_FORMATS"); } FieldSetup prevRowFieldSetup = this.DataSnapshot.OLVModel[0]; CsvTypeParser prevRowParser = prevRowFieldSetup[this.ColumnSerno].Parser; return(prevRowParser.CsvTypeFormat); //break; default: return("2ROWS_MAX"); //break; } } catch (Exception ex) { return("WRD" + ex.Message); } }
public ColumnCatcher() { this.Parser = new CsvTypeParser(); }
public ColumnCatcher() { this.Parser = new CsvTypeParser(); }