public int Compare(object x, object y)
        {
            InstrumentDataSeries series1 = ((InstrumentDataSeriesViewItem)x).Series;
            InstrumentDataSeries series2 = ((InstrumentDataSeriesViewItem)y).Series;
            int num = 0;

            switch (this.column)
            {
            case 0:
                num = string.Compare(series1.Instrument.Symbol, series2.Instrument.Symbol);
                break;

            case 1:
                num = series1.DataSeries.Count.CompareTo(series2.DataSeries.Count);
                break;

            case 2:
                num = DateTime.Compare(series1.DataSeries.Count == 0L ? DateTime.MinValue : series1.DataSeries.DateTime1, series2.DataSeries.Count == 0L ? DateTime.MinValue : series2.DataSeries.DateTime1);
                break;

            case 3:
                num = DateTime.Compare(series1.DataSeries.Count == 0L ? DateTime.MinValue : series1.DataSeries.DateTime1, series2.DataSeries.Count == 0L ? DateTime.MinValue : series2.DataSeries.DateTime1);
                break;
            }
            return(num * this.sortOrders[this.column]);
        }
 public InstrumentDataSeriesViewItem(InstrumentDataSeries series)
     : base(new string[4], 0)
 {
     this.series = series;
     this.UpdateValues();
 }
 public InstrumentDataSeriesViewItem(InstrumentDataSeries series)
   : base(new string[4], 0)
 {
   this.series = series;
   this.UpdateValues();
 }