private void Init() { this.listView.Clear(); this.listView.VirtualListSize = 0; this.viewer = DataObjectViewer.GetViewer(this.dataSeries); if (this.viewer == null) return; this.viewer.SetDataSeries(this.dataSeries); this.viewer.SetPriceFormat(this.priceFormat); this.listView.Columns.AddRange(this.viewer.GetColumnHeaders()); this.listView.VirtualListSize = this.dataSeries.Count; }
private void Init() { this.listView.Clear(); this.listView.VirtualListSize = 0; this.viewer = DataObjectViewer.GetViewer(this.dataSeries); if (this.viewer == null) { return; } this.viewer.SetDataSeries(this.dataSeries); this.viewer.SetPriceFormat(this.priceFormat); this.listView.Columns.AddRange(this.viewer.GetColumnHeaders()); this.listView.VirtualListSize = this.dataSeries.Count; }