Ejemplo n.º 1
0
        /// <summary>
        /// Creates a deep copy of the given object.
        /// </summary>
        public override IFormat Clone()
        {
            SeparatorSeriesFormat other = new SeparatorSeriesFormat( Name );
            CloneTo( other );

            other.Separator = Separator;
            other.Anchor = null;
            if ( Anchor != null )
            {
                other.Anchor = Anchor.ForCell( Anchor.Row, Anchor.Column );
            }

            return other;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a deep copy of the given object.
        /// </summary>
        public override IFormat Clone()
        {
            SeparatorSeriesFormat other = new SeparatorSeriesFormat(Name);

            CloneTo(other);

            other.Separator = Separator;
            other.Anchor    = null;
            if (Anchor != null)
            {
                other.Anchor = Anchor.ForCell(Anchor.Row, Anchor.Column);
            }

            return(other);
        }
Ejemplo n.º 3
0
 private DataTable Parse( SeparatorSeriesFormat format, string file )
 {
     var rawTable = CsvReader.Read( file, format.Separator );
     return format.ToFormattedTable( rawTable );
 }
Ejemplo n.º 4
0
        public override void SetUp()
        {
            base.SetUp();

            myFormat = new SeparatorSeriesFormat( "test" );
            myFormat.Separator = ";";
            myFormat.Anchor = Anchor.ForRow( new StringContainsLocator( 1, "DE0005151005" ) );
            myFormat.Expand = CellDimension.Row;
            myFormat.TimeAxisPosition = 0;
            myFormat.SeriesNamePosition = 1;
            myFormat.SkipColumns = new int[] { 0, 2, 3 };
            myFormat.SkipRows = new int[] { 1 };

            myEpsFile = Path.Combine( TestDataRoot, "Recognition", "eps.csv" );
        }